diff options
author | lmartinez-mirror | 2021-03-26 00:18:21 -0500 |
---|---|---|
committer | lmartinez-mirror | 2021-03-26 00:18:21 -0500 |
commit | 5f9b82b1a0200dad1ed0962c2163fea6f49f1507 (patch) | |
tree | 64364689abe53cdc720496397d9faf78c788a415 | |
parent | 4e11a77cf02d35cd2b73042de555d0593ee8196b (diff) | |
download | aur-5f9b82b1a0200dad1ed0962c2163fea6f49f1507.tar.gz |
small fixes to install process
-rw-r--r-- | .SRCINFO | 3 | ||||
-rw-r--r-- | PKGBUILD | 7 | ||||
-rw-r--r-- | hilbish-git.install | 11 |
3 files changed, 17 insertions, 4 deletions
@@ -1,8 +1,9 @@ pkgbase = hilbish-git pkgdesc = A shell written in Go and extended with Lua - pkgver = 0.1.2.r0.gdeb1bc8 + pkgver = 0.1.2.r3.g795a7d7 pkgrel = 2 url = https://github.com/hilbis/hilbish + install = hilbish-git.install arch = x86_64 arch = aarch64 license = MIT @@ -1,7 +1,7 @@ # Maintainer: lmartinez-mirror pkgname=hilbish-git _pkgname=${pkgname%-git} -pkgver=0.1.2.r0.gdeb1bc8 +pkgver=0.1.2.r3.g795a7d7 pkgrel=2 pkgdesc="A shell written in Go and extended with Lua" arch=('x86_64' 'aarch64') @@ -12,6 +12,7 @@ makedepends=('git' 'go>=1.16') optdepends=('lua') provides=("$_pkgname") conflicts=("$_pkgname") +install="$pkgname.install" source=("$pkgname::git+$url") sha256sums=('SKIP') @@ -22,7 +23,7 @@ pkgver() { prepare() { cd "$pkgname" - sed -i "s|/usr|$pkgdir/usr|" Makefile + sed -i '\|/etc/shells|d' Makefile } build() { @@ -38,7 +39,7 @@ build() { package() { cd "$pkgname" - make install + DESTDIR="$pkgdir/" make install install -Dm 444 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" install -Dm 444 README.md -t "$pkgdir/usr/share/doc/$pkgname/" } diff --git a/hilbish-git.install b/hilbish-git.install new file mode 100644 index 000000000000..cbb25de224ba --- /dev/null +++ b/hilbish-git.install @@ -0,0 +1,11 @@ +post_install() { + grep -qe '^/usr/bin/hilbish$' /etc/shells || echo '/usr/bin/hilbish' >> /etc/shells +} + +post_upgrade() { + post_install +} + +pre_remove() { + sed -ri -e '\|^/usr/bin/hilbish$|d' /etc/shells +}
\ No newline at end of file |