summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCooper Pierce2020-08-15 23:40:04 -0400
committerCooper Pierce2020-08-15 23:40:04 -0400
commit7693f0adedfdb22026c92d50ec2d70ee4fa31a29 (patch)
treec4e369bdf5e9c4f586953c3e0a3895591db33bc2
downloadaur-7693f0adedfdb22026c92d50ec2d70ee4fa31a29.tar.gz
Initial release
-rw-r--r--.SRCINFO16
-rw-r--r--PKGBUILD40
2 files changed, 56 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..99d148755ca
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,16 @@
+pkgbase = smackage-git
+ pkgdesc = Package Manager for Standard ML
+ pkgver = 1.4.3.r298
+ pkgrel = 1
+ url = https://github.com/standardml/smackage
+ arch = x86_64
+ license = BSD
+ makedepends = git
+ makedepends = mlton
+ depends = gmp
+ provides = smackage
+ source = smackage::git+http://github.com/standardml/smackage.git#branch=master
+ md5sums = SKIP
+
+pkgname = smackage-git
+
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
+}