summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Gregoratto2019-01-11 21:49:14 +1100
committerStephen Gregoratto2019-01-11 21:49:14 +1100
commitb0665618a45250ae3475e358676efb6db80bc528 (patch)
tree2f014e08b6a18003c18f74ac88519bac175a1f46
downloadaur-b0665618a45250ae3475e358676efb6db80bc528.tar.gz
Initial release.
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD33
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a293b8d3a41
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = mrsh-git
+ pkgdesc = A minimal POSIX shell
+ pkgver = r314.e73e175
+ pkgrel = 1
+ url = https://git.sr.ht/~emersion/mrsh
+ arch = i686
+ arch = x86_64
+ arch = armv6h
+ arch = armv7h
+ license = MIT
+ makedepends = meson
+ makedepends = git
+ provides = mrsh
+ conflicts = mrsh
+ source = mrsh::git+https://git.sr.ht/~emersion/mrsh
+ sha256sums = SKIP
+
+pkgname = mrsh-git
+
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
+}