diff options
author | Torge Matthies | 2019-02-04 08:40:21 +0100 |
---|---|---|
committer | Torge Matthies | 2019-02-04 08:40:21 +0100 |
commit | 1923b4babb69648aeb2376c84c593c249c01762a (patch) | |
tree | c9f7a8d527bd0e5ef1e9f0d758c00891e8fd832d | |
download | aur-1923b4babb69648aeb2376c84c593c249c01762a.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 15 | ||||
-rw-r--r-- | PKGBUILD | 32 | ||||
-rw-r--r-- | posh.install | 13 |
3 files changed, 60 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..3071cf291f7e --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = posh + pkgdesc = A stripped-down version of pdksh that aims for compliance with Debian's policy, and few extra features. + pkgver = 0.13.2 + pkgrel = 1 + url = https://salsa.debian.org/clint/posh + install = posh.install + arch = i686 + arch = x86_64 + license = custom + depends = glibc + source = http://deb.debian.org/debian/pool/main/p/posh/posh_0.13.2.tar.xz + sha256sums = e40af79f454b5447cf49ab59fe48274856763430c4515b9bc55b9e7787fac51c + +pkgname = posh + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..9be60124df02 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Torge Matthies <openglfreak at googlemail dot com> +# Contributor: Mort Yao <soi@mort.ninja> + +pkgname=posh +pkgver=0.13.2 +pkgrel=1 +pkgdesc="A stripped-down version of pdksh that aims for compliance with Debian's policy, and few extra features." +arch=('i686' 'x86_64') +url='https://salsa.debian.org/clint/posh' +license=('custom') +depends=('glibc') +install="$pkgname".install +source=(http://deb.debian.org/debian/pool/main/p/posh/posh_"$pkgver".tar.xz) +sha256sums=('e40af79f454b5447cf49ab59fe48274856763430c4515b9bc55b9e7787fac51c') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + printf 'define(POSH_VERSION, %s)\n' "$pkgver" > acinclude.m4 + + unset CPPFLAGS + autoreconf -fi + ./configure --prefix=/usr --mandir=/usr/share/man + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make prefix="$pkgdir" bindir="$pkgdir/usr/bin" mandir="$pkgdir/usr/share/man" install + install -D -m644 COPYING "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} diff --git a/posh.install b/posh.install new file mode 100644 index 000000000000..fda9581f6c28 --- /dev/null +++ b/posh.install @@ -0,0 +1,13 @@ + +post_install() { + grep -q /bin/posh etc/shells || echo /bin/posh >> etc/shells +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + sed -i '/^\/bin\/posh/d' etc/shells +} + |