1 # Maintainer: Andrew Antle <andrew dot antle at gmail dot com>
3 pkgname=openbsd-pdksh-git
6 pkgdesc="Portable version of OpenBSD's ksh, git version"
8 url="http://github.com/dryfish/openbsd-pdksh"
11 provides=('pdksh' 'ksh')
12 conflicts=('pdksh' 'ksh')
13 install=$pkgname.install
15 _gitroot="http://github.com/dryfish/openbsd-pdksh.git"
16 _gitname="openbsd-pdksh"
19 msg "Connecting to GIT server...."
21 if [[ -d $_gitname ]] ; then
22 cd "$_gitname" && git pull origin
23 msg "The local files are updated."
25 git clone "$_gitroot" "$_gitname"
28 msg "GIT checkout done or server timeout"
29 msg "Starting make..."
31 rm -rf "$srcdir/$_gitname-build"
32 git clone "$srcdir/$_gitname"{,-build}
33 cd "$srcdir/$_gitname-build"
36 ./configure --prefix=/ --mandir=/usr/share/man
43 make prefix="$pkgdir" mandir="$pkgdir/usr/share/man/man1" install
45 install -D -m644 src/bin/ksh/ksh.1 "$pkgdir/usr/share/man/man1/ksh.1"
46 install -D -m644 src/bin/ksh/LEGAL "$pkgdir/usr/share/licenses/$pkgname/LICENSE"