blob: ccd1857d167f117b003f0a931edc35e2b45765c3 (
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
|
# $Id: PKGBUILD 10342 2008-08-27 01:24:22Z dan $
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# Maintainer: Dan McGee <dan@archlinux.org>
pkgname=pacman
pkgver=3.2.1
pkgrel=10
pkgdesc="A library-based package manager with dependency support"
arch=('i686' 'x86_64')
url="http://www.archlinux.org/pacman/"
license=('GPL')
groups=('base')
depends=('bash' 'libarchive>=2.5.5' 'libdownload>=1.3')
backup=(etc/pacman.conf etc/makepkg.conf etc/pacman.d/mirrorlist)
install=pacman.install
options=(!libtool)
source=(ftp://ftp.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz
pacman.conf
mirrorlist)
md5sums=('5b133613cebd74aa8c199de049e25cc4'
'49b799e923933a30cdefcac06f530fb0'
'a16981c0fef957a95999550f68cdb0f8')
build() {
cd $startdir/src/$pkgname-$pkgver
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
make || return 1
make DESTDIR=$startdir/pkg install || return 1
# install arch specific stuff
mkdir -p ${startdir}/pkg/etc/pacman.d
install -m644 ${startdir}/src/pacman.conf ${startdir}/pkg/etc/
install -m644 ${startdir}/src/mirrorlist ${startdir}/pkg/etc/pacman.d/
# customize mirrorlist to architecture
sed -i -e "s/@carch@/${CARCH}/g" ${startdir}/pkg/etc/pacman.d/mirrorlist
# install completion files
mkdir -p $startdir/pkg/etc/bash_completion.d/
install -m644 contrib/bash_completion $startdir/pkg/etc/bash_completion.d/pacman
mkdir -p $startdir/pkg/usr/share/zsh/site-functions/
install -m644 contrib/zsh_completion $startdir/pkg/usr/share/zsh/site-functions/_pacman
}
# vim: set ts=2 sw=2 et:
|