diff options
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..1e8e65aefc42 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = etlas-git + pkgdesc = Etlas, the build tool and package manager for the Eta programming language + pkgver = 1.5.1.0.r136.gbbd7c55 + pkgrel = 1 + url = https://github.com/typelead/etlas + arch = x86_64 + license = BSD3 + makedepends = stack + conflicts = etlas + source = etlas::git+https://github.com/typelead/etlas.git + md5sums = SKIP + +pkgname = etlas-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..63b00ca48533 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ + +pkgname=etlas-git +_pkgname=etlas +pkgver=1.5.1.0.r136.gbbd7c55 +pkgrel=1 +pkgdesc='Etlas, the build tool and package manager for the Eta programming language' +arch=('x86_64') +url='https://github.com/typelead/etlas' +license=(BSD3) +depends=() +makedepends=('stack') +conflicts=('etlas') +source=("${_pkgname}::git+https://github.com/typelead/etlas.git") +md5sums=('SKIP') + +prepare() { + cd "${srcdir}/${_pkgname}" + git submodule update --init --recursive +} + +build() { + cd "${srcdir}/${_pkgname}" + stack build etlas +} + +package() { + cd "${srcdir}/${_pkgname}" + stack install --local-bin-path "${pkgdir}/usr/bin" etlas +} + +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} |