void-packages/srcpkgs/s6/template
2019-09-23 14:23:12 +02:00

43 lines
1.2 KiB
Bash

# Template file for 's6'
pkgname=s6
version=2.9.0.0
revision=1
build_style=configure
makedepends="execline-devel skalibs-devel"
configure_args="--libdir=/usr/lib --bindir=/usr/bin
--with-sysdeps=${XBPS_CROSS_BASE}/usr/lib/skalibs/sysdeps
--with-lib=${XBPS_CROSS_BASE}/usr/lib
--exec-prefix=/usr"
short_desc="Small suite of programs for UNIX, designed to allow process supervision"
maintainer="Duncaen <duncaen@voidlinux.org>"
license="ISC"
homepage="http://skarnet.org/software/s6/"
changelog="https://skarnet.org/software/s6/upgrade.html"
distfiles="http://skarnet.org/software/s6/s6-${version}.tar.gz"
checksum=1cac59bf9ff7c011b189ae2def3c76b147c2c431b0a901029fcaf957a6d9a343
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" nsss-devel" configure_args+=" --enable-nsss" ;;
esac
post_install() {
vlicense COPYING
vdoc README
vcopy "doc/*" usr/share/doc/${pkgname}
}
s6-doc_package() {
archs=noarch
short_desc="s6 supervision documentation"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmove usr/share/doc
}
}
s6-devel_package() {
short_desc="s6 supervision library and headers"
pkg_install() {
vmove usr/include
vmove usr/lib/*.a
}
}