You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4 KiB

# Maintainer: Muhammad Herdiansyah <koni@artixlinux.org>
pkgbase=dinit
pkgname=('dinit' 'dinit-base')
pkgver=0.16.0
_commit=29cd296aa4635fe6f7b53bda2f2cb1648bdc0782
pkgrel=1
pkgdesc="Service monitoring/init system"
arch=('x86_64')
url="https://github.com/davmac314/dinit"
license=('Apache')
makedepends=('git')
source=("$url/releases/download/v$pkgver/$pkgname-$pkgver.tar.xz"
"git+https://gitea.artixlinux.org/artix/alpm-hooks.git#commit=$_commit")
sha256sums=('c7965451ef2f2d56996b1a733585e4476a267d2f932e02bba609fd655f89c8cb'
'SKIP')
build() {
cd "$pkgname-$pkgver"
make
}
package_dinit-base() {
pkgdesc='Service monitoring/init system -- base package'
install=dinit.install
cd "$pkgbase-$pkgver"
make DESTDIR="$pkgdir/" SBINDIR=/usr/bin BUILD_SHUTDOWN=no install
}
package_dinit() {
pkgdesc='Service monitoring/init system -- init package'
depends=('dinit-base' 'dinit-rc')
provides=('svc-manager')
conflicts=('svc-manager')
cd "$pkgbase-$pkgver"
make DESTDIR="$pkgdir/" SBINDIR=/usr/bin BUILD_SHUTDOWN=yes install
# remove dinit-base pkgs
rm -f "$pkgdir/usr/bin/"{dinit,dinitcheck,dinitctl,dinit-monitor}
rm -rf "$pkgdir/usr/share/man/man5"
rm -f "$pkgdir/usr/share/man/man8/"{dinit,dinitcheck,dinitctl,dinit-monitor}.8
# dinit-init symlink
ln -s dinit "$pkgdir/usr/bin/dinit-init"
cd "$srcdir/alpm-hooks"
make DESTDIR="$pkgdir/" install_dinit
}