aboutsummaryrefslogtreecommitdiffstats
path: root/community/hare/APKBUILD
blob: d1fe995a85a488317058686c99fde3fd75ee45e7 (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
# Maintainer: Simon Zeni <simon@bl4ckb0ne.ca>
pkgname=hare
pkgver=0.24.0
pkgrel=1
pkgdesc="The Hare systems programming language"
url="https://harelang.org"
arch="x86_64 aarch64 riscv64"
license="MPL-2.0 AND GPL-3.0-only"
depends="qbe harec binutils"
makedepends="scdoc"
checkdepends="tzdata"
subpackages="$pkgname-doc"
source="
	$pkgname-$pkgver.tar.gz::https://git.sr.ht/~sircmpwn/hare/archive/$pkgver.tar.gz
	$pkgname-rv64-fix.patch::https://git.sr.ht/~sircmpwn/hare/commit/80e45e4d931a6e90d999846b86471cac00d2a6d5.patch
"

build() {
	cp configs/linux.mk config.mk
	make PREFIX=/usr ARCH=$CARCH VERSION="$pkgver"-alpine
}

check() {
	make ARCH=$CARCH STDLIB_SLOW_TESTS=1 check
}

package() {
	make PREFIX=/usr DESTDIR="$pkgdir" install
}

sha512sums="
d7b96bc031d432e0ca0a9186a043d4cd4af4d4b57be5ce4b913d6acd26cdb708d8c9ad8e2c64c78c192a11a96977d3e916985a548238591b3c4d177b9cc811d9  hare-0.24.0.tar.gz
6e38375cc4b7c6d316e6d42deb285d2245256307aaafb3dad985be1bbeaa82ecadc9bdcc99505156fb4f398f96123ca48e136cbd23c6f39a539cd684c1fff97a  hare-rv64-fix.patch
"