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

CGAL PKGBUILD with license installation

By: a guest on Dec 15th, 2011  |  syntax: Bash  |  size: 0.77 KB  |  views: 28  |  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. pkgname=cgal
  2. pkgver=3.9
  3. pkgrel=4
  4. _pkgid=29125
  5. pkgdesc="Computational Geometry Algorithms Library"
  6. arch=('i686' 'x86_64')
  7. url="http://www.cgal.org"
  8. source=(http://gforge.inria.fr/frs/download.php/$_pkgid/CGAL-$pkgver.tar.xz
  9.         boost-1.48.patch)
  10. depends=('mpfr' 'boost' 'gmp')
  11. makedepends=('cmake' 'xz')
  12. license=('LGPL' 'custom:QPL')
  13. md5sums=('797697130ff9231627521c0a38f16d2f'
  14.          '62a49b37ff4d04daae9b3a03365de4ef')
  15.  
  16. build() {
  17.   cd $srcdir/CGAL-$pkgver
  18.   patch -p1 < $srcdir/boost-1.48.patch
  19.   cmake . -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr
  20.   make
  21.   make install DESTDIR=$pkgdir
  22.  
  23.   for _license in LICENSE{,.FREE_USE,.QPL,.LGPL}; do
  24.     install -D -m644 $srcdir/CGAL-$pkgver/$_license $pkgdir/usr/share/licenses/$pkgname/$_license
  25.   done
  26. }