summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9f387f890468e9201c49cad462cd0e067e6a08cd (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
# Maintainers: Ben Ruijl <benruyl@gmail.com> and Stefano Campanella <stefanocampanella1729@gmail.com>
pkgname=form-git
_pkgid=${pkgname%-git}
pkgver=4.3.0.r0.gb2887a7
pkgrel=1
pkgdesc="Symbolic Manipulation System developed at Nikhef."
arch=('i686' 'x86_64')
url="https://www.nikhef.nl/~form/"
license=('GPL')
depends=('gmp>=4.2' 'zlib>=1.2')
makedepends=('git' 'autoconf' 'automake')
provides=('form')
source=("git+https://github.com/vermaseren/form.git")
md5sums=('SKIP')

pkgver() {
    cd $_pkgid
    git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build(){
    cd $_pkgid
    autoreconf -i
    ./configure --prefix=/usr
    make ${MAKEFLAGS}
}

package() {
    cd $_pkgid
    make DESTDIR="$pkgdir/" install
    mkdir -p $pkgdir/usr/share/man/man1
    install doc/form.1 $pkgdir/usr/share/man/man1
}