# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
pkgname=s6-overlay-helpers
pkgver=0.1.2.0
pkgrel=0
pkgdesc="Binary helpers for s6-overlay"
url=https://github.com/just-containers/s6-overlay-helpers
arch="all"
license="ISC"
_skalibs_version=2.14.4
_execline_version=2.9.7
makedepends="skalibs-dev>=$_skalibs_version execline-dev>=$_execline_version"
source="$pkgname-$pkgver.tar.gz::https://github.com/just-containers/s6-overlay-helpers/archive/refs/tags/v$pkgver.tar.gz"

# s6-overlay-suexec is suid root.
# That's okay: it's only runnable as pid 1. (For use in USER containers.)
options="!check suid"

build() {
	./configure \
		--prefix=/usr \
		--enable-shared \
		--disable-allstatic \
		--libexecdir="/usr/lib/$pkgname" \
		--with-pkgconfig
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="
f7ad04db30843b7c3f22f95e3a5629363852857487acecb4d63a537030823da1cf2faf08d029907302e66d024dbef6cd460c573809bc37751a6d20fbf4a56d3f  s6-overlay-helpers-0.1.2.0.tar.gz
"
