diff options
Diffstat (limited to 'community/outils/APKBUILD')
-rw-r--r-- | community/outils/APKBUILD | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/community/outils/APKBUILD b/community/outils/APKBUILD index fc9a177cd3..e62ecaa3f0 100644 --- a/community/outils/APKBUILD +++ b/community/outils/APKBUILD @@ -6,11 +6,12 @@ pkgrel=0 pkgdesc="Port of some non-standard OpenBSD tools to Linux" url="https://github.com/chneukirchen/outils" arch="all" -license="BSD ISC" +license="BSD-3-Clause ISC" depends="" depends_dev="" makedepends="libressl-dev linux-headers" install="" +options="!check" # upstream doesn't have a test suite subpackages="$pkgname-doc $pkgname-sha256:_tool $pkgname-lndir:_tool @@ -29,23 +30,23 @@ subpackages="$pkgname-doc $pkgname-jot:_tool $pkgname-cksum:_tool" source="$pkgname-$pkgver.tar.gz::https://github.com/chneukirchen/$pkgname/archive/v$pkgver.tar.gz" - builddir="$srcdir"/$pkgname-$pkgver + prepare() { find "$builddir"/src -type f -exec sed -i \{\} -e "s;u_int;uint;g" \ - -e "s;u_char;uint8_t;g" \; || return 1 + -e "s;u_char;uint8_t;g" \; sed -i "$builddir"/src/liboutils/sha1.c \ - -e "s;uint i;uint32_t i;" || return 1 + -e "s;uint i;uint32_t i;" } build() { make CC="$CC" CFLAGS="$CFLAGS" \ - -C "$builddir" || return 1 + -C "$builddir" } package() { make DESTDIR="$pkgdir" install \ - -C "$builddir" || return 1 + -C "$builddir" } _tool() { @@ -59,17 +60,15 @@ _tool() { if [ "$name" = "rdate" ]; then mkdir -p "$subpkgdir"/usr/sbin mv "$pkgdir"/usr/bin/$name \ - "$subpkgdir"/usr/sbin/$name || return 1 + "$subpkgdir"/usr/sbin/$name else mkdir -p "$subpkgdir"/usr/bin mv "$pkgdir"/usr/bin/$name \ - "$subpkgdir"/usr/bin/$name || return 1 + "$subpkgdir"/usr/bin/$name fi rmdir "$pkgdir"/usr/bin/ 2>/dev/null || true rmdir "$pkgdir"/usr/ 2>/dev/null || true } -md5sums="02ca98e4c1847e73b1881b521e12df4c outils-0.6.tar.gz" -sha256sums="544c9778ab698d5225e8cd4386bd1a7d65cbbe6826dc42c6bba6cea150ba507e outils-0.6.tar.gz" sha512sums="51b3a9e4c421a1590a3eab3feffec0066830d67b0ec31e825ae99c17148ed764022cf559f67f9ccbe58390c19fd144465ebdb41dff5e51a5988a195d3eaa365f outils-0.6.tar.gz" |