summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: abdbc31dc3dcff30ca888c31913ee30f48b1afc8 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Atterratio <atterratio@gmail.com>

pkgname=q4wine-git
pkgver=1.3.13.4.g82ced8e
pkgrel=1
pkgdesc="A Qt GUI for Wine. (GIT Version)"
arch=('x86_64')
url='https://github.com/brezerk/q4wine'
license=('GPL3')
depends=(
  'qt-solutions-git'
  'icoutils'
  'wine'
  'which'
  'desktop-file-utils'
  'hicolor-icon-theme'
)
makedepends=(
  'cmake'
  'git'
  'qt5-tools'
  'qt5-svg'
  'fuseiso'
)
optdepends=(
  'winetricks: Tweak wine'
  'fuseiso: Mount ISO files'
)
conflicts=('q4wine')
provides=('q4wine')
source=('git+https://github.com/brezerk/q4wine.git')
sha1sums=('SKIP')

pkgver() {
  cd q4wine
  echo "$(git describe --long --tags | tr - . | tr -d v)"
}

build() {
  cmake -S q4wine -B build \
    -DCMAKE_BUILD_TYPE=None \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIBS_ENTRY_PATH=/usr/lib \
    -DWITH_SYSTEM_SINGLEAPP=ON

  cmake --build build
}

package() {

  DESTDIR="${pkgdir}" cmake --install build

  rm -fr "${pkgdir}/usr/share/icons/ubuntu-mono-dark"
}