APKBUILD 1.46 KB
Newer Older
Natanael Copa's avatar
Natanael Copa committed
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 38
pkgname=busybox
pkgver=1.12.1
pkgrel=1
pkgdesc="Size optimized toolbox of many common UNIX utilities"
url=http://busybox.net
license=GPL-2
arch=i486
makedepends="binutils gcc linux-headers make patch uclibc-dev"

source="http://busybox.net/downloads/busybox-1.12.1.tar.bz2
	http://busybox.net/downloads/fixes-1.12.1/busybox-1.12.1-grep.patch
	bb-modprobe-v9.diff
	$pkgname-1.12.1-vi.patch
	$pkgname-1.11.1-bb.patch
	$pkgname-1.12.0-mdev-exec.patch
	$pkgname-1.12.1-iproute-metric.patch
	busyboxconfig"

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

	#patches
	patch -p1 -i ../$pkgname-1.12.1-vi.patch 		|| return 1
	patch -p1 -i ../$pkgname-1.11.1-bb.patch 		|| return 1
	patch -p0 -i ../$pkgname-1.12.0-mdev-exec.patch 	|| return 1
	patch -p1 -i ../$pkgname-1.12.1-grep.patch 		|| return 1
	patch -p0 -i ../$pkgname-1.12.1-iproute-metric.patch 	|| return 1
	patch -p0 -i ../bb-modprobe-v9.diff			|| return 1

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

md5sums="dc2e5e00d6fee8229ae92884c68733a7  busybox-1.12.1.tar.bz2
76273f1580295a12270dcca0cdeb9a27  busybox-1.12.1-grep.patch
a8aff3962d4481e8b402e739703fbe38  bb-modprobe-v9.diff
39
f5a8ae3145aa249868c1a1abc319c228  busybox-1.12.1-vi.patch
Natanael Copa's avatar
Natanael Copa committed
40 41 42 43
4c0f3b486eaa0674961b7ddcd0c60a9b  busybox-1.11.1-bb.patch
b4ce6235028c2c20fa367375534c3a18  busybox-1.12.0-mdev-exec.patch
54de0abe27e0ad362973be7fa81c487e  busybox-1.12.1-iproute-metric.patch
997d1759dec4cbbf90594824a2ac34b5  busyboxconfig"