aboutsummaryrefslogtreecommitdiffstats
path: root/core/busybox/APKBUILD
blob: 0912329a2b2e06eb58802bb683d23bde60e5b6bc (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
pkgname=busybox
pkgver=1.13.2
pkgrel=1
pkgdesc="Size optimized toolbox of many common UNIX utilities"
url=http://busybox.net
license=GPL-2
depends=uclibc

source="http://busybox.net/downloads/$pkgname-$pkgver.tar.bz2
	$pkgname-1.12.1-vi-path.patch
	$pkgname-1.11.1-bb.patch
	$pkgname-1.13-depmod.patch
	busyboxconfig"

build() {
	cd $srcdir/$pkgname-$pkgver

	#patches
	for i in ../*.patch; do
		msg "Applying $i"
		if ! patch -p1 -i $i; then
			error "$i failed"
			return 1
		fi
	done

	cp ../busyboxconfig .config
	make silentoldconfig || return 1
	make || return 1
	make install DESTDIR=$pkgdir
}

md5sums="9e2a604d18bef219a5a6bf3acf78b9e1  busybox-1.13.2.tar.bz2
f5a8ae3145aa249868c1a1abc319c228  busybox-1.12.1-vi-path.patch
4c0f3b486eaa0674961b7ddcd0c60a9b  busybox-1.11.1-bb.patch
1ff318833f8a1c1741635184cfb461ab  busybox-1.13-depmod.patch
0a32b03209b82e37e085f0bd06985518  busyboxconfig"