aboutsummaryrefslogtreecommitdiffstats
path: root/unmaintained/oksh/APKBUILD
blob: d2b214c623afff209db6dc2728ff1caca675dde9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Contributor: Orion <systmkor@gmail.com
# Maintainer: Orion <systmkor@gmail.com
# Reference
#   https://aur.archlinux.org/packages/oksh/
pkgname=oksh
pkgver=0.5.0
pkgrel=0
pkgdesc="Korn Shell ported version of ksh from OpenBSD"
url="http://www.connochaetos.org/oksh"
arch="all"
license="GPL3"
depends=""
depends_dev=""
makedepends="$depends_dev bsd-compat-headers"
install=""
subpackages="$pkgname-doc"
source="http://www.connochaetos.org/$pkgname/${pkgname}-${pkgver}.tar.gz"

_builddir="$srcdir/$pkgname-$pkgver"
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man/man1/ \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		|| return 1
	make || return 1
}

package() {
	cd "$_builddir"
	make DESTDIR="$pkgdir" prefix=${pkgdir} mandir=$pkgdir/usr/share/man/man1/ install || return 1
}

doc() {
    # Man pages
    mkdir -p "$subpkgdir"/usr/share/man || return 1
    mv "$pkgdir"/usr/share/man/man* "$subpkgdir"/usr/share/man/man1/ || return 1
}

md5sums="e8118f06ac41ff7ce416706ffc649192  oksh-0.5.0.tar.gz"
sha256sums="63c7570afdcd124244584ace0e8ed0c5f3dd57f0f5cba0d7746ee3aeb194686e  oksh-0.5.0.tar.gz"
sha512sums="c93dad98444cbdffe40b2448ae39d38f347fb93a8008e5ee411cbfdf7defde2e454f17655b6c709e1536261ad01ef5cd81845c4569bffeae3405654963fa9088  oksh-0.5.0.tar.gz"