updated on Tue Jan 10 12:02:00 UTC 2012
[aur-mirror.git] / 9mk-init-bash / PKGBUILD
blob9079b5231d08b28fbd162439e735347f1f77d269
1 # Maintainer: Jens Staal <staal1978@gmail.com>
2 pkgname=9mk-init-bash
3 pkgver=99
4 pkgrel=2
5 pkgdesc="an init system based on plan9 make - Bash init scripts"
6 arch=('i686' 'x86_64')
7 url="http://9fans.net/archive/2009/10/375"
8 license=('MIT')
9 md5sums=('2f7db22ca295b963152d1b628533385c' '0546f2aeb1d16c5865167b6d69c0d672')
10 depends=("9base") #alternative dependency: plan9port
11 conflicts=('9mk-init-rc')
12 makedepends=('subversion')
15 build() {
16     export LC_ALL=C
17     export DESTDIR=$pkgdir
19     cd $srcdir
20     svn co https://lug.rose-hulman.edu/svn/misc/trunk/mkinit/ mkinit
21     svn cat https://lug.rose-hulman.edu/svn/misc/trunk/mkcommon > mkcommon
23     rm -rf $srcdir/build
24     cp -ar mkinit build
26     export PLAN9=/opt/plan9
27     export PATH=$PLAN9/bin:$PATH
29     rm $srcdir/build/src/mkinit.rc
31     cd $srcdir/build
32     mk all
35 package() {
36     install -d "$pkgdir/etc"
37     install -d "$pkgdir/sbin"
38     install -d "$pkgdir/lib/mkinit/bin"
39     install -d "$pkgdir/lib/mkinit/state"
41     install -t $pkgdir/lib/mkinit/bin $srcdir/build/src/{mkinit,service,respawn,initctld}
42     install -t $pkgdir/etc $srcdir/build/init.mk
44     msg "WARNING: this is a highly experimental package. Make sure that you know what you are doing before installing"