sinit-sysvcompat/PKGBUILD
fbt c6973f7ce7 depend tools on sinit
Signed-off-by: fbt <fbt@fleshless.org>
2017-11-23 21:58:13 +03:00

31 lines
802 B
Bash

# Maintainer: Jack Frost <fbt@fleshless.org>
pkgdesc='Package for sysvinit compatibility'
pkgname=( 'sinit-sysvcompat' 'sinit-tools' )
license=( 'ISC' )
pkgver=1.0.6
pkgrel=4
arch=( 'any' )
url='https://git.fleshless.org/sinit-tools'
conflicts=( 'systemd-sysvcompat' )
source=( "https://git.fleshless.org/u/spark/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() {
depends=( 'sinit' )
install -Dm755 "${pkgname}-${pkgver}/shutdown" "${pkgdir}/usr/bin/shutdown"
}
sha1sums=('e1838fe888c070883b4b4c9f65ded5c2ed60d7ad')