commit 01964dddb54bd42ef25ab33005230ed83a683776 Author: fbt Date: Mon Jun 1 16:15:16 2015 +0300 init diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..19927b4 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,37 @@ +# Maintainer: Jack L. Frost + +pkgname=sinit-spark +_pkg_realname=sinit +pkgver=0.9.2 +pkgrel=2 +pkgdesc="A simple init, configured to work with spark-rc" +url="http://tools.suckless.org/sinit/" +arch=('i686' 'x86_64') +license=('MIT') +source=( + "http://git.suckless.org/sinit/snapshot/sinit-${pkgver}.tar.gz" + 'config.h' +) + +provides=( sinit ) +conflicts=( 'systemd-sysvcompat' 'sinit' ) + +build() { + cd "$srcdir/$_pkg_realname-$pkgver" + cp "$srcdir/config.h" config.h + make +} + +package() { + cd "$srcdir/$_pkg_realname-$pkgver" + make DESTDIR="$pkgdir" PREFIX=/usr install + + install -m644 -D LICENSE "$pkgdir/usr/share/licenses/$_pkg_realname/LICENSE" + install -m644 -D README "$pkgdir/usr/share/doc/$_pkg_realname/README" + + gzip sinit.8 + install -m644 -D sinit.8.gz "$pkgdir/usr/share/man/man8/sinit.8.gz" +} + +sha1sums=('27f150d6322375ae586fca3df24841fe72bc6975' + '2f727d4f336a240f185044e084bdce677358a19e') diff --git a/config.h b/config.h new file mode 100644 index 0000000..b97b38e --- /dev/null +++ b/config.h @@ -0,0 +1,5 @@ +/* See LICENSE file for copyright and license details. */ + +static char *const rcinitcmd[] = { "/bin/rc", NULL }; +static char *const rcrebootcmd[] = { "/bin/rc", "reboot", NULL }; +static char *const rcpoweroffcmd[] = { "/bin/rc", "poweroff", NULL };