# $Id: PKGBUILD 92996 2010-10-02 19:26:38Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>

pkgname=sysvinit
pkgver=2.88
pkgrel=3
pkgdesc="Linux System V Init"
arch=('i686' 'x86_64')
url="http://savannah.nongnu.org/projects/sysvinit"
license=('GPL')
groups=('base')
depends=('shadow' 'util-linux' 'coreutils' 'glibc' 'awk')
install=sysvinit.install
source=(http://download.savannah.gnu.org/releases/sysvinit/${pkgname}-${pkgver}dsf.tar.bz2 halt-init.patch)

build() {
  cd "${srcdir}/${pkgname}-${pkgver}dsf"
  patch -p0 < ${srcdir}/halt-init.patch
  make || return 1
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}dsf"
  make ROOT="${pkgdir}" install
}
md5sums=('6eda8a97b86e0a6f59dabbf25202aa6f'
         'cd4c5767f63ca5881e3e1f1c4f10f896')