Advertisement
Guest User

stormlib PKGBUILD

a guest
Jan 1st, 2013
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.87 KB | None | 0 0
  1. # Maintainer: psychoreactorq <psychoreactorq@gmail.com>
  2. # Contributor: zarra <zarraxx@gmail.com>
  3. # Contributor: theluda <theluda@getmangos.com>
  4.  
  5. pkgname=stormlib
  6. _pkgname=StormLib # Directory name in the ZIP file
  7. pkgver=8.20
  8. pkgrel=1
  9. pkgdesc="A pack of modules, written in C++, which are able to read and also to write files from/to the MPQ archives."
  10. arch=('i686' 'x86_64')
  11. url="http://www.zezula.net/en/mpq/stormlib.html"
  12. license=('custom')
  13. depends=('bzip2' 'zlib')
  14. makedepends=('cmake')
  15. source=(http://www.zezula.net/download/${pkgname}.zip)
  16. md5sums=('2876d2ac0a1bd8b104747145571e3e7e')
  17.  
  18. build() {
  19.         mkdir "$srcdir/build"
  20.         cd "$srcdir/build"
  21.         cmake ../${_pkgname} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr || return 1
  22.         make || return 1
  23. }
  24.  
  25. package() {
  26.         cd "${srcdir}/build"
  27.         make DESTDIR=${pkgdir} install
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement