29 lines
763 B
Bash
29 lines
763 B
Bash
|
# 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')
|