blob: a50cf0c3b8cdf292d4364f4110cfa505ba8c5780 (
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
|
# Maintainer: Nicklas Botö <bruski@nicklasbotö.se>
pkgname=bruski-git
pkgver=1.1.r236.0506501
pkgrel=1
pkgdesc="The BruSKI language compiler and platform"
arch=(x86_64)
url="https://github.com/NicklasBoto/BruSKI.git"
license=('GPL')
depends=()
makedepends=(git make stack)
source=("git+$url")
md5sums=('SKIP')
pkgver() {
cd "${srcdir}/BruSKI"
printf "1.1.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
package() {
cd "${srcdir}/BruSKI"
install -d "${pkgdir}/usr/lib/bruski"
install -D src/Prelude/*.bru "${pkgdir}/usr/lib/bruski/"
echo "-- Path to standard library" >> src/Config.hs
echo 'preludePath = "/usr/lib/bruski/"' >> src/Config.hs
stack install --local-bin-path "${pkgdir}/usr/bin"
install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
install -Dm644 README.md "${pkgdir}/usr/share/doc/${pkgname}/README.md"
make DESTDIR="$pkgdir/" install
}
|