From cfaa9c6cbf8c74dde65c742acc59488fd9ce248d Mon Sep 17 00:00:00 2001 From: jc_gargma Date: Wed, 18 Mar 2020 14:06:39 -0700 Subject: Initial commit --- PKGBUILD | 39 +++++++++++++++++++++++++++++++++++++++ q4wine.desktop | 18 ++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 PKGBUILD create mode 100644 q4wine.desktop diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..d9d9c5a --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# 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 +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" "sqlite" "which" "icoutils") +makedepends=("cmake" "qt5-tools" "qt5-svg") +optdepends=("winetricks" "fuseiso") +options=('!emptydirs') +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 +} diff --git a/q4wine.desktop b/q4wine.desktop new file mode 100644 index 0000000..2b14158 --- /dev/null +++ b/q4wine.desktop @@ -0,0 +1,18 @@ +[Desktop Entry] +Name=Q4Wine +GenericName=A Qt4 GUI for Wine +Comment=A Qt4 GUI for Wine +#Version=0.1 +Type=Application +Categories=KDE;Qt;Settings +Terminal=false +Encoding=UTF-8 +Icon=wine +Exec=q4wine +#ServiceTypes=inode/directory +#Actions=Create; +#X-KDE-Submenu= +#X-KDE-Priority=TopLevel +#X-KDE-Icon=tgz +X-KDE-StartupNotify=true +#X-DCOP-ServiceType=Unique -- cgit v1.2.1