# Maintainer: jc_gargma # Maintainer (AUR): Jake # Contributor (AUR): Sergej Pupykin # Contributor (AUR): Chris Giles # # I maintain this because: # AUR version lacks additional optimization and hardening flags pkgname=q4wine-staging pkgver=1.3.12 pkgrel=1 pkgdesc="A Qt5 GUI for Wine" arch=("x86_64") url="http://sourceforge.net/projects/${pkgname}/" license=("GPL3") depends=("qt5-base" "wine-staging" "sqlite" "which" "icoutils") makedepends=("cmake" "qt5-tools" "qt5-svg") optdepends=("winetricks" "fuseiso") options=('!emptydirs') conflicts=('q4wine') source=("${pkgname}-${pkgver}.tar.gz::https://github.com/brezerk/q4wine/archive/v${pkgver}.tar.gz") b2sums=('5ef483b68decefbd6926cd4fa11d95d4b7c7698258728ff99c2f23f4e915b5ea690f3b3d9084f26c1ac0862091b4475eefb88170427cd1cc7ac6e025c2b3d2fc') build() { cd "$srcdir"/${pkgname}-${pkgver/_/-} export CFLAGS="$CFLAGS -O3 -fstack-protector-all -flto=4 -fPIE" export CXXFLAGS="$CXXFLAGS -O3 -fstack-protector-all -flto=4 -fPIE" export LDFLAGS="$LDFLAGS,-pie" cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DLIBS_ENTRY_PATH=/usr/lib/$pkgname \ -DQT5=ON \ . make } package() { cd "$srcdir"/${pkgname}-${pkgver/_/-} make DESTDIR="$pkgdir" install }