blob: d41297419d4b64270b60ea18ce29c2739380425b (
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
|
# Maintainer: Andreas Baumann <mail at andreas baumann dot com>
pkgname=lacc-git
pkgver=r1023.3083984
pkgrel=1
pkgdesc='A simple, self-hosting C compiler'
arch=(x86_64)
url='https://github.com/larmel/lacc'
license=(MIT)
depends=(glibc)
makedepends=(git)
source=(
git+https://github.com/larmel/lacc
lacc-path.patch
)
sha1sums=(
'SKIP'
'13297866fc99bcc1f651f6afdcad01bee9eebf13'
)
pkgver() {
cd lacc
echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
prepare() {
cd lacc
patch -Np1 < "${srcdir}/lacc-path.patch"
}
build() {
cd lacc
./configure --prefix=/usr --build=x86_64-linux
make
}
check() {
cd lacc
make test
}
package() {
cd lacc
make DESTDIR="$pkgdir" install
}
|