Skip to content

Commit

Permalink
Add .spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
pvalena committed Nov 15, 2023
1 parent 219c145 commit b115b8d
Show file tree
Hide file tree
Showing 2 changed files with 2,021 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgbuild/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
pkgname=dracut-git
pkgver=1
pkgrel=1
pkgdesc="Initramfs generation utility"
arch=('i686' 'x86_64')
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
}
Loading

0 comments on commit b115b8d

Please sign in to comment.