summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 182a216a23490cd1c445b0b484d17f975b7d750a (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
# Maintainer: Laura Demkowicz-Duffy <laura@demkowiczduffy.co.uk>
pkgname=osabie-git
pkgver=r857.f34df35
pkgrel=2
pkgdesc="An esoteric code golfing language"
arch=('x86_64')
url="https://github.com/Adriandmen/05AB1E"
license=('MIT')
makedepends=('elixir')
provides=('osabie')
source=("$pkgname::git+https://github.com/Adriandmen/05AB1E.git#branch=master")
noextract=()

pkgver() {
	cd "$pkgname"
	printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
	cd "$pkgname"
	mix local.hex --force
	mix deps.get
	MIX_ENV=prod mix escript.build
}

package() {
	cd "$pkgname"
	install -Dm 755 osabie $pkgdir/usr/bin/osabie
}
sha256sums=('SKIP')