From c2ae4432f3e216a655c99f45713aa939c9418d10 Mon Sep 17 00:00:00 2001 From: David P Date: Fri, 11 May 2018 12:58:28 -0300 Subject: nonsystemd/libretools: add package Signed-off-by: David P --- nonsystemd/libretools/PKGBUILD | 69 ++++++++++++++++++++++++++++++++ nonsystemd/libretools/libretools.install | 20 +++++++++ 2 files changed, 89 insertions(+) create mode 100644 nonsystemd/libretools/PKGBUILD create mode 100644 nonsystemd/libretools/libretools.install diff --git a/nonsystemd/libretools/PKGBUILD b/nonsystemd/libretools/PKGBUILD new file mode 100644 index 000000000..e1b0e953b --- /dev/null +++ b/nonsystemd/libretools/PKGBUILD @@ -0,0 +1,69 @@ +# Maintainer: Luke Shumaker +# Contributor: Joshua Ismael Haase Hernández (xihh) +# Contributor: fauno +# Contributor: Márcio Silva + +pkgname=libretools +pkgdesc="Programs for Parabola development" +url="https://git.parabola.nu/packages/libretools.git/" +license=('GPL3' 'GPL2') + +pkgver=20180428 +source=(https://repo.parabola.nu/other/$pkgname/$pkgname-$pkgver.tar.gz{,.sig}) +sha256sums=('db1ec0ad1f8229ee3f8c51fe3c8cdafb5edc3550dbc1dc21bb907d4a07973224' + 'SKIP') +validpgpkeys=('99195DD3BB6FE10A2F36ED8445698744D4FFBFC9') # Luke Shumaker + +pkgrel=1 +pkgrel+=.nonsystemd1 +arch=('any') +makedepends=(ruby-ronn) +checkdepends=(sh-roundup git expac tokyocabinet) + +build() { + cd "$srcdir/$pkgbase-$pkgver" + + # Use chroot-nspawn instead of systemd-nspawn + sed -e 's/systemd-nspawn/chroot-nspawn/g' \ + -i src/chroot-tools/arch-nspawn.in + + make +} + +check() { + cd "$srcdir/$pkgbase-$pkgver" + + SUDO_USER= make check TESTENVFLAGS='--no-network --no-sudo' +} + +package_libretools() { + backup=(etc/libretools.conf + etc/libretools.d/chroot.conf + etc/libretools.d/libredbdiff.conf + etc/libretools.d/librefetch.conf) + install=libretools.install + conflicts=(devtools libretools-mips64el) + replaces=(libretools-mips64el) + + depends=( + "librelib=$pkgver" + "xbs=$pkgver" # `createworkdir`, `librestage` + 'pacman>=5.0.1-2.parabola4' 'pacman<5.1' + arch-install-scripts # `mkarchroot` uses `pacstrap` + expac # `libredbdiff` + make # `librefetch` + openssh # `librerelease` + rsync # `librerelease` and `makechrootpkg.sh` + chroot-nspawn # systemd-nspawn + tokyocabinet # `toru` + #namcap # Namcap is currently dissabled in libremakepkg :-( + #subversion # `diff-unfree` # ignore because of xbs + wget # `aur`, optdepend for librelib:`blacklist` + ) + optdepends=( + 'qemu-user-static-binfmt: To build ARM packages from x86' + ) + + cd "$srcdir/$pkgbase-$pkgver" + make install-libretools DESTDIR="$pkgdir" +} diff --git a/nonsystemd/libretools/libretools.install b/nonsystemd/libretools/libretools.install new file mode 100644 index 000000000..759e32dc4 --- /dev/null +++ b/nonsystemd/libretools/libretools.install @@ -0,0 +1,20 @@ +#!/bin/sh + +# arg 1: the new package version +post_install() { + librefetch-install install etc/makepkg.conf +} + +## arg 1: the new package version +## arg 2: the old package version +post_upgrade() { + if [[ "$(vercmp 20160505 "$2")" -eq 1 ]]; then + echo ":: The archroot format has changed from v3 to v4;" + echo " you will need delete and re-create your chroots." + fi + librefetch-install install etc/makepkg.conf +} + +pre_remove() { + librefetch-install remove etc/makepkg.conf +} -- cgit v1.2.3