# Contributor: André Klitzing # Maintainer: André Klitzing pkgname=xbps pkgver=0.57.1 pkgrel=0 pkgdesc="The X Binary Package System" arch="all" url="https://github.com/voidlinux/xbps" license="BSD-2-Clause AND (BSD-3-Clause AND ISC AND BSD-2-Clause-NetBSD)" depends="ca-certificates" makedepends="zlib-dev libarchive-dev openssl-dev" subpackages="$pkgname-dev $pkgname-doc $pkgname-bash-completion:bashcomp:noarch $pkgname-zsh-completion:zshcomp:noarch" options="!check" source="$pkgname-$pkgver.tar.gz::https://github.com/void-linux/xbps/archive/$pkgver.tar.gz" build() { ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --bindir=/usr/bin \ --localstatedir=/var/lib/xbps make } package() { make DESTDIR="$pkgdir/" install rm -f "$pkgdir"/usr/lib/*.a } bashcomp() { pkgdesc="Bash completions for $pkgname" depends="" install_if="$pkgname=$pkgver-r$pkgrel bash-completion" _submv usr/share/bash-completion/completions } zshcomp() { pkgdesc="ZSH completions for $pkgname" depends="" install_if="$pkgname=$pkgver-r$pkgrel zsh" _submv usr/share/zsh/site-functions } _submv() { local path="$1" mkdir -p "$subpkgdir"/${path%/*} mv "$pkgdir"/$path "$subpkgdir"/${path%/*}/ } sha512sums="bd9768affa458c780b3330ef9f92fc03152d2b026c4b9b659e3cb33c6bb2bfe2840036ef36eec8fc00cc3233c8f237c37635d17223f6b5d3e4bbc83d431c20db xbps-0.57.1.tar.gz"