summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 806d5399607d5f55d93209e87689f63c1f584083 (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
pkgname=aqemu-git
pkgver=v0.9.0.r47.gf120698
pkgrel=1
pkgdesc="QEMU GUI written in Qt (Qt5 rewrite)"
arch=('i686' 'x86_64')
url="https://github.com/tobimensch/aqemu"
license=('GPL2')
conflicts=("aqemu")
depends=('qemu' 'qt5-base' 'libvncserver')
makedepends=('cmake' 'qt5-base')
source=("aqemu::git+https://github.com/tobimensch/aqemu.git")
md5sums=('SKIP')

pkgver() {
    cd "$srcdir/aqemu"
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$srcdir/aqemu"
    cmake -DCMAKE_INSTALL_PREFIX=/usr/ -DQT_QMAKE_EXECUTABLE=qmake4
    make
}

  package() {
    cd "$srcdir/aqemu"
    touch "$srcdir/aqemu/aqemu.1" # man page is removed, but still expected by build system - will be removed soon
    make DESTDIR="$pkgdir" install
}