summaryrefslogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorTobias Powalowski <tpowa@archlinux.org>2006-05-03 18:27:38 +0200
committerTobias Powalowski <tpowa@archlinux.org>2006-05-03 18:27:38 +0200
commit8366d90a197780866aae68eda441f884619964bd (patch)
tree04a3de486f39296ea00f796251456fe451e5711d /PKGBUILD
parentad1050964eabbbc00547e8c6c91d8a7c3f13598f (diff)
downloadmkinitcpio-8366d90a197780866aae68eda441f884619964bd.tar.gz
mkinitcpio-8366d90a197780866aae68eda441f884619964bd.tar.xz
"added my changes"
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@49 880c04e9-e011-0410-abf7-b926e227c9cd
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD27
1 files changed, 27 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 0000000..40c5b9f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# $Id: PKGBUILD,v 1.63 2005/12/26 09:54:29 tpowa Exp $
+# Maintainer : Tobias Powalowski <tpowa@archlinux.org>, Aaron Griffin <aaron@archlinux.org>
+
+pkgname=mkinitcpio
+pkgver=0.1
+pkgrel=1
+pkgdesc="Program to create initramfs images for archlinux"
+url="http://www.archlinux.org/"
+depends=('klibc' 'klibc-extras' 'klibc-udev' 'gen-init-cpio')
+source=(mkinitcpio.tar.bz2)
+
+build()
+{
+ cd $startdir/src/
+ # fixing paths in mkinitcpio
+ sed -i -e 's|FILELIST=".tmpfilelist"|FILELIST="/tmp/.tmpfilelist"|g' mkinitcpio
+ sed -i -e 's|CONFIG="mkinitcpio.conf"|CONFIG="/etc/mkinitcpio.conf"|g' mkinitcpio
+ sed -i -e 's|FUNCTIONS="functions"|FUNCTIONS="/lib/initcpio/functions"|g' mkinitcpio
+ sed -i -e 's|HOOKDIR="hooks"|HOOKDIR="/lib/initcpio/hooks"|g' mkinitcpio
+ sed -i -e 's|INSTDIR="install"|INSTDIR="/lib/initcpio/install"|g' mkinitcpio
+ install -D -m644 mkinitcpio.conf $startdir/pkg/etc/mkinitcpio.conf
+ install -D -m755 mkinitcpio $startdir/pkg/sbin/mkinitcpio
+ install -D -m755 init $startdir/pkg/lib/initcpio/init
+ install -D -m644 functions $startdir/pkg/lib/initcpio/functions
+ cp -r hooks/ $startdir/pkg/lib/initcpio/
+ cp -r install/ $startdir/pkg/lib/initcpio/
+}