Add a PKGBUILD file to make building on Arch Linux from a git checkout easy.

This might come in handy for anyone else trying out dracut on Arch.
master
Victor Lowther 2010-08-14 14:23:26 -05:00 committed by Harald Hoyer
parent 85ab21a6e0
commit 5fce1ef0c9
1 changed files with 20 additions and 0 deletions

20
PKGBUILD Normal file
View File

@ -0,0 +1,20 @@
pkgname=dracut-git
pkgver=$(date +%s)
pkgrel=$(git log --pretty=format:%h |head -n 1)
pkgdesc="Initramfs generation utility"
arch=('i686' 'x86_64')
url="http://sourceforge.net/apps/trac/dracut/"
license=('GPL')
conflicts=('dracut' 'mkinitcpio')
provides=('dracut=9999' 'mkinitcpio=9999')
depends=('bash')
optdepends=('cryptsetup' 'lvm2')
makedepends=('libxslt')
source=()
md5sums=()

build() {
cd ..
make sysconfdir=/etc || return 1
make DESTDIR="${pkgdir}" sysconfdir=/etc install || return 1
}