33 lines
757 B
Bash
33 lines
757 B
Bash
#!/bin/sh
|
|
pkgname=dinit
|
|
version=0.17.1
|
|
revision=8
|
|
short_desc="Simple Linux / BSD init system (NOT MY SOFTWARE)"
|
|
maintainer="Tracker-Friendly <jliwin98@danwin1210.de>"
|
|
homepage="https://github.com/davmac314/dinit"
|
|
license="GPL-3.0"
|
|
makedepends="git make gcc m4"
|
|
conflicts="runit"
|
|
|
|
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
|
|
}
|