]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - PKGBUILD
network-manager: remove useless use of basename
[thirdparty/dracut.git] / PKGBUILD
index 5776c099c441f63d01cf22c029a5a82fab0be1b5..05a32b08dcd5d4b4f2950a72a901e39102e25a0e 100644 (file)
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,38 @@
 pkgname=dracut-git
-pkgver=$(date +%s)
-pkgrel=$(git log --pretty=format:%h |head -n 1)
+pkgver=1
+pkgrel=1
 pkgdesc="Initramfs generation utility"
 arch=('i686' 'x86_64')
-url="http://sourceforge.net/apps/trac/dracut/"
+url="https://dracut.wiki.kernel.org/"
 license=('GPL')
 conflicts=('dracut' 'mkinitcpio')
 provides=('dracut=9999' 'mkinitcpio=9999')
 depends=('bash')
 optdepends=('cryptsetup' 'lvm2')
 makedepends=('libxslt')
+backup=(etc/dracut.conf)
 source=()
 md5sums=()
 
+# out of tree builds disallowed for this PKGFILE
+BUILDDIR="${PWD}"
+PKGDEST="${PWD}"
+SRCDEST=""
+SRCPKGDEST=""
+LOGDEST=""
+
+pkgver() {
+  cd ..
+  desc="$(git describe)"
+  printf "%s.%s.%s" ${desc//-/ }
+}
+
 build() {
   cd ..
   make sysconfdir=/etc || return 1
+}
+
+package() {
+  cd ..
   make DESTDIR="${pkgdir}" sysconfdir=/etc install || return 1
-}
\ No newline at end of file
+}