-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
PKGBUILD
42 lines (35 loc) · 886 Bytes
/
PKGBUILD
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: Tony Nguyen <[email protected]>
# Contributor: Alexander Rødseth <[email protected]>
pkgname=felix
pkgver=2019.01.06.r82.gb2de456f4
pkgrel=1
pkgdesc='The Felix programming language'
arch=('x86_64')
url='https://github.com/felix-lang/felix'
license=('Felix is Free For Any Use (FFAU)/Public Domain.')
depends=('python3' 'gcc' 'gmp' 'gsl' 'sdl2' 'sdl2_ttf' 'sdl2_gfx' 'sdl2_image')
makedepends=('ocaml')
source=("${pkgname}::git+https://github.com/felix-lang/felix")
sha512sums=('SKIP')
prepare() {
cd "$pkgname"
# Arch Linux installs SLD2 to /usr instead of /usr/local
sed -i 's|usr/local|usr|g' src/packages/sdl.fdoc
}
pkgver() {
cd "$pkgname"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$pkgname"
make build
make doc
}
check() {
cd "$pkgname"
make test
}
package() {
cd "$pkgname"
make PREFIX="$pkgdir/usr/local" install
}