2012-01-17 22:38:54 +00:00
|
|
|
# vim: set ts=2 sw=2 et:
|
2016-02-01 13:19:58 +00:00
|
|
|
# $Id$
|
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>
|
2016-02-01 13:19:58 +00:00
|
|
|
# - arch/host/flags for arm, armv6h, armv7h, and aarch64
|
|
|
|
# - pacman.conf: architecture=arm/armv6h/armv7h/aarch64, added our aur and alarm repos
|
2017-08-13 17:19:26 +00:00
|
|
|
# - makepkg.conf: adjusted C/CXX/LDFLAGS, drop -z,now for armv5
|
2014-04-23 00:34:32 +00:00
|
|
|
# - patch to sync filesystem after install/remove
|
2016-03-12 03:16:56 +00:00
|
|
|
# - reverts to allow scriplet input on stdin
|
2011-02-06 20:16:05 +00:00
|
|
|
|
2009-10-08 03:40:19 +00:00
|
|
|
pkgname=pacman
|
2018-05-29 00:53:59 +00:00
|
|
|
pkgver=5.1.0
|
2018-06-01 23:07:13 +00:00
|
|
|
pkgrel=2
|
2009-10-08 03:40:19 +00:00
|
|
|
pkgdesc="A library-based package manager with dependency support"
|
2018-05-03 12:33:23 +00:00
|
|
|
arch=('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')
|
2016-02-01 13:19:58 +00:00
|
|
|
depends=('bash' 'glibc' 'libarchive' 'curl'
|
2018-05-29 00:53:59 +00:00
|
|
|
'gpgme' 'pacman-mirrorlist' 'archlinuxarm-keyring')
|
2016-05-23 04:45:48 +00:00
|
|
|
makedepends=('asciidoc')
|
2013-04-08 00:03:59 +00:00
|
|
|
checkdepends=('python2' 'fakechroot')
|
2018-06-01 23:07:13 +00:00
|
|
|
optdpepends=('perl-locale-gettext: translation support in makepkg-template')
|
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')
|
2017-06-16 01:07:31 +00:00
|
|
|
validpgpkeys=('6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD' # Allan McRae <allan@archlinux.org>
|
|
|
|
'B8151B117037781095514CA7BBDFFC92306B1121') # Andrew Gregory (pacman) <andrew@archlinux.org>
|
2015-02-23 12:28:56 +00:00
|
|
|
source=(https://sources.archlinux.org/other/pacman/$pkgname-$pkgver.tar.gz{,.sig}
|
2018-06-01 23:07:13 +00:00
|
|
|
0001-makepkg-Clear-ERR-trap-before-trying-to-restore-it.patch
|
|
|
|
0002-makepkg-Don-t-use-parameterless-return.patch
|
2014-04-23 00:34:32 +00:00
|
|
|
0001-Sychronize-filesystem.patch
|
2016-02-01 13:19:58 +00:00
|
|
|
0002-Revert-close-stdin-before-running-install-scripts.patch
|
2016-03-12 03:16:56 +00:00
|
|
|
0003-Revert-alpm_run_chroot-always-connect-parent2child-p.patch
|
2009-11-16 19:07:36 +00:00
|
|
|
pacman.conf
|
2015-02-23 12:28:56 +00:00
|
|
|
makepkg.conf)
|
2018-05-29 00:53:59 +00:00
|
|
|
sha256sums=('9f5993fc8923530713742f15df284677f297b3eca15ed7a24758c98ac7399bd3'
|
2017-06-16 01:07:31 +00:00
|
|
|
'SKIP'
|
2018-06-01 23:07:13 +00:00
|
|
|
'9b2304141582a421e812c76760a74f360a3cbd780472cbb60cf023a34d6fcb3d'
|
|
|
|
'2a31d4db5f6e19e0148d4892de14317514f2b2dfb5369c7972a641ca8be89e5a'
|
2018-05-29 00:53:59 +00:00
|
|
|
'8d70fb5094f58aad98b601bbc42be354c2014b9fe734a1ee0b1e14bb041cc9cc'
|
|
|
|
'0e771370da68c855bfb4eaad4c2ae137883a474886a049b934dac2e775574cb9'
|
|
|
|
'2f586f72c34150330389854575a21be1d3ef3637c4f94bec2e948c2717a5aecb'
|
|
|
|
'4d7b47a2d1877e1426a2a0f93a595c634135b0f37a53db937e5f712fa71a1073'
|
|
|
|
'edc48d8a6c051d50241fa727e948a06ece8890d9d9da80573f8894a3bf455d36')
|
2014-04-23 00:34:32 +00:00
|
|
|
|
|
|
|
prepare() {
|
2018-05-29 00:53:59 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
2018-06-01 23:07:13 +00:00
|
|
|
# Fix install_packages failure exit code, required by makechrootpkg
|
|
|
|
patch -Np1 -i ../0001-makepkg-Clear-ERR-trap-before-trying-to-restore-it.patch
|
|
|
|
patch -Np1 -i ../0002-makepkg-Don-t-use-parameterless-return.patch
|
2018-05-03 12:33:23 +00:00
|
|
|
|
2014-04-23 00:34:32 +00:00
|
|
|
patch -p1 -i ../0001-Sychronize-filesystem.patch
|
2016-02-01 13:19:58 +00:00
|
|
|
patch -p1 -i ../0002-Revert-close-stdin-before-running-install-scripts.patch
|
2016-03-12 03:16:56 +00:00
|
|
|
patch -p1 -i ../0003-Revert-alpm_run_chroot-always-connect-parent2child-p.patch
|
2014-04-23 00:34:32 +00:00
|
|
|
}
|
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
|
2018-05-29 00:53:59 +00:00
|
|
|
make V=1
|
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"
|
|
|
|
|
2018-05-29 00:53:59 +00:00
|
|
|
make DESTDIR="$pkgdir" 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"
|
2018-05-29 00:53:59 +00:00
|
|
|
install -m644 "$srcdir/pacman.conf" "$pkgdir/etc"
|
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
|
|
|
;;
|
2015-07-05 01:43:31 +00:00
|
|
|
aarch64)
|
|
|
|
mycarch="aarch64"
|
|
|
|
mychost="aarch64-unknown-linux-gnu"
|
|
|
|
myflags="-march=armv8-a "
|
|
|
|
;;
|
2011-05-02 02:46:30 +00:00
|
|
|
esac
|
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"
|
2017-08-13 17:19:26 +00:00
|
|
|
[[ $CARCH == "arm" ]] && sed -i 's/,-z,now//' "$pkgdir/etc/makepkg.conf"
|
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
|
2009-10-08 03:40:19 +00:00
|
|
|
}
|