Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

stormlib PKGBUILD

By: a guest on Jan 1st, 2013  |  syntax: Bash  |  size: 0.87 KB  |  views: 35  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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. }