summaryrefslogtreecommitdiff
path: root/pcr/stormlib/PKGBUILD
blob: bc21519fe8c6b907efe777dc131544a1e1bc0db0 (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
# Maintainer: Andreas Grapentin <andreas@grapentin.org>
# Maintainer (AUR): Jerome Leclanche <jerome@leclan.ch>

_pkgname=StormLib
pkgname=${_pkgname,,}
pkgver=9.21
pkgrel=1.parabola1
pkgdesc="A C/C++ API to read and write MPQ files with support for merged archives, patch MPQs and more."
arch=("i686" "x86_64" "armv7h")
url="http://www.zezula.net/en/mpq/stormlib.html"
license=("MIT")
depends=("bzip2" "zlib")
makedepends=("cmake")
source=("$_pkgname-$pkgver.tar.gz::https://github.com/ladislav-zezula/$_pkgname/archive/v$pkgver.tar.gz")
sha256sums=('e23e9f106c6367f161fc63e015e7da6156b261b14c7e4a5aa542df02009294f9')


build() {
	mkdir -p build
	cd build
	cmake "$srcdir/$_pkgname-$pkgver" \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr
	make
}

package() {
	cd build
	make DESTDIR="$pkgdir" install
}