2015-06-08 09:31:02 +00:00
|
|
|
# Maintainer: Jack L. Frost <fbt@fleshless.org>
|
|
|
|
|
|
|
|
pkgname='loksh'
|
2017-12-05 22:33:09 +00:00
|
|
|
pkgver='6.2'
|
2017-12-06 23:15:18 +00:00
|
|
|
pkgrel=2
|
2015-06-08 09:31:02 +00:00
|
|
|
pkgdesc="A Linux port of OpenBSD's ksh targeting musl"
|
|
|
|
arch=( 'i686' 'x86_64' )
|
|
|
|
url='https://github.com/dimkr/loksh'
|
|
|
|
license=( 'custom' )
|
|
|
|
source=( "https://github.com/dimkr/loksh/archive/${pkgver}.tar.gz" )
|
|
|
|
|
|
|
|
#_flag_static=1
|
|
|
|
if (( _flag_static )); then
|
|
|
|
makedepends+=( 'musl' )
|
|
|
|
_makeopts=( 'CC=musl-gcc' 'LDFLAGS=-static' )
|
|
|
|
else
|
|
|
|
depends=( 'libbsd' )
|
|
|
|
_makeopts=( 'LDFLAGS=-lbsd' )
|
|
|
|
fi
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
make ${_makeopts[*]}
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
make DESTDIR="$pkgdir/" BIN_NAME='loksh' install
|
|
|
|
}
|
|
|
|
|
2017-12-06 23:15:18 +00:00
|
|
|
sha1sums=('a318075723c679b0b084f510338be402bd0e9d0d')
|