2013-12-18 02:41:12 +08:00
|
|
|
# Maintainer (x86_64): Manuel Tortosa <manutortosa@chakra-project@org>
|
2010-12-15 07:18:31 +08:00
|
|
|
|
|
|
|
pkgname=qhull
|
2014-06-04 23:37:25 +08:00
|
|
|
pkgver=2012.1
|
2010-12-15 07:18:31 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A general dimension code for computing convex hulls and related structures"
|
2014-06-04 23:37:25 +08:00
|
|
|
arch=('x86_64')
|
2010-12-15 07:18:31 +08:00
|
|
|
url="http://www.qhull.org/"
|
|
|
|
license=('custom')
|
|
|
|
depends=('glibc')
|
2011-05-01 04:36:30 +08:00
|
|
|
makedepends=('cmake')
|
2014-06-04 23:37:25 +08:00
|
|
|
source=(http://www.qhull.org/download/$pkgname-$pkgver-src.tgz)
|
2010-12-15 07:18:31 +08:00
|
|
|
options=('!libtool')
|
2014-06-04 23:37:25 +08:00
|
|
|
sha1sums=('60f61580e1d6fbbd28e6df2ff625c98d15b5fbc6')
|
2010-12-15 07:18:31 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
2011-05-01 04:36:30 +08:00
|
|
|
[ -d build ] || mkdir build
|
|
|
|
cd build
|
|
|
|
cmake -DCMAKE_INSTALL_PREFIX=/usr -DDOC_INSTALL_DIR=/usr/share/doc \
|
|
|
|
-DLIB_INSTALL_DIR=/usr/lib ..
|
|
|
|
make
|
2010-12-15 07:18:31 +08:00
|
|
|
}
|
|
|
|
|
2011-05-01 04:36:30 +08:00
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver/build"
|
|
|
|
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
|
|
|
|
# install manpages
|
|
|
|
install -Dm644 $srcdir/$pkgname-$pkgver/html/rbox.man $pkgdir/usr/share/man/man1/rbox.1
|
|
|
|
install -Dm644 $srcdir/$pkgname-$pkgver/html/qhull.man $pkgdir/usr/share/man/man1/qhull.1
|
|
|
|
|
|
|
|
# Install license
|
|
|
|
install -Dm644 $srcdir/$pkgname-$pkgver/COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"
|
|
|
|
}
|
2010-12-15 07:18:31 +08:00
|
|
|
|