]> git.ipfire.org Git - thirdparty/dracut.git/blob - PKGBUILD
iscsi: always popd, even if there is no iscsi device
[thirdparty/dracut.git] / PKGBUILD
1 pkgname=dracut-git
2 pkgver=1
3 pkgrel=1
4 pkgdesc="Initramfs generation utility"
5 arch=('i686' 'x86_64')
6 url="https://dracut.wiki.kernel.org/"
7 license=('GPL')
8 conflicts=('dracut' 'mkinitcpio')
9 provides=('dracut=9999' 'mkinitcpio=9999')
10 depends=('bash')
11 optdepends=('cryptsetup' 'lvm2')
12 makedepends=('libxslt')
13 backup=(etc/dracut.conf)
14 source=()
15 md5sums=()
16
17 # out of tree builds disallowed for this PKGFILE
18 BUILDDIR="${PWD}"
19 PKGDEST="${PWD}"
20 SRCDEST=""
21 SRCPKGDEST=""
22 LOGDEST=""
23
24 pkgver() {
25 cd ..
26 desc="$(git describe)"
27 printf "%s.%s.%s" ${desc//-/ }
28 }
29
30 build() {
31 cd ..
32 make sysconfdir=/etc || return 1
33 }
34
35 package() {
36 cd ..
37 make DESTDIR="${pkgdir}" sysconfdir=/etc install || return 1
38 }