blob: bcff50c34e5ce6d3852628656e8f9b1bd0ec9e07 (
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
|
# Maintainer: Anatol Pomozov <anatol.pomozov@gmail.com>
pkgname=8cc-git
pkgver=r766.b480958
pkgrel=1
pkgdesc='Simple and clean C11 compiler'
arch=(i686 x86_64)
url='https://github.com/rui314/8cc'
license=(MIT)
depends=(glibc)
makedepends=(git)
source=(git+http://github.com/rui314/8cc
fix_cflags.patch)
sha1sums=('SKIP'
'e9045cbcad942c39e4135ea720100c54996d8422')
pkgver() {
cd 8cc
echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}
prepare() {
cd 8cc
patch -p1 < ../fix_cflags.patch
find -name '*.py' -exec sed -i 's|^#!/usr/bin/python$|#!/usr/bin/python2|' {} \;
}
build() {
cd 8cc
make
}
# check() {
# cd 8cc
# make test
# }
package() {
cd 8cc
install -Dm755 8cc "$pkgdir/usr/bin/8cc"
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|