2015-06-08 09:31:02 +00:00
|
|
|
# Maintainer: Jack L. Frost <fbt@fleshless.org>
|
|
|
|
|
|
|
|
pkgname='loksh'
|
2020-05-23 10:25:15 +00:00
|
|
|
pkgver='6.7.1'
|
2018-04-20 01:20:49 +00:00
|
|
|
pkgrel=1
|
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' )
|
2020-05-23 11:43:20 +00:00
|
|
|
source=( "https://github.com/dimkr/loksh/releases/download/$pkgver/src.tar.xz" )
|
2015-06-08 09:31:02 +00:00
|
|
|
|
|
|
|
#_flag_static=1
|
|
|
|
if (( _flag_static )); then
|
|
|
|
makedepends+=( 'musl' )
|
|
|
|
_makeopts=( 'CC=musl-gcc' 'LDFLAGS=-static' )
|
|
|
|
else
|
|
|
|
depends=( 'libbsd' )
|
|
|
|
_makeopts=( 'LDFLAGS=-lbsd' )
|
|
|
|
fi
|
|
|
|
|
|
|
|
build() {
|
2020-05-23 11:43:20 +00:00
|
|
|
cd "$pkgname"
|
|
|
|
meson --prefix=/ \
|
|
|
|
--sysconfdir=/etc \
|
|
|
|
--mandir=/usr/share/man \
|
|
|
|
--datadir=/usr/share \
|
|
|
|
--localstatedir=/var \
|
|
|
|
--buildtype=plain \
|
|
|
|
--bindir=/bin \
|
|
|
|
. output
|
|
|
|
|
|
|
|
ninja -C output
|
2015-06-08 09:31:02 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2020-05-23 11:43:20 +00:00
|
|
|
cd "$pkgname"
|
|
|
|
DESTDIR="$pkgdir" ninja -C output install
|
2015-06-08 09:31:02 +00:00
|
|
|
}
|
|
|
|
|
2020-05-23 11:43:20 +00:00
|
|
|
sha1sums=('fc5f081423fcb922d02e97b733e4b45c8a359eb2')
|