# Contributor: André Klitzing # Maintainer: André Klitzing pkgname=xbps pkgver=0.59.1 pkgrel=2 pkgdesc="The X Binary Package System" arch="all" url="https://github.com/void-linux/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>3" 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 $pkgname-openssl-version-2.patch::https://github.com/void-linux/xbps/commit/db1766986c4389eb7e17c0e0076971b711617ef9.patch no-werror.patch " # secfixes: # 0.58-r0: # - CVE-2020-7450 build() { ./configure \ --prefix=/usr \ --sysconfdir=/etc \ --bindir=/usr/bin \ --localstatedir=/var/lib/xbps \ --enable-lto sed 's|-O2|-Os|g' config.mk 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=" 95f887e4de2a8d49269d32eccd58c2e996600c72b0269eade24df6dc6d6b844cfadecdaa42224747c0567c3080e54e7d4890ec0001e4ed0a9f4dd72bc4c868fe xbps-0.59.1.tar.gz 952201496769c197f6598dc9c9f6b06bef8b5a6a0baf99793f8be2ee1d5b1acf521687adffdabd237fd33c73bbc472f185a1b71fa1ad17f1e04c74c8bed1bade xbps-openssl-version-2.patch 15db17c464732aa1da1970a9b7349321680feed2f8c17dff7dfc485d3d82696b66cee64056a51bfe6211e90fcf9b0abd6d6ae765f94670ba15d24419b5ea906f no-werror.patch "