PKGBUILDs/core/pacman/PKGBUILD

77 lines
2.3 KiB
Bash
Raw Normal View History

2010-04-27 01:52:11 +00:00
# Maintainer: Mike Staszel <mikestaszel@plugboxlinux.org>
2010-07-10 01:32:36 +00:00
# Maintainer: Aaron Griffin <aaron@archlinux.org>
# Maintainer: Dan McGee <dan@archlinux.org>
# Plugbox changes:
# - pacman.conf
# - makepkg.conf with ARM stuff
pkgname=pacman
2010-07-10 01:32:36 +00:00
pkgver=3.4.0
pkgrel=2
pkgdesc="A library-based package manager with dependency support"
arch=('arm')
url="http://www.archlinux.org/pacman/"
license=('GPL')
groups=('base')
depends=('bash' 'libarchive>=2.7.1' 'libfetch>=2.25' 'pacman-mirrorlist')
2010-07-10 01:32:36 +00:00
optdepends=('fakeroot: for makepkg usage as normal user')
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
2010-04-27 01:52:11 +00:00
makepkg.conf
2010-07-10 01:32:36 +00:00
0001-makepkg-fallback-to-sane-defaults-for-library-stripp.patch)
md5sums=('50ad71be1faaad84842c576e239d1bb5'
'8a1eea46c9af940a8812dfb4bbbd159d'
2010-04-27 01:52:11 +00:00
'ce00f190714c02ef26117ecfdf5fa296'
2010-07-10 01:32:36 +00:00
'f8c4a3cc7702a7a70d177659441495c5')
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
2010-07-10 01:32:36 +00:00
patch -Np1 < $srcdir/0001-makepkg-fallback-to-sane-defaults-for-library-stripp.patch
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-doc
make || return 1
2009-12-07 20:25:36 +00:00
}
package() {
cd $srcdir/$pkgname-$pkgver
make DESTDIR=$pkgdir install || return 1
2009-12-07 20:25:36 +00:00
# install Arch specific stuff
mkdir -p $pkgdir/etc
install -m644 $srcdir/pacman.conf $pkgdir/etc/
install -m644 $srcdir/makepkg.conf $pkgdir/etc/
2010-07-10 01:32:36 +00:00
# Plugbox wants to be old-fashioned and just use their
# files instead of letting sed modify them, so skip the part below
# # set things correctly in the default conf file
# case "$CARCH" in
# i686)
# mycarch="i686"
# mychost="i686-pc-linux-gnu"
# myflags="-march=i686 "
# ;;
# x86_64)
# mycarch="x86_64"
# mychost="x86_64-unknown-linux-gnu"
# myflags="-march=x86-64 "
# ;;
# esac
# 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
}