summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 68c5aa27eaaceab8ef2918a1e8845a9dcec0a540 (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
38
39
40
41
42
43
# Maintainer: Felix Salfelder <felix aet salfelder dot org>

_pkgname=gnucap-adms
pkgname=$_pkgname-git
pkgver=r645.1154b51
pkgrel=1
pkgdesc="automatic device model compiler for Gnucap"
arch=('i686' 'x86_64')
url="http://gnucap.org/"
license=('GPL')
depends=('python' 'gnucap' 'boost' 'adms' 'gnucap-custom-git')
makedepends=('git')
provides=('gnucap-adms')
conflicts=('gnucap-adms')
source=("$_pkgname::git+git://git.sv.gnu.org/gnucap/gnucap-adms.git#branch=master")
md5sums=('SKIP')

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

build() {
	cd $_pkgname
	./bootstrap
	./configure --prefix=/usr
	make
}

check() {
	cd $_pkgname
	make check || :
	echo THIS IS WORK IN PROGRESS
	echo THIS IS WORK IN PROGRESS
	echo CURRENTLY, ONLY A FEW TESTS PASS
	echo THIS IS WORK IN PROGRESS
	echo THIS IS WORK IN PROGRESS
}

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