summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStephen Gregoratto2019-01-11 21:49:14 +1100
committerStephen Gregoratto2019-01-11 21:49:14 +1100
commitb0665618a45250ae3475e358676efb6db80bc528 (patch)
tree2f014e08b6a18003c18f74ac88519bac175a1f46 /PKGBUILD
downloadaur-b0665618a45250ae3475e358676efb6db80bc528.tar.gz
Initial release.
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD33
1 files changed, 33 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8c0f874372a
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,33 @@
+# Maintainer: KingofToasters <themanhimself at sgregoratto dot me>
+
+pkgname=mrsh-git
+pkgver=r314.e73e175
+pkgrel=1
+pkgdesc="A minimal POSIX shell"
+url="https://git.sr.ht/~emersion/mrsh"
+license=('MIT')
+arch=('i686' 'x86_64' 'armv6h' 'armv7h')
+makedepends=("meson" "git")
+provides=("${pkgname%-git}")
+conflicts=("${pkgname%-git}")
+source=("${pkgname%-git}::git+$url")
+sha256sums=('SKIP')
+
+pkgver() {
+ cd "$srcdir/${pkgname%-git}"
+ printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "$srcdir/${pkgname%-git}"
+ meson --prefix /usr "$srcdir/build"
+ ninja -C "$srcdir/build"
+}
+
+check() {
+ ninja -C "$srcdir/build" test
+}
+
+package() {
+ DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
+}