aboutsummaryrefslogtreecommitdiffstats
path: root/testing/toybox
diff options
context:
space:
mode:
authorAndré Klitzing <aklitzing@gmail.com>2017-03-09 20:18:48 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2017-03-16 15:15:57 +0000
commita8afb9e7017e65c023966c6888b253b4b238f3b5 (patch)
tree9ae8b22b6917542b04e677a1b562bc6eb540ae14 /testing/toybox
parent71fa19636b2150b1aed9ceb8708f2035ccb9f101 (diff)
downloadaports-a8afb9e7017e65c023966c6888b253b4b238f3b5.tar.bz2
aports-a8afb9e7017e65c023966c6888b253b4b238f3b5.tar.xz
testing/toybox: new aport
Diffstat (limited to 'testing/toybox')
-rw-r--r--testing/toybox/APKBUILD39
1 files changed, 39 insertions, 0 deletions
diff --git a/testing/toybox/APKBUILD b/testing/toybox/APKBUILD
new file mode 100644
index 0000000000..f606b0f9bb
--- /dev/null
+++ b/testing/toybox/APKBUILD
@@ -0,0 +1,39 @@
+# Maintainer: André Klitzing <aklitzing@gmail.com>
+# Contributor: André Klitzing <aklitzing@gmail.com>
+
+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"