aboutsummaryrefslogtreecommitdiffstats
path: root/testing/toybox/APKBUILD
blob: a8fd3fc40b40b4e2213db9d83aafb68d4e582e6b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Maintainer: André Klitzing <aklitzing@gmail.com>
# Contributor: André Klitzing <aklitzing@gmail.com>
pkgname=toybox
pkgver=0.7.5
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="f0cc54da2394ed14b41dbc80bf674f86989f0312b645b9e1e5403fb0a3282cafce9608b2d738ab2dbb6fe3779eed70d51133a867c6ea76683dd7e6de245df127  toybox-0.7.5.tar.gz"