summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a4c0b95e425f0c37c7442a58b1bb9242de199cbb (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
# Maintainer: Felix Salfelder <felix aet salfelder dot org>
# Thanks to David Adler for testing.

_pkgname=gnucsator
pkgname=$_pkgname-git
pkgver=000
pkgrel=1
pkgdesc="Gnucap based Simulator for Qucs"
arch=('i686' 'x86_64')
url="http://gnucap.org/"
license=('GPL')
depends=('gnucap-git' 'boost')
makedepends=('git' 'numdiff')
source=(git+https://github.com/qucs/gnucsator#branch=develop)
md5sums=('SKIP')

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

build() {
	cd $_pkgname
	./configure
	make
}

check() {
	cd $_pkgname
	# Ignore outcome. Too much numerical noise.
	make check || :
}

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