blob: 3382929cd448d2f6bd6a72485fb60521e5afe1da (
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
|
# Maintainer: Armin Preiml <apreiml@strohwolke.at>
pkgname=harec-git
_pkgname=harec
pkgver=r1828.770566a
pkgrel=1
license=("GPL3")
pkgdesc="The Hare compiler"
makedepends=("git")
depends=("qbe-git" "binutils")
arch=("x86_64" "aarch64")
url="https://harelang.org"
source=("${pkgname%-*}::git+https://git.sr.ht/~sircmpwn/harec")
sha512sums=('SKIP')
provides=("harec")
conflicts=("harec")
# options=(debug)
pkgver() {
cd "$srcdir/$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
build() {
cd "$srcdir/$_pkgname"
cp configs/linux.mk config.mk
make ARCH=$CARCH
}
check () {
cd "$srcdir/$_pkgname"
make ARCH=$CARCH check
}
package() {
cd "$srcdir/$_pkgname"
make DESTDIR="$pkgdir" install
}
|