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

Untitled

By: a guest on Feb 27th, 2011  |  syntax: Bash  |  size: 0.71 KB  |  views: 437  |  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: Somebody <somebody[at]foo[dot]tld>
  2.  
  3. pkgname=foo
  4. pkgver=10.0.2
  5. pkgrel=2
  6. pkgdesc="Foo is an example package for this PKGBUILD file."
  7. url="http://www.foo.tld"
  8. arch=('i686' 'x86_64')
  9. license=('GPLv3')
  10. depends=('php' 'mysql')
  11. optdepends=('java-runtime')
  12. makedepends=()
  13. conflicts=()
  14. replaces=()
  15. backup=()
  16. install='foo.install'
  17. source=("http://www.server.tld/${pkgname}-${pkgver}.tar.gz" foo.desktop)
  18.  
  19. md5sums=('a0afa52d60cea6c0363a2a8cb39a4095'
  20.                  'a0afa52d60cea6c0363a2a8cb39a4095')
  21.  
  22.  
  23. build() {
  24.        
  25.         cd "${srcdir}/${pkgname}-${pkgver}"
  26.         cmake ./ -DCMAKE_INSTALL_PREFIX=/usr
  27.         make || return 1
  28. }
  29.  
  30. package() {
  31.        
  32.         cd ${srcdir}/${pkgname}-${pkgver}"
  33.         make DESTDIR="${pkgdir}" install || return 1
  34. }