summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b00d31678188439e7495a635e4ae4a7c20a44b4a (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
# Contributor: Atterratio <atterratio@gmail.com>

pkgbase=q4wine-git
pkgname=('q4wine-qt4-git'
         'q4wine-qt5-git'
         )
pkgver=v1.1.r2.25.gdb6d9f7
pkgrel=1
pkgdesc="A Qt GUI for Wine. (GIT Version)"
arch=('i686' 'x86_64')
url='http://sourceforge.net/projects/q4wine'
license=('GPL3')
makedepends=('cmake'
             'git'
             'icoutils'
             'qt4'
             'qt5-tools'
             'qt-solutions-git'
             )
source=('git://github.com/brezerk/q4wine.git')
sha1sums=('SKIP')
install=q4wine-git.install

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

prepare() {
  mkdir -p build-qt{4,5}
}

build() {
  cd build-qt4
  msg2 'Build with Qt4'
  cmake ../q4wine \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DLIBS_ENTRY_PATH=/usr/lib/q4wine
  make
  cd ../build-qt5
  msg2 'Build with Qt5'
  cmake ../q4wine \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_BUILD_TYPE=Release \
    -DLIBS_ENTRY_PATH=/usr/lib/q4wine\
    -DQT5=ON \
    -DWITH_SYSTEM_SINGLEAPP=ON
  make
}

package_q4wine-qt4-git() {
  pkgdesc="A Qt GUI for Wine. Qt4 build (GIT Version)"
  optdepends=('winetricks: Tweak wine'
             'fuseiso: Mount ISO files')
  depends=('icoutils'
           'qt4'
           'wine'
           )
  provides=('q4wine'
            'q4wine-qt4'
            )
  conflicts=('q4wine'
             'q4wine-qt5'
             )
  install=q4wine-git.install

  make -C build-qt4 DESTDIR=${pkgdir} install
}

package_q4wine-qt5-git() {
  pkgdesc="A Qt GUI for Wine. Qt5 build (GIT Version)"
  optdepends=('winetricks: Tweak wine'
            'fuseiso: Mount ISO files')
  depends=('icoutils'
           'hicolor-icon-theme'
           'qt5-base'
           'qt-solutions'
           'wine'
           )
  provides=('q4wine'
            'q4wine-qt5'
            )
  conflicts=('q4wine'
             'q4wine-qt4'
             )
  install=q4wine-git.install

  make -C build-qt5 DESTDIR=${pkgdir} install
}