aboutsummaryrefslogtreecommitdiffstats
path: root/main/pacman/APKBUILD
blob: 2b600ebb626bbdeb88e5f24a47d8e3e27ec0e363 (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
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=pacman
pkgver=5.0.1
pkgrel=1
pkgdesc="a simple library-based package manager"
url="http://www.archlinux.org/pacman/"
arch="all"
license="GPL"
depends=""
depends_dev="libarchive-dev curl-dev libressl-dev gpgme-dev gettext-dev"
makedepends="$depends_dev m4 coreutils sed autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="http://sources.archlinux.org/other/pacman/pacman-$pkgver.tar.gz"

_builddir="$srcdir"/pacman-$pkgver
prepare() {
	local i
	cd "$_builddir"
	for i in $source; do
		case $i in
		*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
		esac
	done
}

build() {
	cd "$_builddir"
	./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 \
		|| return 1
	make V=1 || return 1
}

package() {
	cd "$_builddir"
	make V=1 -j1 DESTDIR="$pkgdir" install || return 1
}

md5sums="377a2664d6007d72d6d8a126add83bcf  pacman-5.0.1.tar.gz"
sha256sums="8bd5f407ce8e05c4be8f1c4be4d8dcc8550ea5e494937da5220ea2c23cbb8e04  pacman-5.0.1.tar.gz"
sha512sums="9c8c5c8a203f952561ca4aef7d52f40cbecd47f184748dcd34bdf6588ed921e63cc1688647098739d8c54f4b57b239f368bf4f27ddebf3db2f351bf4acd5f707  pacman-5.0.1.tar.gz"