This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
evolution-packages/srcpkgs/dinit/template

36 lines
890 B
Bash
Raw Normal View History

2023-08-18 23:50:54 +01:00
#!/bin/sh
pkgname=dinit
2023-09-01 00:38:35 +01:00
version=0.17.1
revision=1
2023-08-28 22:56:39 +01:00
short_desc="Simple Linux / BSD init system (NOT MY SOFTWARE)"
2023-08-18 23:50:54 +01:00
maintainer="Tracker-Friendly <jliwin98@danwin1210.de>"
2023-09-01 00:38:35 +01:00
homepage="https://github.com/davmac314/dinit"
2023-08-18 23:50:54 +01:00
license="GPL-3.0"
makedepends="git make gcc m4"
2023-09-01 00:38:35 +01:00
conflicts="runit runit-void"
2023-08-18 23:50:54 +01:00
do_build() {
echo "Building..."
cd ${XBPS_BUILDDIR}
rm -rf dinit
git clone https://github.com/davmac314/dinit.git --depth=1
cd dinit
CXXOPTS="-Os -fno-plt -flto -fno-rtti"
make
}
do_install() {
cd ${XBPS_BUILDDIR}
cd dinit
SBINDIR="/usr/bin"
mkdir ${DESTDIR}/sbin
make DESTDIR=${DESTDIR} install
mkdir -p ${DESTDIR}/usr/bin
mv ${DESTDIR}/sbin/* ${DESTDIR}/usr/bin/
rm -rf ${DESTDIR}/sbin
ls ${DESTDIR}/usr/bin
2023-08-28 22:56:39 +01:00
mkdir -p ${DESTDIR}/etc/dinit.d/
cp -r ${FILESDIR}/dinit.d/* ${DESTDIR}/etc/dinit.d/
vbin ${FILESDIR}/drunner
2023-08-18 23:50:54 +01:00
}