blob: 39b36fa4e02f23a917f31cedbe66a2030e31e7af (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# Maintainer: Armin Preiml <apreiml@strohwolke.at>
pkgname=hare-git
_pkgname=hare
pkgver=r3759.ea9b3d0e
pkgrel=1
license=("MPL2")
pkgdesc="The Hare systems programming language"
makedepends=(
"scdoc"
"git"
)
depends=(
"qbe-git"
"harec-git"
)
optdepends=(
"aarch64-linux-gnu-gcc: aarch64 cross compilation support"
"aarch64-linux-gnu-binutils: aarch64 cross compilation support"
"riscv64-linux-gnu-gcc: riscv64 cross compilation support"
"riscv64-linux-gnu-binutils: riscv64 cross compilation support"
)
arch=("x86_64" "aarch64")
url="https://harelang.org"
source=("${pkgname%-*}::git+https://git.sr.ht/~sircmpwn/hare"
config.x86_64.mk
config.aarch64.mk)
provides=("hare")
conflicts=("hare")
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
if [ "$CARCH" = "aarch64" ]; then
cd "$srcdir/$_pkgname"
patch --forward --strip=1 --input="${srcdir}/0001-Comment-out-assertions-that-fail-on-aarch64.patch"
fi
}
build() {
cd "$srcdir/$_pkgname"
cp "$srcdir/config.$CARCH.mk" config.mk
export VERSION="dev+$(echo "$_commit" | cut -c-7)"
export LOCALVER=arch
make -j1 # XXX: parallel build driver builds are broken
}
check () {
cd "$srcdir/$_pkgname"
make check
HAREPATH=. .bin/hare test
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir" install
}
sha256sums=('SKIP'
'9c339eeb042ce00641cea4eed5403ca204d6f4f9cd5f709be286a252db47a034'
'c82db335b70c03d3d656128fbb0be2cc552219b3e7c93b15d1e6afd1b0e9ba7e')
|