summaryrefslogblamecommitdiff
path: root/user/dracut/APKBUILD
blob: c423d4cbe341d7e4cb498988460795d1248db040 (plain) (tree)
1
2
3
4
5
6
7
8
9



                                                  
        



                                                  
                          



                                                                                  


                                                                                    



































                                                                       

                                                                                                                                                               
# Contributor: A. Wilcox <awilfox@adelielinux.org>
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=dracut
pkgver=046
pkgrel=1
pkgdesc="An event-driven initramfs infrastructure"
url="https://dracut.wiki.kernel.org/"
arch="all"
license="GPL-2.0+"
depends="libarchive-tools"
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
	header-fix.patch
	"

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
988f03a3fd2e7ee62409d3c57e8029403513dcec5efb37e64633d989728e4c7b619ce5b8775a04c5a0b654f7f093777d94fe6e4098a99a690c353a94f537e24c  header-fix.patch"