sinit-sysvcompat/PKGBUILD

29 lines
772 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' )
2016-04-14 15:04:53 +00:00
pkgver=1.0.5
2015-06-01 13:15:16 +00:00
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"
}
2016-04-14 15:04:53 +00:00
sha1sums=('cad43ec50195ef704f514c22986b17f2a18ff44c')