sinit-sysvcompat/PKGBUILD

31 lines
802 B
Bash
Raw Normal View History

2015-06-01 13:15:16 +00:00
# Maintainer: Jack Frost <fbt@fleshless.org>
pkgdesc='Package for sysvinit compatibility'
pkgname=( 'sinit-sysvcompat' 'sinit-tools' )
license=( 'ISC' )
pkgver=1.0.6
pkgrel=4
2015-06-01 13:15:16 +00:00
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" )
2015-06-01 13:15:16 +00:00
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' )
2015-06-01 13:15:16 +00:00
install -Dm755 "${pkgname}-${pkgver}/shutdown" "${pkgdir}/usr/bin/shutdown"
}
sha1sums=('e1838fe888c070883b4b4c9f65ded5c2ed60d7ad')