blob: a00f439a4ecedf30ec3092e1f8e7ab343bb8e220 (
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
|
# Contributor: William Pitcock <nenolod@dereferenced.org>
# Maintainer: William Pitcock <nenolod@dereferenced.org>
pkgname=pacman
pkgver=4.1.2
pkgrel=0
pkgdesc="a simple library-based package manager"
url="http://www.archlinux.org/pacman/"
arch="all"
license="GPL"
depends=""
depends_dev="libarchive-dev curl-dev openssl-dev gpgme-dev gettext-dev"
makedepends="$depends_dev m4 coreutils sed autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
source="ftp://ftp.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
rm -f "$pkgdir"/usr/lib/*.la
}
md5sums="063c8b0ff6bdf903dc235445525627cd pacman-4.1.2.tar.gz"
sha256sums="7c059b444735ee254cfbd8dc2fac8c5d61453601f8adaf001c7038cdc673334c pacman-4.1.2.tar.gz"
sha512sums="d7aac7123cb9e128268ba89f9af9c2c31ca4a4a28b9536426524707782b3e26b6c8db9484e5615da65d2e6eb7b59ebe5feb52cbf55b2b5b5c28d2956c91656e8 pacman-4.1.2.tar.gz"
|