summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 472d64de63350f35bde6dd17225f86a1715ca9a8 (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
# Maintainer: tank142
pkgname=wine-gui-git
pkgver=0.14alpha.3.7593f24
pkgrel=1
pkgdesc="GUI for managing Windows programs under linux"
arch=('x86_64')
url="https://github.com/tank142/wine-gui"
license=('GPL3')
depends=('qt6-base' 'xdg-utils' 'winetricks' 'icoutils' 'imagemagick')
makedepends=('git')
source=('wine-gui::git+https://github.com/tank142/wine-gui.git')
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/wine-gui"
  echo "$(git describe --long --tags | tr - .)"
}

build() {
  rm -rf "$srcdir/wine-gui/src/build"
  mkdir "$srcdir/wine-gui/src/build"
  cd "$srcdir/wine-gui/src/build"
  case $depends in
  qt6-base)
    qmake6 ..
  ;;
  qt5-base)
    qmake-qt5 ..
  ;;
  esac
  make
}

package() {
  cd "$srcdir/wine-gui/src/build"
  make -C ./ INSTALL_ROOT="$pkgdir/" install
}