PKGBUILDs/community/cgal/PKGBUILD

46 lines
1.3 KiB
Bash
Raw Normal View History

2016-04-19 01:15:01 +00:00
# $Id$
# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Dmitriy Morozov <foxcub>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - qt5-svg for aarch64 only due to build issue with Qt GLES
pkgname=cgal
2017-04-26 04:21:15 +00:00
pkgver=4.9.1
pkgrel=1
2016-04-19 01:15:01 +00:00
pkgdesc="Computational Geometry Algorithms Library"
arch=('i686' 'x86_64')
url="http://www.cgal.org"
license=('GPL' 'LGPL')
source=("https://github.com/CGAL/cgal/releases/download/releases%2FCGAL-$pkgver/CGAL-$pkgver.tar.xz")
depends=('mpfr' 'gmp' 'mesa' 'glu' 'boost-libs')
optdepends=('eigen: for some packages, see the CGAL manual')
optdepends_aarch64=('qt5-svg: for CGAL_Qt5')
makedepends=('cmake' 'eigen' 'boost')
makedepends_aarch64=('qt5-svg')
2017-04-26 04:21:15 +00:00
md5sums=('820ef17ffa7ed87af6cc9918a961d966')
2016-04-19 01:15:01 +00:00
# consider building with swig for python stuff
# https://gforge.inria.fr/frs/?group_id=52 for _pkgid
# 4.8 supposedly does not depend on boost? good luck...
build() {
cd "$srcdir/CGAL-$pkgver"
2016-09-20 12:46:46 +00:00
mkdir -p build
2016-04-19 01:15:01 +00:00
cd build
2017-04-26 04:21:15 +00:00
cmake ../ -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_INSTALL_LIBDIR=/usr/lib
2016-04-19 01:15:01 +00:00
make
}
package() {
cd "$srcdir/CGAL-$pkgver/build"
make install DESTDIR="$pkgdir"
# The tarball still has all these licenses included
for _license in LICENSE{,.FREE_USE,.GPL,.LGPL}; do
install -D -m644 "$srcdir/CGAL-$pkgver/$_license" "$pkgdir/usr/share/licenses/$pkgname/$_license"
done
}