blob: 43c78901175137badbd30f5963075ca50a0c0817 (
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
|
# Maintainer: Teteros <teteros at teknik dot io>
_pkgname=runt
pkgname=runt-git
pkgver=r194.02568f1
pkgrel=1
pkgdesc="Stack-based language written in ANSI C"
arch=('i686' 'x86_64')
url="http://paulbatchelor.github.io/proj/runt/"
license=('custom:public domain')
depends=('glibc')
makedepends=('git' 'sporth-git')
provides=('runt')
conflicts=('runt')
source=("git://github.com/PaulBatchelor/$_pkgname.git")
md5sums=('SKIP')
pkgver() {
cd "$_pkgname"
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
# Replace hardcoded /usr/local prefixes
find "$_pkgname" -type f -exec sed -i "s|/usr/local|/usr|g" {} \;
}
build() {
cd "$_pkgname"
make
}
package() {
cd "$_pkgname"
install -Dm755 irunt "$pkgdir/usr/bin/irunt"
install -Dm644 librunt.a "$pkgdir/usr/lib/librunt.a"
install -Dm755 runt.h "$pkgdir/usr/include/runt.h"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -dm755 "$pkgdir/usr/share/doc"
cp -a examples "$pkgdir/usr/share/doc/$pkgname"
}
|