31 lines
775 B
Bash
31 lines
775 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=5
|
|
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 sinit "${pkgdir}/usr/bin/init"
|
|
ln -s shutdown "${pkgdir}/usr/bin/reboot"
|
|
ln -s shutdown "${pkgdir}/usr/bin/poweroff"
|
|
}
|
|
|
|
package_sinit-tools() {
|
|
depends=( 'sinit' )
|
|
|
|
install -Dm755 "${pkgname}-${pkgver}/shutdown" "${pkgdir}/usr/bin/shutdown"
|
|
}
|
|
|
|
sha1sums=('e1838fe888c070883b4b4c9f65ded5c2ed60d7ad')
|