# Maintainer: Laurent Bercot <ska-devel@skarnet.org>
pkgname=s6-overlay-helpers
pkgver=0.1.0.2
pkgrel=0
pkgdesc="Binary helpers for s6-overlay"
url=https://github.com/just-containers/s6-overlay-helpers
arch="all"
license="ISC"
makedepends="skalibs-dev>=2.14 execline-dev"
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 \
		--enable-shared \
		--enable-static \
		--disable-allstatic \
		--prefix=/usr \
		--libdir=/usr/lib \
		--libexecdir="/usr/lib/$pkgname" \
		--with-dynlib=/lib
	make
}

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

sha512sums="
97abdc4ead5fa59ebb5b27c8faa28a19ff483fd7023eab22245516951f21d7498c018b72e5dadea31b3e88bf11348da20ab54f109f921d98633b5696e19a1d24  s6-overlay-helpers-0.1.0.2.tar.gz
"
