Pkgfile (758B)
1 # Description: suckless init, based on felker's minimal init 2 # URL: https://git.suckless.org/sinit/file/README.html 3 # Maintainer: Shokara Kou, kou at 13f0 dot net 4 # Depends on: 5 6 name=sinit 7 commit=28c44b6 8 version=git-$commit 9 release=1 10 source=(poweroff reboot rc.conf rc.init rc.shutdown) 11 12 gitsource=git://git.suckless.org/$name/ 13 14 build() { 15 git clone $gitsource 16 cd $name 17 git checkout $commit 18 19 sed 's/bin/etc/' config.def.h >config.h 20 21 make 22 make PREFIX=/ MANPREFIX=/usr DESTDIR=$PKG install 23 24 mkdir $PKG/sbin 25 ln -s /bin/sinit $PKG/sbin/init 26 27 install -Dt $PKG/bin -m755 $SRC/poweroff 28 install -Dt $PKG/bin -m755 $SRC/reboot 29 30 install -Dt $PKG/etc -m644 $SRC/rc.conf 31 install -Dt $PKG/etc -m755 $SRC/rc.init 32 install -Dt $PKG/etc -m755 $SRC/rc.shutdown 33 }