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

Untitled

By: a guest on Mar 6th, 2011  |  syntax: Bash  |  size: 0.80 KB  |  views: 19,235  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
This paste has a previous version, view the difference. 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. pkgname=foo
  3. pkgver=10.0.2
  4. pkgrel=2
  5. pkgdesc="Foo is an example package for this PKGBUILD file."
  6. url="http://www.foo.tld"
  7. arch=('x86_64' 'i686')
  8. license=('GPLv3')
  9. depends=('php' 'mysql')
  10. optdepends=('java-runtime')
  11. makedepends=()
  12. conflicts=()
  13. replaces=()
  14. backup=()
  15. install='foo.install'
  16. source=("http://www.server.tld/${pkgname}-${pkgver}.tar.gz"
  17.         "foo.desktop")
  18. md5sums=('a0afa52d60cea6c0363a2a8cb39a4095'
  19.          'a0afa52d60cea6c0363a2a8cb39a4095')
  20.  
  21. build() {
  22.   cd "${srcdir}/${pkgname}-${pkgver}"
  23.   cmake ./ -DCMAKE_INSTALL_PREFIX=/usr
  24.   make
  25. }
  26.  
  27. package() {
  28.   cd "${srcdir}/${pkgname}-${pkgver}"
  29.   make DESTDIR="${pkgdir}" install
  30.   install -Dm644 COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING"
  31. }
  32.  
  33. # vim:set ts=2 sw=2 et:
clone this paste RAW Paste Data