diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-08-18 05:44:20 +0000 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2017-08-18 05:44:20 +0000 |
commit | b4ac56d7a3252691242f8b39eaf145ae711111b9 (patch) | |
tree | 2207318dba9d089bc7505f843d8ca8c6e676c94e /user/dracut/APKBUILD | |
parent | dc87e13e485e5422c1a15060ffe73bf33ed468df (diff) | |
download | packages-b4ac56d7a3252691242f8b39eaf145ae711111b9.tar.gz packages-b4ac56d7a3252691242f8b39eaf145ae711111b9.tar.bz2 packages-b4ac56d7a3252691242f8b39eaf145ae711111b9.tar.xz packages-b4ac56d7a3252691242f8b39eaf145ae711111b9.zip |
user/dracut: new package
Diffstat (limited to 'user/dracut/APKBUILD')
-rw-r--r-- | user/dracut/APKBUILD | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/user/dracut/APKBUILD b/user/dracut/APKBUILD new file mode 100644 index 000000000..d8a43a248 --- /dev/null +++ b/user/dracut/APKBUILD @@ -0,0 +1,52 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=dracut +pkgver=046 +pkgrel=0 +pkgdesc="An event-driven initramfs infrastructure" +url="https://dracut.wiki.kernel.org/" +arch="all" +license="GPL-2.0+" +depends="cpio" +makedepends="fts-dev kmod-dev" +install="" +options="!check" # Test suite is for kernel developers only, requires ext3 rootfs +subpackages="$pkgname-doc $pkgname-bash-completion:bashcomp:noarch" +source="https://www.kernel.org/pub/linux/utils/boot/$pkgname/$pkgname-$pkgver.tar.xz" + +build() { + cd "$builddir" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --localstatedir=/var + LDLIBS="-lfts" make + make doc +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make DESTDIR="$pkgdir" install + for sysdmod in 00systemd 98dracut-systemd 00systemd-bootchart \ + 01systemd-initrd 02systemd-networkd; do + rm -r "$pkgdir"/usr/lib/dracut/modules.d/$sysdmod + done +} + +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash-completion" + + mkdir -p "$subpkgdir"/usr/share/ + mv "$pkgdir"/usr/share/bash-completion \ + "$subpkgdir"/usr/share +} + +sha512sums="75cefc184960024ef32f7bb5a0fe060e9c7d82dbfd0fe247d54b585e2ebbf0f8af5d5dc1be7e5e8cf2c3bc27b3293842c6361ae62d047289d0c59d7d40b09122 dracut-046.tar.xz" |