mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
65 lines
1.9 KiB
Bash
65 lines
1.9 KiB
Bash
# $Id: PKGBUILD 107252 2011-01-22 20:53:38Z dan $
|
|
# Maintainer: Dan McGee <dan@archlinux.org>
|
|
|
|
# PlugApps: Kevin Mihelich <kevin@plugapps.com>
|
|
# - Updated steps for ARM and PlugApps
|
|
|
|
plugrel=1
|
|
|
|
pkgname=pacman
|
|
pkgver=3.4.3
|
|
pkgrel=1
|
|
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')
|
|
optdepends=('fakeroot: for makepkg usage as normal user'
|
|
'curl: for rankmirrors usage')
|
|
backup=(etc/pacman.conf etc/makepkg.conf)
|
|
install=pacman.install
|
|
options=(!libtool)
|
|
source=(ftp://ftp.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz
|
|
pacman.conf
|
|
makepkg.conf)
|
|
md5sums=('3656a4a05346e28bafa5342879fa278a'
|
|
'dacb1aedacf56fb11e0dea22f7a1d519'
|
|
'a267116d3b4fd28daf98416f45739a27')
|
|
|
|
# keep an upgrade path for older installations
|
|
PKGEXT='.pkg.tar.gz'
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var --enable-doc
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
make DESTDIR=$pkgdir install
|
|
|
|
# install Arch specific stuff
|
|
mkdir -p $pkgdir/etc
|
|
install -m644 $srcdir/pacman.conf $pkgdir/etc/pacman.conf
|
|
|
|
mycarch="arm"
|
|
mychost="arm-unknown-linux-gnueabi"
|
|
myflags="-march=armv5te"
|
|
|
|
install -m644 $srcdir/makepkg.conf $pkgdir/etc/
|
|
# 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
|
|
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
|
|
}
|
|
|
|
# vim: set ts=2 sw=2 et:
|