diff options
Diffstat (limited to 'nonsystemd/libretools/PKGBUILD')
-rw-r--r-- | nonsystemd/libretools/PKGBUILD | 69 |
1 files changed, 69 insertions, 0 deletions
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 <lukeshu@sbcglobal.net> +# Contributor: Joshua Ismael Haase Hernández (xihh) <hahj87@gmail.com> +# Contributor: fauno <fauno@kiwwwi.com.ar> +# Contributor: Márcio Silva <coadde@hyperbola.info> + +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" +} |