archrelease: copy trunk to community-any
[ArchLinux/community.git] / gfan / trunk / PKGBUILD
blobd696b2a6eeb500a35549fc4c03a6dcae9cb78109
1 # Maintainer: Antonio Rojas <arojas@archlinux.org>
2 # Contributor: Rémy Oudompheng <remy@archlinux.org>
4 pkgname=gfan
5 pkgver=0.6.2
6 pkgrel=2
7 pkgdesc="A software package for computing Gröbner fans and tropical varieties"
8 arch=(x86_64)
9 url="http://home.imf.au.dk/jensen/software/gfan/gfan.html"
10 license=(GPL)
11 depends=(cddlib)
12 source=("http://home.imf.au.dk/jensen/software/gfan/gfan$pkgver.tar.gz"
13          gfan-cflags.patch)
14 sha256sums=('a674d5e5dc43634397de0d55dd5da3c32bd358d05f72b73a50e62c1a1686f10a'
15             'a6130c0b576cc58a86cc1010b2fb3359666ac6c5de9ae2d939877b8f609c9dff')
17 prepare() {
18   cd gfan$pkgver
19 # Honor system build flags
20   patch -p1 -i ../gfan-cflags.patch
23 build() {
24   cd gfan$pkgver
25   CFLAGS+=" -I/usr/include/cddlib" \
26   make cddnoprefix=true
29 package() {
30   cd gfan$pkgver
31   make PREFIX="$pkgdir"/usr install