blob: 2d069ae2d96fa1a2dbb80f40d16f0572a6611351 (
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
|
# Maintainer: Otreblan <otreblain@gmail.com>
pkgname=tisc-git
pkgver=r176.18b01a0
pkgrel=1
epoch=
pkgdesc='Remake of Kenneth Louden’s "Tiny Machine" computer'
arch=('x86_64')
url="https://github.com/jnguyen1098/TISC"
license=('ISC')
groups=()
depends=('glibc')
makedepends=('git')
checkdepends=()
optdepends=()
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')
prepare() {
cd "$srcdir/$pkgname"
sed \
-e "s/CFLAGS = .*/CFLAGS = $CFLAGS -I"'$(INC)'"/" \
-e "s/CC = .*/CC = gcc/" \
-e 's/$(CC) $(CFLAGS) $^ -o $@/& $(LDFLAGS)/'\
-i makefile
echo "LDFLAGS = $LDFLAGS" >> makefile
}
pkgver() {
cd "$srcdir/$pkgname"
( set -o pipefail
git describe --long 2>/dev/null | sed 's/^v-//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
build() {
cd "$srcdir/$pkgname"
make
}
package() {
cd "$srcdir/$pkgname"
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm755 bin/TISC "$pkgdir/usr/bin/TISC"
}
|