# Maintainer: André Klitzing # Contributor: André Klitzing pkgname=toybox pkgver=0.7.4 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 make } check() { cd "$builddir" make test } package() { cd "$builddir" #chmod 755 toybox #make PREFIX="$pkgdir" install install -Dm755 toybox "$pkgdir"/bin/toybox install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/COPYING } sha512sums="380e8c22f1bcea34ee345b9bcfd9459c7bcde8518d0f5c74227ced2e59b063f619e1b6314c1af4e0371d7300fe916d55510272469a061c4232005b7533b09022 toybox-0.7.4.tar.gz"