54 lines
1.5 KiB
Bash
54 lines
1.5 KiB
Bash
# Template file for 'execline'
|
|
pkgname=execline
|
|
version=2.9.2.0
|
|
revision=1
|
|
build_style=configure
|
|
configure_args="--libdir=/usr/lib --bindir=/usr/bin
|
|
--with-sysdeps=${XBPS_CROSS_BASE}/usr/lib/skalibs/sysdeps
|
|
--with-lib=${XBPS_CROSS_BASE}/usr/lib
|
|
$(vopt_if static --enable-static-libc)
|
|
$(vopt_if multicall --enable-multicall)"
|
|
makedepends="skalibs-devel"
|
|
short_desc="Non-interactive scripting language"
|
|
maintainer="mobinmob <mobinmob@disroot.org>"
|
|
license="ISC"
|
|
homepage="https://skarnet.org/software/execline/"
|
|
changelog="https://skarnet.org/software/execline/upgrade.html"
|
|
distfiles="https://skarnet.org/software/${pkgname}/${pkgname}-${version}.tar.gz"
|
|
checksum=9365012558a1e3c019cafc6eb574b0f5890495fb02652f20efdd782d577b1601
|
|
|
|
CFLAGS="-fPIC"
|
|
|
|
build_options="static multicall"
|
|
desc_option_static="Build static binaries"
|
|
desc_option_multicall="Build single multicall binary instead of a binary per utility"
|
|
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl)
|
|
makedepends+=" nsss-devel"
|
|
configure_args+=" --enable-nsss --with-include=${XBPS_CROSS_BASE}/usr/include/nsss"
|
|
;;
|
|
esac
|
|
|
|
post_install() {
|
|
vlicense COPYING
|
|
vdoc README
|
|
vcopy "doc/*" usr/share/doc/${pkgname}
|
|
}
|
|
|
|
execline-doc_package() {
|
|
short_desc+=" - Documentation"
|
|
depends="${sourcepkg}>=${version}_${revision} execline-man-pages"
|
|
pkg_install() {
|
|
vmove usr/share/doc
|
|
}
|
|
}
|
|
execline-devel_package() {
|
|
short_desc+=" - development files"
|
|
depends="${sourcepkg}>=${version}_${revision}"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib
|
|
}
|
|
}
|