summaryrefslogtreecommitdiff
path: root/extra/qhull/PKGBUILD
blob: 6f55425e63e9d2da5be4324e432b260efb80a6bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $Id: PKGBUILD 150554 2012-02-18 13:03:41Z pierre $
# Maintainer: Ronald van Haren <ronald@archlinux.org>
# Contributor: Stefan Husmann <stefan-husmann@t-online.de>
# Contributor: Jason Taylor <jftaylor21@gmail.com>
# Contributor: Darwin Bautista <djclue917@gmail.com>

pkgname=qhull
pkgver=2012.1
pkgrel=1
pkgdesc="A general dimension code for computing convex hulls and related structures"
arch=('i686' 'x86_64')
url="http://www.qhull.org/"
license=('custom')
depends=('gcc-libs')
makedepends=('cmake')
source=("http://www.qhull.org/download/$pkgname-$pkgver-src.tgz")
options=('!libtool')
md5sums=('ed81aa19b203aa0fdb75b41fe6f7a40f')

build() {
  cd "$srcdir/$pkgname-$pkgver"

  mkdir srcbuild
  cd srcbuild
  cmake -DCMAKE_INSTALL_PREFIX=/usr -DDOC_INSTALL_DIR=/usr/share/doc \
    -DMAN_INSTALL_DIR=/usr/share/man/man1 -DLIB_INSTALL_DIR=/usr/lib ..
  make
}

package() { 
  cd "$srcdir/$pkgname-$pkgver/srcbuild"

  make DESTDIR=$pkgdir install

  # Install license
  install -Dm644 $srcdir/$pkgname-$pkgver/COPYING.txt "$pkgdir/usr/share/licenses/$pkgname/license.txt"
}