Want more features on Pastebin? Sign Up, it's FREE!
Guest

agar PKGBUILD

By: a guest on Sep 17th, 2011  |  syntax: Bash  |  size: 1.11 KB  |  views: 66  |  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.  
  2.  
  3. pkgname=agar
  4. pkgver=1.4.1
  5. pkgrel=1
  6. pkgdesc="Modern cross-platform toolkit for graphical applications
  7. implemented in C, C++ and Ada"
  8. arch=('i686' 'x86_64')
  9. url="http://libagar.org"
  10. license=('BSD')
  11. depends=('sh')
  12. optdepends=('sdl: If you want to use the sdlfb or sdlgl'
  13.             'freetype2: Improve Font Rendering')
  14. options=('!emptydirs' '!libtool')
  15. source=(http://stable.hypertriton.com/${pkgname}/${pkgname}-${pkgver}.tar.gz)
  16. md5sums=('ce71fb11ad79c926a968a4ed29053820')
  17.  
  18. build() {
  19.   cd "${srcdir}/${pkgname}-${pkgver}"
  20.  
  21.   export CFLAGS="$CFLAGS -Wno-unused-but-set-variable"
  22.   ./configure --prefix=/usr \
  23.           --bindir=/usr/bin \
  24.           --libdir=/usr/lib/${pkgname} \
  25.           --sharedir=/usr/share \
  26.           --with-catman=no
  27.   make
  28. }
  29.  
  30. package() {
  31.   cd "${srcdir}/${pkgname}-${pkgver}"
  32.  
  33.   # make isntall won't create these, even though they are required
  34.   mkdir -p "${pkgdir}/usr"/{bin,lib/$pkgname}
  35.   mkdir -p "${pkgdir}/usr"/share/man/man{3,5}
  36.  
  37.   make  DESTDIR="${pkgdir}" MANDIR=/usr/share/man LIBDIR=/usr/lib/${pkgname} install
  38.   install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
  39. }
clone this paste RAW Paste Data