# Contributor: Sören Tempel # Maintainer: Sören Tempel pkgname=outils pkgver=0.12 pkgrel=0 pkgdesc="Port of some non-standard OpenBSD tools to Linux" url="https://github.com/leahneukirchen/outils" arch="all" license="BSD-3-Clause ISC" makedepends="openssl-dev>3 linux-headers" options="!check" # upstream doesn't have a test suite subpackages="$pkgname-doc $pkgname-sha256:_tool $pkgname-lndir:_tool $pkgname-rdate:_tool $pkgname-calendar:_tool $pkgname-lam:_tool $pkgname-what:_tool $pkgname-rs:_tool $pkgname-unvis:_tool $pkgname-md5:_tool $pkgname-sha1:_tool $pkgname-apply:_tool $pkgname-sha512:_tool $pkgname-vis:_tool $pkgname-signify:_tool $pkgname-jot:_tool $pkgname-cksum:_tool $pkgname-ts:_tool" source="$pkgname-$pkgver.tar.gz::https://github.com/leahneukirchen/outils/archive/v$pkgver.tar.gz implicit-int.patch " build() { make CC="$CC" CFLAGS="$CFLAGS" \ -C "$builddir" } package() { make DESTDIR="$pkgdir" install \ -C "$builddir" } _tool() { local name=$(echo $subpkgname | cut -d '-' -f2) pkgdesc="$name tool from $pkgname" if [ "$name" = "cksum" ]; then depends="!coreutils $depends" fi if [ "$name" = "rdate" ]; then mkdir -p "$subpkgdir"/usr/sbin mv "$pkgdir"/usr/bin/$name \ "$subpkgdir"/usr/sbin/$name else mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/$name \ "$subpkgdir"/usr/bin/$name fi rmdir "$pkgdir"/usr/bin/ 2>/dev/null || true rmdir "$pkgdir"/usr/ 2>/dev/null || true } sha512sums=" 2888bffcf53b31eea0f8091690fd2a46af49b961fe4fd5c5f83e4cb9c95884737bb9f22cc13de07a9991bd5ab991a7bdb52cda47a913c475e94ae4ec15b223f2 outils-0.12.tar.gz aeb3c7be722a2a2d04596dcfb15a2e10d529ea0d0133c0c8bb484f1145069645fe4cbdeb43fc55610f07ad50a33309596734d3c5b13ce3da44d777db30f28b1e implicit-int.patch "