# Maintainer: psychoreactorq # Contributor: zarra # Contributor: theluda pkgname=stormlib _pkgname=StormLib # Directory name in the ZIP file pkgver=8.20 pkgrel=1 pkgdesc="A pack of modules, written in C++, which are able to read and also to write files from/to the MPQ archives." arch=('i686' 'x86_64') url="http://www.zezula.net/en/mpq/stormlib.html" license=('custom') depends=('bzip2' 'zlib') makedepends=('cmake') source=(http://www.zezula.net/download/${pkgname}.zip) md5sums=('2876d2ac0a1bd8b104747145571e3e7e') build() { mkdir "$srcdir/build" cd "$srcdir/build" cmake ../${_pkgname} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr || return 1 make || return 1 } package() { cd "${srcdir}/build" make DESTDIR=${pkgdir} install }