2012-01-17 22:38:54 +00:00
|
|
|
# vim: set ts=2 sw=2 et:
|
|
|
|
# $Id: PKGBUILD 146700 2012-01-16 19:48:37Z dreisner $
|
2010-07-10 01:32:36 +00:00
|
|
|
# Maintainer: Dan McGee <dan@archlinux.org>
|
2012-05-14 23:35:39 +00:00
|
|
|
# Maintainer: Dave Reisner <dreisner@archlinux.org>
|
2010-07-10 01:32:36 +00:00
|
|
|
|
2012-01-17 22:38:54 +00:00
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - arch/host/flags for arm and armv7h
|
2012-03-12 20:57:30 +00:00
|
|
|
# - pacman.conf: architecture=arm/armv7h, added our aur and alarm repos
|
2012-01-17 22:38:54 +00:00
|
|
|
# - makepkg.conf: adjusted C/CXX/LDFLAGS
|
2014-04-23 00:34:32 +00:00
|
|
|
# - patch to sync filesystem after install/remove
|
2011-02-06 20:16:05 +00:00
|
|
|
|
2009-10-08 03:40:19 +00:00
|
|
|
pkgname=pacman
|
2013-06-20 12:51:11 +00:00
|
|
|
pkgver=4.1.2
|
2014-05-09 01:55:26 +00:00
|
|
|
pkgrel=6
|
2009-10-08 03:40:19 +00:00
|
|
|
pkgdesc="A library-based package manager with dependency support"
|
2012-01-17 22:38:54 +00:00
|
|
|
arch=('i686' 'x86_64')
|
2009-10-08 03:40:19 +00:00
|
|
|
url="http://www.archlinux.org/pacman/"
|
|
|
|
license=('GPL')
|
2013-03-03 18:31:10 +00:00
|
|
|
groups=('base' 'base-devel')
|
2013-04-08 00:03:59 +00:00
|
|
|
depends=('bash>=4.2.042-2' 'glibc>=2.17-2' 'libarchive>=3.1.2' 'curl>=7.19.4'
|
2012-01-17 22:38:54 +00:00
|
|
|
'gpgme' 'pacman-mirrorlist')
|
2013-04-08 00:03:59 +00:00
|
|
|
checkdepends=('python2' 'fakechroot')
|
2012-01-17 22:38:54 +00:00
|
|
|
optdepends=('fakeroot: for makepkg usage as normal user')
|
2013-04-08 00:03:59 +00:00
|
|
|
provides=('pacman-contrib')
|
|
|
|
conflicts=('pacman-contrib')
|
|
|
|
replaces=('pacman-contrib')
|
2010-04-27 01:52:11 +00:00
|
|
|
backup=(etc/pacman.conf etc/makepkg.conf)
|
2014-01-03 02:12:01 +00:00
|
|
|
options=('strip' 'debug')
|
2012-02-14 14:35:38 +00:00
|
|
|
source=(ftp://ftp.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz{,.sig}
|
2014-04-23 00:34:32 +00:00
|
|
|
0001-Sychronize-filesystem.patch
|
2009-11-16 19:07:36 +00:00
|
|
|
pacman.conf
|
2012-01-17 22:38:54 +00:00
|
|
|
makepkg.conf)
|
2013-06-20 12:51:11 +00:00
|
|
|
md5sums=('063c8b0ff6bdf903dc235445525627cd'
|
2013-05-08 14:24:34 +00:00
|
|
|
'SKIP'
|
2014-04-23 00:34:32 +00:00
|
|
|
'068daa5366ca61eae46294c676caac23'
|
2013-04-08 00:03:59 +00:00
|
|
|
'5c491b27bae54d93d6ba972ce0fccfa7'
|
2014-04-23 00:34:32 +00:00
|
|
|
'1f8d6efc76a395956fdae71927698666')
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
patch -p1 -i ../0001-Sychronize-filesystem.patch
|
|
|
|
}
|
2010-04-27 01:52:11 +00:00
|
|
|
|
2009-10-08 03:40:19 +00:00
|
|
|
build() {
|
2014-05-09 01:55:26 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
2011-08-14 16:34:13 +00:00
|
|
|
|
2011-03-25 23:16:57 +00:00
|
|
|
./configure --prefix=/usr --sysconfdir=/etc \
|
2013-04-08 00:03:59 +00:00
|
|
|
--localstatedir=/var --enable-doc \
|
|
|
|
--with-scriptlet-shell=/usr/bin/bash \
|
|
|
|
--with-ldconfig=/usr/bin/ldconfig
|
2011-02-06 20:13:24 +00:00
|
|
|
make
|
2013-04-08 00:03:59 +00:00
|
|
|
make -C contrib
|
2009-12-07 20:25:36 +00:00
|
|
|
}
|
|
|
|
|
2012-02-14 14:35:38 +00:00
|
|
|
check() {
|
|
|
|
make -C "$pkgname-$pkgver" check
|
|
|
|
}
|
|
|
|
|
2009-12-07 20:25:36 +00:00
|
|
|
package() {
|
2014-05-09 01:55:26 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
2014-05-09 02:12:40 +00:00
|
|
|
make -j1 DESTDIR="$pkgdir" install
|
|
|
|
make -j1 DESTDIR="$pkgdir" -C contrib install
|
2009-10-08 03:40:19 +00:00
|
|
|
|
2009-12-07 20:25:36 +00:00
|
|
|
# install Arch specific stuff
|
2014-05-09 01:55:26 +00:00
|
|
|
install -dm755 "$pkgdir/etc"
|
2014-05-09 02:12:40 +00:00
|
|
|
install -m644 "$srcdir/pacman.conf" "$pkgdir/etc/pacman.conf"
|
2014-05-09 01:55:26 +00:00
|
|
|
|
|
|
|
case $CARCH in
|
2011-05-02 02:46:30 +00:00
|
|
|
arm)
|
|
|
|
mycarch="arm"
|
2012-11-05 17:39:36 +00:00
|
|
|
mychost="armv5tel-unknown-linux-gnueabi"
|
2011-05-02 02:46:30 +00:00
|
|
|
myflags="-march=armv5te "
|
|
|
|
;;
|
2012-07-29 19:17:03 +00:00
|
|
|
armv6h)
|
|
|
|
mycarch="armv6h"
|
|
|
|
mychost="armv6l-unknown-linux-gnueabihf"
|
|
|
|
myflags="-march=armv6 -mfloat-abi=hard -mfpu=vfp "
|
|
|
|
;;
|
2011-06-22 00:48:50 +00:00
|
|
|
armv7h)
|
|
|
|
mycarch="armv7h"
|
2012-07-08 17:41:39 +00:00
|
|
|
mychost="armv7l-unknown-linux-gnueabihf"
|
2011-07-14 20:42:37 +00:00
|
|
|
myflags="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 "
|
2011-05-02 02:46:30 +00:00
|
|
|
;;
|
|
|
|
esac
|
2014-05-09 01:55:26 +00:00
|
|
|
|
2011-02-06 20:13:24 +00:00
|
|
|
# set things correctly in the default conf file
|
2014-05-09 01:55:26 +00:00
|
|
|
install -m644 "$srcdir/makepkg.conf" "$pkgdir/etc"
|
|
|
|
sed -i "$pkgdir/etc/makepkg.conf" \
|
2011-02-06 20:13:24 +00:00
|
|
|
-e "s|@CARCH[@]|$mycarch|g" \
|
|
|
|
-e "s|@CHOST[@]|$mychost|g" \
|
|
|
|
-e "s|@CARCHFLAGS[@]|$myflags|g"
|
2012-01-17 22:38:54 +00:00
|
|
|
sed -i $pkgdir/etc/pacman.conf -e "s|@CARCH[@]|$mycarch|g"
|
2009-10-08 03:40:19 +00:00
|
|
|
|
2013-04-08 00:03:59 +00:00
|
|
|
# put bash_completion in the right location
|
2014-05-09 01:55:26 +00:00
|
|
|
install -dm755 "$pkgdir/usr/share/bash-completion/completions"
|
|
|
|
mv "$pkgdir/etc/bash_completion.d/pacman" "$pkgdir/usr/share/bash-completion/completions"
|
|
|
|
rmdir "$pkgdir/etc/bash_completion.d"
|
2013-04-08 00:03:59 +00:00
|
|
|
|
2012-05-14 23:35:39 +00:00
|
|
|
for f in makepkg pacman-key; do
|
|
|
|
ln -s pacman "$pkgdir/usr/share/bash-completion/completions/$f"
|
|
|
|
done
|
2014-01-03 02:12:01 +00:00
|
|
|
|
|
|
|
install -Dm644 contrib/PKGBUILD.vim "$pkgdir/usr/share/vim/vimfiles/syntax/PKGBUILD.vim"
|
2009-10-08 03:40:19 +00:00
|
|
|
}
|