mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-18 22:54:00 +00:00
76 lines
2.3 KiB
Bash
Executable file
76 lines
2.3 KiB
Bash
Executable file
# Maintainer: Mike Staszel <mikestaszel@plugboxlinux.org>
|
|
# Maintainer: Aaron Griffin <aaron@archlinux.org>
|
|
# Maintainer: Dan McGee <dan@archlinux.org>
|
|
|
|
# Plugbox changes:
|
|
# - pacman.conf
|
|
# - makepkg.conf with ARM stuff
|
|
|
|
pkgname=pacman
|
|
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')
|
|
optdepends=('fakeroot: for makepkg usage as normal user')
|
|
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
|
|
0001-makepkg-fallback-to-sane-defaults-for-library-stripp.patch)
|
|
md5sums=('50ad71be1faaad84842c576e239d1bb5'
|
|
'8a1eea46c9af940a8812dfb4bbbd159d'
|
|
'ce00f190714c02ef26117ecfdf5fa296'
|
|
'f8c4a3cc7702a7a70d177659441495c5')
|
|
|
|
# keep an upgrade path for older installations
|
|
PKGEXT='.pkg.tar.gz'
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
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
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
make DESTDIR=$pkgdir install || return 1
|
|
|
|
# install Arch specific stuff
|
|
mkdir -p $pkgdir/etc
|
|
install -m644 $srcdir/pacman.conf $pkgdir/etc/
|
|
install -m644 $srcdir/makepkg.conf $pkgdir/etc/
|
|
|
|
# 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
|
|
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
|
|
}
|