summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea6a8858d132a1dd2befcd1e7848f10547264496 (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
# Maintainer: John Maguire <contact@johnmaguire.me>
pkgname=libfxqllauncher
pkgver=0.1.0.6765890
pkgrel=2
pkgdesc="QuakeLive Launcher C++ Library and QML Plugin"
arch=('i686' 'x86_64')
url="https://bitbucket.org/fx_/fx-qllauncher"
license=('GPL3')
depends=('boost>=1.55' 'qt5-base<5.5' 'quazip-qt5' 'qxmpp')
makedepends=('git' 'qt5-declarative')
install="$pkgname.install"
source=("$pkgname::git+https://bitbucket.org/fx_/fx-qllauncher.git")

sha256sums=('SKIP')

pkgver() {
	cd "$srcdir/$pkgname"

	# Using 0.1.0 as a stand-in for lack of versioning
	echo 0.1.0.$(git log -1 --format="%h")
}

prepare() {
	cd "$srcdir/$pkgname"

	# Debian quazip-qt5 is Arch quazip5
	sed -i 's/quazip-qt5/quazip5/g' ./fxqllauncher/fxqllauncher.pro

	# Similarly, includes are quazip5, not plain quazip
	find ./ -type f -exec sed -i -e 's/#include <quazip\//#include <quazip5\//g' {} \;
}

build() {
	cd "$srcdir/$pkgname/fxqllauncher"
	qmake fxqllauncher.pro
	make
}

package() {
	cd "$srcdir/$pkgname/fxqllauncher"
	make DESTDIR="$pkgdir" INSTALL_ROOT="$pkgdir" install
}