commit 0a54c184c4b179baaf267c659c8fd16bf83e736f Author: fbt Date: Mon Jun 1 16:15:16 2015 +0300 init diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..1e65d9e --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,28 @@ +# Maintainer: Jack Frost + +pkgdesc='Package for sysvinit compatibility' +pkgname=( 'sinit-sysvcompat' 'sinit-tools' ) +license=( 'ISC' ) +pkgver=1.0.2 +pkgrel=3 +arch=( 'any' ) +url='https://git.fleshless.org/sinit-tools' + +conflicts=( 'systemd-sysvcompat' ) + +source=( "https://git.fleshless.org/sinit-tools/snapshot/sinit-tools-${pkgver}.zip" ) + +package_sinit-sysvcompat() { + depends=( 'sinit' 'sinit-tools' ) + + mkdir -pm755 "${pkgdir}/usr/bin" + ln -s /usr/bin/sinit "${pkgdir}/usr/bin/init" + ln -s /usr/bin/shutdown "${pkgdir}/usr/bin/reboot" + ln -s /usr/bin/shutdown "${pkgdir}/usr/bin/poweroff" +} + +package_sinit-tools() { + install -Dm755 "${pkgname}-${pkgver}/shutdown" "${pkgdir}/usr/bin/shutdown" +} + +md5sums=('a3515376cc26445b0949180987718511')