summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD40
1 files changed, 40 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..d84f2862c65
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,40 @@
+# Maintainer: Cooper Pierce <cppierce at andrew.cmu.edu>
+pkgname='smackage-git'
+pkgver=1.4.3.r298
+pkgrel=1
+pkgdesc="Package Manager for Standard ML"
+arch=('x86_64')
+url="https://github.com/standardml/smackage"
+license=('BSD')
+depends=('gmp')
+makedepends=('git'
+ 'mlton')
+provides=("${pkgname%-git}")
+source=('smackage::git+http://github.com/standardml/smackage.git#branch=master')
+md5sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "%s" "$(git tag | tail -n1 | cut -c2-).r$(git rev-list --count HEAD)"
+}
+
+prepare() {
+ cd "$srcdir/${pkgname%-git}"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ make mlton
+}
+
+check() {
+ cd "$srcdir/${pkgname%-git}"
+ [ -e bin/smackage ]
+}
+
+package() {
+ cd "$srcdir/${pkgname%-git}"
+ # Install BSD 2-clause license
+ install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ DESTDIR="$pkgdir/usr/" make install
+}