summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c8be28f845d65b734ca0c74ca653783e6a7802df (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
44
45
46
47
48
# Maintainer: xiretza <xiretza+aur@gmail.com>
pkgname=aiger
pkgver=1.9.9
pkgrel=1
pkgdesc="A format, library and set of utilities for And-Inverter Graphs (AIGs)"
arch=(x86_64)
url="http://fmv.jku.at/aiger/"
license=('MIT' 'BSD')
depends=()
makedepends=()
checkdepends=()
optdepends=()
provides=()
conflicts=()
replaces=()
backup=()
options=()
install=
changelog=
source=("http://fmv.jku.at/aiger/$pkgname-$pkgver.tar.gz"
        "makefile-install.patch"
        "configure-sh-commas-in-cflags.patch")
sha256sums=('1e50d3db36f5dc5ed0e57aa4c448b9bcf82865f01736dde1f32f390b780350c7'
            '7103083de75ad6af76ee5272ba3c372741ccf1bcbd88fee6902eba8f2a0e416e'
            'a43096303e4f94c02eda74534056cfd8e31375aaf3d64635cbf062625e61b072')

prepare() {
	cd "$pkgname-$pkgver"
	patch -p1 < "$srcdir/makefile-install.patch"
	patch -p1 < "$srcdir/configure-sh-commas-in-cflags.patch"
}

build() {
	cd "$pkgname-$pkgver"
	env CFLAGS="$CFLAGS $LDFLAGS" ./configure.sh
	make
}

package() {
	cd "$pkgname-$pkgver"
	make DESTDIR="$pkgdir" install

	install -d "$pkgdir/usr/share/$pkgname"
	cp -r examples/ "$pkgdir/usr/share/$pkgname/"
	rm "$pkgdir/usr/share/$pkgname/examples/.cvsignore"

	install -Dm 644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}