blob: 7ce11430775556043a6c0c39d0781ba4fd8b2ff0 (
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
|
# Maintainer: Dustin Van Tate Testa <toast27@gmail.com>
pkgname=ys-git
pkgver=v0.1.7.beta.r16.gd7a9ce9 # calls `pkgver()` to replace this number (ver from git)
pkgrel=1
license=('GPL')
pkgdesc="Official interpreter for the YodaScript Language"
url="https://github.com/dvtate/yoda"
arch=('any')
makedepends=('git')
# provides interpreter binary and extension library
provides=('ys' 'yslib.so=1')
# github repo
source=("$pkgname::git+https://github.com/dvtate/yoda")
md5sums=('SKIP')
pkgver() {
cd "$pkgname"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
package() {
# configure
cd $pkgname
mkdir $pkgdir/usr/
mkdir $pkgdir/usr/bin/
mkdir $pkgdir/usr/lib/
# compile
make
make libs
# install
install -Dm755 yoda $pkgdir/usr/bin/ys
install -Dm644 yslib.so $pkgdir/usr/lib/yslib.so
install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" # maybe waste of disc space
}
|