mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
79 lines
2.5 KiB
Bash
79 lines
2.5 KiB
Bash
# $Id: PKGBUILD 126847 2011-06-07 19:50:19Z dan $
|
|
# Maintainer: Dan McGee <dan@archlinux.org>
|
|
|
|
# ALARM: Kevin Mihelich <kevin@plugapps.com>
|
|
# - arch/host/flags for arm and armv7
|
|
# - depend on current versions of libarchive, libfetch, xz to fix upgrade issues
|
|
# - pacman.conf: architecture=arm/armv7h, added our aur repo
|
|
# - makepkg.conf: add --no-check-certificate to http wget, adjusted C/CXX/LDFLAGS
|
|
|
|
plugrel=1
|
|
|
|
pkgname=pacman
|
|
pkgver=3.5.3
|
|
pkgrel=1.1
|
|
pkgdesc="A library-based package manager with dependency support"
|
|
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')
|
|
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
|
|
pacman.conf.armv7
|
|
makepkg.conf)
|
|
md5sums=('c36c18ed4d8ec69c0ecb4f9684266901'
|
|
'8a202e08a4e9ffe978c6aa6358e1b640'
|
|
'5a572af37873bb8a521ffbf81aa2151e'
|
|
'da2e78190c8677e3df4ed9744bc22e7e')
|
|
|
|
# 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
|
|
case "$CARCH" in
|
|
arm)
|
|
install -m644 $srcdir/pacman.conf $pkgdir/etc/pacman.conf
|
|
mycarch="arm"
|
|
mychost="arm-unknown-linux-gnueabi"
|
|
myflags="-march=armv5te "
|
|
;;
|
|
armv7h)
|
|
install -m644 $srcdir/pacman.conf.armv7 $pkgdir/etc/pacman.conf
|
|
mycarch="armv7h"
|
|
mychost="armv7l-unknown-linux-gnueabi"
|
|
myflags="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 "
|
|
;;
|
|
esac
|
|
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:
|