diff options
author | Stephen Gregoratto | 2019-01-11 21:49:14 +1100 |
---|---|---|
committer | Stephen Gregoratto | 2019-01-11 21:49:14 +1100 |
commit | b0665618a45250ae3475e358676efb6db80bc528 (patch) | |
tree | 2f014e08b6a18003c18f74ac88519bac175a1f46 | |
download | aur-b0665618a45250ae3475e358676efb6db80bc528.tar.gz |
Initial release.
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 33 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..a293b8d3a417 --- /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 000000000000..8c0f874372a0 --- /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 +} |