summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d31d112c6142fc5df8fe83aa7932a7ea69ef8d23 (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
# Maintainer: Felix Salfelder

_pkgname=gnucap-make
pkgname=$_pkgname-git
pkgver=r7.dcb5d84
pkgrel=1
pkgdesc="Just in time compilation + loader for Gnucap"
arch=('i686' 'x86_64')
url="http://gnucap.org/"
license=('GPL')
depends=('gnucap')
makedepends=('git')
provides=('gnucap-make')
conflicts=('gnucap-make')
source=("$_pkgname::git://git.sv.gnu.org/gnucap/gnucap-tools.git#branch=make")
md5sums=('SKIP')

pkgver() {
	cd $_pkgname
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd $_pkgname
	make
}

check() {
	cd $_pkgname
	make check
}

package() {
	cd $_pkgname
	make DESTDIR="$pkgdir/" install
}