summaryrefslogtreecommitdiff
path: root/community/busybox/PKGBUILD
blob: 664e1682f578d9dc8121bd7e379907c42511afeb (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
# $Id: PKGBUILD 55611 2011-09-15 22:10:36Z ebelanger $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Jens Pranaitis <jens@jenux.homelinux.org>

pkgname=busybox
pkgver=1.19.2
pkgrel=2
pkgdesc="Utilities for rescue and embedded systems"
arch=("i686" "x86_64")
url="http://www.busybox.net"
license=('GPL')
makedepends=("make" "gcc" "sed" "ncurses")
source=($url/downloads/$pkgname-$pkgver.tar.bz2
	config)
md5sums=('50267054345f1a0b77fe65f6e0e5ba29'
         'edd5c66c974ccc1b0030fd00beaa1b02')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  cp $srcdir/config .config
  # if you want to run menuconfig uncomment the following line:
  # make menuconfig ; return 1
  sed -i '1,2i#define __packed __attribute__((packed))' miscutils/ubi_tools.c
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -Dm4755 busybox $pkgdir/bin/busybox
}