# Maintainer: André Klitzing # Contributor: André Klitzing pkgname=toybox pkgver=0.7.3 pkgrel=0 pkgdesc="A BSD-licensed alternative to busybox" arch="all" license="BSD" url="https://landley.net/toybox/" depends="attr" makedepends="bash linux-headers" subpackages="$pkgname-doc" source="${pkgname}-${pkgver}.tar.gz::https://landley.net/${pkgname}/downloads/${pkgname}-${pkgver}.tar.gz" builddir="$srcdir"/$pkgname-$pkgver build() { cd "${builddir}" make defconfig || return 1 make || return 1 } check() { cd "${builddir}" make test || return 1 } package() { cd "${builddir}" #chmod 755 toybox #make PREFIX="$pkgdir" install || return 1 install -Dm755 toybox "$pkgdir"/bin/toybox || return 1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING || return 1 } sha512sums="8f6fcf156fbfedb706f3048b535369e235c47a40087405e54f0b0de877691c41b700b2ddd8c0d5abd6e09367f313c2eef1bc659331b2391738f6f0eefc9115fd toybox-0.7.3.tar.gz"