PKGBUILDs/core/pacman/PKGBUILD

80 lines
2.5 KiB
Bash
Raw Normal View History

2011-06-11 02:38:38 +00:00
# $Id: PKGBUILD 126847 2011-06-07 19:50:19Z dan $
2010-07-10 01:32:36 +00:00
# Maintainer: Dan McGee <dan@archlinux.org>
2011-08-01 22:18:04 +00:00
# ALARM: Kevin Mihelich <kevin@plugapps.com>
2011-05-02 02:46:30 +00:00
# - arch/host/flags for arm and armv7
2011-03-25 23:16:57 +00:00
# - depend on current versions of libarchive, libfetch, xz to fix upgrade issues
2011-08-01 22:18:04 +00:00
# - pacman.conf: architecture=arm/armv7h, added our aur repo
2011-03-25 23:16:57 +00:00
# - makepkg.conf: add --no-check-certificate to http wget, adjusted C/CXX/LDFLAGS
2011-02-06 20:16:05 +00:00
2011-05-02 02:46:30 +00:00
plugrel=1
2011-02-06 20:16:05 +00:00
pkgname=pacman
2011-06-11 02:38:38 +00:00
pkgver=3.5.3
pkgrel=1.1
pkgdesc="A library-based package manager with dependency support"
2011-06-22 00:48:50 +00:00
arch=('arm' 'armv7h')
url="http://www.archlinux.org/pacman/"
license=('GPL')
groups=('base')
depends=('bash' 'libarchive>=2.8.4' 'libfetch>=2.33' 'pacman-mirrorlist' 'xz>=5.0.1')
2010-09-07 22:15:37 +00:00
optdepends=('fakeroot: for makepkg usage as normal user'
'curl: for rankmirrors usage')
2010-04-27 01:52:11 +00:00
backup=(etc/pacman.conf etc/makepkg.conf)
2009-12-07 20:25:36 +00:00
install=pacman.install
options=(!libtool)
source=(ftp://ftp.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz
pacman.conf
2011-05-02 02:46:30 +00:00
pacman.conf.armv7
2010-09-07 22:15:37 +00:00
makepkg.conf)
md5sums=('c36c18ed4d8ec69c0ecb4f9684266901'
2011-03-25 23:16:57 +00:00
'8a202e08a4e9ffe978c6aa6358e1b640'
2011-06-22 00:48:50 +00:00
'5a572af37873bb8a521ffbf81aa2151e'
'da2e78190c8677e3df4ed9744bc22e7e')
2010-04-27 01:52:11 +00:00
# keep an upgrade path for older installations
PKGEXT='.pkg.tar.gz'
build() {
2009-12-07 20:25:36 +00:00
cd $srcdir/$pkgname-$pkgver
2011-03-25 23:16:57 +00:00
./configure --prefix=/usr --sysconfdir=/etc \
--localstatedir=/var --enable-doc
2011-02-06 20:13:24 +00:00
make
2009-12-07 20:25:36 +00:00
}
package() {
cd $srcdir/$pkgname-$pkgver
2011-02-06 20:13:24 +00:00
make DESTDIR=$pkgdir install
2009-12-07 20:25:36 +00:00
# install Arch specific stuff
mkdir -p $pkgdir/etc
2011-05-02 02:46:30 +00:00
case "$CARCH" in
arm)
install -m644 $srcdir/pacman.conf $pkgdir/etc/pacman.conf
mycarch="arm"
mychost="arm-unknown-linux-gnueabi"
myflags="-march=armv5te "
;;
2011-06-22 00:48:50 +00:00
armv7h)
2011-05-02 02:46:30 +00:00
install -m644 $srcdir/pacman.conf.armv7 $pkgdir/etc/pacman.conf
2011-06-22 00:48:50 +00:00
mycarch="armv7h"
2011-05-02 02:46:30 +00:00
mychost="armv7l-unknown-linux-gnueabi"
myflags="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 "
2011-05-02 02:46:30 +00:00
;;
esac
2009-12-07 20:25:36 +00:00
install -m644 $srcdir/makepkg.conf $pkgdir/etc/
2011-02-06 20:13:24 +00:00
# set things correctly in the default conf file
sed -i $pkgdir/etc/makepkg.conf \
-e "s|@CARCH[@]|$mycarch|g" \
-e "s|@CHOST[@]|$mychost|g" \
-e "s|@CARCHFLAGS[@]|$myflags|g"
# install completion files
2009-12-07 20:25:36 +00:00
mkdir -p $pkgdir/etc/bash_completion.d/
install -m644 contrib/bash_completion $pkgdir/etc/bash_completion.d/pacman
mkdir -p $pkgdir/usr/share/zsh/site-functions/
install -m644 contrib/zsh_completion $pkgdir/usr/share/zsh/site-functions/_pacman
}
2011-02-06 20:13:24 +00:00
# vim: set ts=2 sw=2 et: