blob: 743fb3e419e944a1ec74a3a146a78feea69b77b1 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
# Contributor: André Klitzing <aklitzing@gmail.com>
# Maintainer: André Klitzing <aklitzing@gmail.com>
pkgname=xbps
pkgver=0.59
pkgrel=1
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"
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"
# 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="31da8d03101c95672fef77f85d5f8ce34dcb3f8cebf1e22fbc34fb25266e524862e52c9d580831c1106e5f0f72627a40bc202dcf06ef5553a43e5f75129615a0 xbps-0.59.tar.gz"
|