# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Sören Tempel <soeren+alpine@soeren-tempel.net>
setvar pkgname = 'loksh'
setvar pkgver = '6.1'
setvar pkgrel = '0'
setvar pkgdesc = ""A Linux port of OpenBSD's ksh""
setvar url = ""https://github.com/dimkr/$pkgname""
setvar arch = ""all""
setvar license = ""ISC""
setvar replaces = ""oksh""
setvar depends = """"
setvar depends_dev = """"
setvar makedepends = """"
setvar install = ""$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall""
setvar options = ""!check""
setvar subpackages = ""$pkgname-doc""
setvar source = ""$pkgname-$pkgver.tar.gz::https://github.com/dimkr/$pkgname/archive/$pkgver.tar.gz""
setvar builddir = ""$srcdir"/$pkgname-$pkgver"

proc build {
	make -C $builddir
}

proc package {
	make DESTDIR="$pkgdir" \
		PREFIX="/usr" \
		BIN_DIR="/bin" \
		-C $builddir install
}

setvar sha512sums = ""5892e02b7f50727a22902372607e880123bb820fd2aac307f721a3fca0dc112281de8a527f8be3ae0f8c4f21cd92de83f4adba1425085f6344ed47d75a585c1b  loksh-6.1.tar.gz""