summaryrefslogtreecommitdiffstats
path: root/abs/core/pacman/PKGBUILD
diff options
context:
space:
mode:
authorJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
committerJames Meyer <James.meyer@operamail.com>2008-10-02 03:19:12 (GMT)
commit0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a (patch)
treec0aa2c0b53c317be87eacfcb77b63f53f1f415e7 /abs/core/pacman/PKGBUILD
downloadlinhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.zip
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.gz
linhes_pkgbuild-0e2532d4e8f4eed5e047f1db54d5c03ba849ec0a.tar.bz2
initial import
Diffstat (limited to 'abs/core/pacman/PKGBUILD')
-rw-r--r--abs/core/pacman/PKGBUILD46
1 files changed, 46 insertions, 0 deletions
diff --git a/abs/core/pacman/PKGBUILD b/abs/core/pacman/PKGBUILD
new file mode 100644
index 0000000..ccd1857
--- /dev/null
+++ b/abs/core/pacman/PKGBUILD
@@ -0,0 +1,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: