32 lines
689 B
Bash
32 lines
689 B
Bash
# Maintainer: Jack L. Frost <fbt@fleshless.org>
|
|
|
|
pkgname='loksh'
|
|
pkgver='6.1'
|
|
pkgrel=1
|
|
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
|
|
}
|
|
|
|
sha1sums=('04b74cbfcd100070d84e94f2704ce73ec260825b')
|