summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d91cfad23098663268328592a697ec521ee6e1b9 (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
_reponame=libfirm
pkgname="${_reponame}-git"
pkgver=1.22.0.r1139.g95a238c
pkgrel=1
pkgdesc='A c-lib for graph-based IR, optimizations and code gen for compilers'
url="https://pp.ipd.kit.edu/firm/"
license=('GPL')
arch=('any')
makedepends=('git')
source=("${_reponame}::git+https://github.com/${_reponame}/${_reponame}.git" 
        libfirm.pc)
md5sums=('SKIP' '39a7ef0417669487524b95460962f6c7')
options=(staticlibs)
conflicts=('libfirm')
provides=("libfirm=${pkgver}")

pkgver() {
	cd "$_reponame"
	git describe --long --tags --abbrev=7 | sed 's/^libfirm-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
	cd "$_reponame"
	
	make
}

package() {
	cd "$_reponame"
	
	make install PREFIX=/usr DESTDIR="$pkgdir"
	install -Dm644 "../${_reponame}.pc" \
	               "${pkgdir}/usr/lib/pkgconfig/${_reponame}.pc"
}