summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorStephen Gregoratto2019-04-19 20:23:54 +1000
committerStephen Gregoratto2019-04-19 20:27:44 +1000
commit5f1a03baa3182a4f987de1efaeb92e1aa86c03f1 (patch)
treeec470d68f0b690a5b9c22378db864c54290f8b9c /PKGBUILD
parentb0665618a45250ae3475e358676efb6db80bc528 (diff)
downloadaur-5f1a03baa3182a4f987de1efaeb92e1aa86c03f1.tar.gz
Simplify PKGBUILD, add LICENSE file
- Use arch-meson instead of meson --prefix /usr - Remove redundant confilicts rule - Reflow indentation - Replace email address
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD34
1 files changed, 17 insertions, 17 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 8c0f874372a..0ff09afe5b9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,33 +1,33 @@
-# Maintainer: KingofToasters <themanhimself at sgregoratto dot me>
-
+# Maintainer: KingofToasters <dev 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')
+pkgver=r342.7f363b2
+pkgrel=2
+pkgdesc='A minimal POSIX shell'
+url='https://git.sr.ht/~emersion/mrsh'
+license=('custom: MIT')
arch=('i686' 'x86_64' 'armv6h' 'armv7h')
-makedepends=("meson" "git")
-provides=("${pkgname%-git}")
-conflicts=("${pkgname%-git}")
+makedepends=('git' 'meson')
+provides=('mrsh')
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)"
+ 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"
+ cd "$srcdir/${pkgname%-git}"
+ arch-meson "$srcdir/build"
+ ninja -C "$srcdir/build"
}
check() {
- ninja -C "$srcdir/build" test
+ ninja -C "$srcdir/build" test
}
package() {
- DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
+ DESTDIR="$pkgdir" ninja -C "$srcdir/build" install
+ install -Dm644 "$srcdir/${pkgname%-git}/LICENSE" \
+ "$pkgdir/usr/share/licences/$pkgname/LICENSE"
}