This commit is contained in:
Jack L. Frost 2015-06-01 16:15:16 +03:00
commit 0a54c184c4

28
PKGBUILD Normal file
View File

@ -0,0 +1,28 @@
# Maintainer: Jack Frost <fbt@fleshless.org>
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')