mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
84 lines
2.6 KiB
Bash
84 lines
2.6 KiB
Bash
# $Id: PKGBUILD 135272 2011-08-11 19:58:54Z dreisner $
|
|
# 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.4
|
|
pkgrel=4
|
|
pkgdesc="A library-based package manager with dependency support"
|
|
arch=('arm' 'armv7h')
|
|
url="http://www.archlinux.org/pacman/"
|
|
license=('GPL')
|
|
groups=('base')
|
|
depends=('bash' 'glibc>=2.14' '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
|
|
0001-makepkg-fix-removing-symbolic-link.patch)
|
|
md5sums=('2dd3a85d55ee3dd89abd349aa837447c'
|
|
'8a202e08a4e9ffe978c6aa6358e1b640'
|
|
'5a572af37873bb8a521ffbf81aa2151e'
|
|
'7af5a2b001a8baabb664a94b08dbddec'
|
|
'749a4ddc6d8418d8d031f1c9b4e09d6f')
|
|
|
|
# keep an upgrade path for older installations
|
|
PKGEXT='.pkg.tar.gz'
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
patch -Np1 < "$srcdir/0001-makepkg-fix-removing-symbolic-link.patch"
|
|
|
|
./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:
|