From cf3bfba940f5a1af9358886c18e91d8b207629f1 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Tue, 6 Jul 2021 17:14:08 +0200 Subject: added uinit to build-support, got delete on the AUR --- build-support/disabled/uinit/.SRCINFO | 14 ++++++++++++++ build-support/disabled/uinit/PKGBUILD | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 build-support/disabled/uinit/.SRCINFO create mode 100644 build-support/disabled/uinit/PKGBUILD (limited to 'build-support') diff --git a/build-support/disabled/uinit/.SRCINFO b/build-support/disabled/uinit/.SRCINFO new file mode 100644 index 00000000..37b1f9dd --- /dev/null +++ b/build-support/disabled/uinit/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = uinit + pkgdesc = uinit -- smallest init possible + pkgver = 20171230git + pkgrel = 1 + url = https://github.com/shiftypenguin/uinit + arch = i686 + arch = x86_64 + license = custom:unlicense + makedepends = git + source = git+https://github.com/shiftypenguin/uinit.git#commit=8c11abef + sha512sums = SKIP + +pkgname = uinit + diff --git a/build-support/disabled/uinit/PKGBUILD b/build-support/disabled/uinit/PKGBUILD new file mode 100644 index 00000000..2afaf4bb --- /dev/null +++ b/build-support/disabled/uinit/PKGBUILD @@ -0,0 +1,32 @@ +# Maintainer: Andreas Baumann + +pkgname=uinit +pkgver=20171230git +_commit=8c11abef +pkgrel=1 +pkgdesc="uinit -- smallest init possible" +arch=('i686' 'x86_64') +url="https://github.com/shiftypenguin/uinit" +license=('custom:unlicense') +makedepends=('git') +source=("git+https://github.com/shiftypenguin/uinit.git#commit=${_commit}") +sha512sums=('SKIP') + +build() { + cd "${srcdir}/${pkgname}" + + make CFLAGS="${CFLAGS}" +} + +package(){ + cd "${srcdir}/${pkgname}" + + install -d -m0755 ${pkgdir}/{usr/bin,sbin} + + make DESTDIR="${pkgdir}" install + + install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE + + mv ${pkgdir}/sbin/* ${pkgdir}/usr/bin/. + rmdir ${pkgdir}/sbin +} -- cgit v1.2.3-70-g09d2