aports/testing/toybox/APKBUILD
2018-06-24 09:10:44 +00:00

38 lines
891 B
Plaintext

# Maintainer: André Klitzing <aklitzing@gmail.com>
# Contributor: André Klitzing <aklitzing@gmail.com>
pkgname=toybox
pkgver=0.7.7
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="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="89369662eaf48bb52909f49932b98395eed6e672f6a37387819a02ba9c33f6b737686782ca3bf0ed0f9b60e1e2fff88ad1ebb678999582986acfec371d100827 toybox-0.7.7.tar.gz"