From 17c2099ca99b2bfbbd15b7ff6489b15ccc5709c1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Fri, 21 Nov 2008 11:38:06 +0100 Subject: [PATCH] Added mkinitcpio template from Arch linux. --HG-- extra : convert_revision : 74556fa4099e68b7fe00a8b72034312689126431 --- templates/mkinitcpio.tmpl | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 templates/mkinitcpio.tmpl diff --git a/templates/mkinitcpio.tmpl b/templates/mkinitcpio.tmpl new file mode 100644 index 00000000000..30dbf38d32b --- /dev/null +++ b/templates/mkinitcpio.tmpl @@ -0,0 +1,25 @@ +# Template file for 'mkinitcpio' +pkgname=mkinitcpio +version=0.5.9 +wrksrc=$pkgname +distfiles="ftp://ftp.archlinux.org/other/$pkgname/$pkgname-$version.tar.gz" +build_style=custom-install +short_desc="Advanced, modular initramfs image creation utility" +maintainer="Juan RP " +checksum=772e3d92bfa1754b74a95c76a4f66bb6f94915212da2e7e7878764676ef8467c +long_desc=" + mkinitcpio is an advanced, modular initramfs image creation utility. + mkinitcpio was created for Archlinux." + +# Other deps are resolved by xbps-base-chroot. +build_depends="klibc-1.5.14" + +do_install() +{ + # mkinitcpio doesn't work with dash, uses bash specific stuff + # even if the file mentions justs the contrary... + . $XBPS_TMPLHELPDIR/replace-interpreter.sh + replace_interpreter bash mkinitcpio + + cd $wrksrc && ./install.sh $XBPS_DESTDIR/$pkgname-$version +}