aboutsummaryrefslogtreecommitdiffstats
path: root/community/pacman/APKBUILD
blob: f49fe501c927daedbbb2abcacefd23c7f4f753b5 (plain) (blame)
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
# Contributor:
# Maintainer:
pkgname=pacman
pkgver=5.2.1
pkgrel=1
pkgdesc="A simple library-based package manager"
url="https://www.archlinux.org/pacman/"
arch="all"
license="GPL-2.0-or-later"
options="!check" # Depends on not packaged fakechroot
depends="bash libarchive-tools"
depends_dev="gettext-dev"
makedepends="$depends_dev autoconf automake coreutils curl-dev libtool
	libarchive-dev m4 openssl-dev sed gpgme-dev"
subpackages="
	$pkgname-static
	$pkgname-dev
	$pkgname-doc
	$pkgname-lang
	$pkgname-bash-completion:bashcomp:noarch
	"
source="https://sources.archlinux.org/other/pacman/pacman-$pkgver.tar.gz"

# secfixes:
#   5.2.0-r0:
#     - CVE-2019-18183
#     - CVE-2019-18182
#   5.1.3-r0:
#     - CVE-2019-9686

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--mandir=/usr/share/man \
		--infodir=/usr/share/info \
		--localstatedir=/var \
		--with-scriptlet-shell=/usr/bin/bash
	make V=1
}

package() {
	make DESTDIR="$pkgdir" install

	mkdir -p "$pkgdir"/usr/lib/pkgconfig
	mv "$pkgdir"/usr/share/pkgconfig/* "$pkgdir"/usr/lib/pkgconfig
	rmdir -p "$pkgdir"/usr/share/pkgconfig || true
}

bashcomp() {
	depends=""
	pkgdesc="Bash completions for $pkgname"
	install_if="$pkgname=$pkgver-r$pkgrel bash-completion"

	mkdir -p "$subpkgdir"/usr/share
	mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share
}

sha512sums="7814420b8d71090313f1bc7d9a513138bda74c5cbcb43d9741acc27ea7b4d180a38848a7d7059969cc7afed1b108d26ba2622a16d8761566357c50a5da456981  pacman-5.2.1.tar.gz"