diff options
author | root <root@rshg047.dnsready.net> | 2011-06-24 23:06:35 +0000 |
---|---|---|
committer | root <root@rshg047.dnsready.net> | 2011-06-24 23:06:35 +0000 |
commit | 71f58605e914de11f3a9b7cc2f27b0c52fb8d4ba (patch) | |
tree | 948002f901215fa91b99058ec3bfc4a51475018d /extra/pdksh | |
parent | 7347bb994a41d021c83e97b503f577f2399302e7 (diff) |
Fri Jun 24 23:06:35 UTC 2011
Diffstat (limited to 'extra/pdksh')
-rw-r--r-- | extra/pdksh/PKGBUILD | 28 | ||||
-rw-r--r-- | extra/pdksh/pdksh.install | 2 |
2 files changed, 17 insertions, 13 deletions
diff --git a/extra/pdksh/PKGBUILD b/extra/pdksh/PKGBUILD index 6f592e39c..388952747 100644 --- a/extra/pdksh/PKGBUILD +++ b/extra/pdksh/PKGBUILD @@ -1,27 +1,31 @@ -# $Id: PKGBUILD 30639 2009-03-21 04:22:46Z eric $ +# $Id: PKGBUILD 128476 2011-06-24 03:30:58Z eric $ # Maintainer: Aaron Griffin <aaron@archlinux.org> # Contributor: Tom Newsom <Jeepster@gmx.co.uk> pkgname=pdksh pkgver=5.2.14 -pkgrel=5 +pkgrel=6 pkgdesc="A public domain clone of the AT&T Korn shell" arch=('i686' 'x86_64') url="http://www.cs.mun.ca/~michael/pdksh/" license=('custom') depends=('glibc') -install=$pkgname.install -source=(ftp://ftp.cs.mun.ca/pub/$pkgname/$pkgname-$pkgver.tar.gz $pkgname-$pkgver.patch usr_ksh.sh) +install=pdksh.install +#ftp://ftp.cs.mun.ca/pub/$pkgname/$pkgname-$pkgver.tar.gz +source=(http://www.cs.mun.ca/~michael/pdksh/files/$pkgname-$pkgver.tar.gz pdksh-5.2.14.patch usr_ksh.sh) md5sums=('871106b3bd937e1afba9f2ef7c43aef3' 'f11d1e711627d21a547c09e344e30dd3'\ '56084a657ecafd5dd0813a6056036712') build() { - cd $srcdir/$pkgname-$pkgver - patch -Np1 -i ../$pkgname-$pkgver.patch || return 1 - ./configure --prefix=/ --mandir=/usr/share/man || return 1 - make || return 1 - make prefix=$pkgdir mandir=$pkgdir/usr/share/man/man1 install || return 1 - install -D -m 755 ${srcdir}/usr_ksh.sh ${pkgdir}/usr/bin/ksh || return 1 - install -D -m644 LEGAL $pkgdir/usr/share/licenses/$pkgname/LICENSE || return 1 + cd "$srcdir/$pkgname-$pkgver" + patch -Np1 -i ../$pkgname-$pkgver.patch + ./configure --prefix=/ --mandir=/usr/share/man + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make prefix="$pkgdir" mandir="$pkgdir/usr/share/man/man1" install + install -D -m 755 "${srcdir}/usr_ksh.sh" "${pkgdir}/usr/bin/ksh" + install -D -m644 LEGAL "$pkgdir/usr/share/licenses/$pkgname/LICENSE" } -# vim: ts=2 sw=2 et ft=sh diff --git a/extra/pdksh/pdksh.install b/extra/pdksh/pdksh.install index 844a4e731..17463a17e 100644 --- a/extra/pdksh/pdksh.install +++ b/extra/pdksh/pdksh.install @@ -1,5 +1,5 @@ post_install() { - if [ ! "`grep /bin/ksh etc/shells`" ]; then + if [ ! "$(grep /bin/ksh etc/shells)" ]; then echo "updating /etc/shells... done." sed -i "s|/bin/bash|/bin/bash\n/bin/ksh|" etc/shells else |