summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 8c08852b2397ce4d4e973b894e4381782b0eaea1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# Maintainer: jc_gargma <jc_gargma@iserlohn-fortress.net>
# Maintainer (AUR): Jake <aur@ja-ke.tech>
# Contributor (AUR): Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor (AUR): Chris Giles <Chris.G.27 (at) Gmail.com>

# # 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
}