summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1e0ca053c477c131469372aa5d161803400b6487 (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: David Mazieres (http://www.scs.stanford.edu/~dm/addr/)
pkgname=stc-git
pkgver=r336.353fbb9
pkgrel=1
pkgdesc="Stellar transaction compiler"
arch=(x86_64 i686 aarch64 armv71)
url="https://github.com/xdrpp/stc"
license=('GPL3')
groups=()
depends=()
makedepends=('git' 'go' 'go-tools')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
replaces=()
backup=()
options=()
install=
source=('git+https://github.com/xdrpp/stc.git'
	'git+https://github.com/xdrpp/goxdr.git')
noextract=()
md5sums=('SKIP' 'SKIP')

pkgver() {
	cd "$srcdir/${pkgname%-git}"

# Git, no tags available
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

prepare() {
	cd "$srcdir/${pkgname%-git}"
	ln -sf ../../goxdr cmd/
}

build() {
	cd "$srcdir/${pkgname%-git}"
	make
}

check() {
	cd "$srcdir/${pkgname%-git}"
	make -k test
}

package() {
	cd "$srcdir/${pkgname%-git}"
	make DESTDIR="$pkgdir/" PREFIX=/usr install
}