2022-11-05 02:24:21 +00:00
|
|
|
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
|
|
|
|
# Maintainer: Morten Linderud <foxboron@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
|
2019-05-21 01:01:49 +00:00
|
|
|
# - patch to fix application/gzip change in file 5.37
|
2011-02-06 20:16:05 +00:00
|
|
|
|
2009-10-08 03:40:19 +00:00
|
|
|
pkgname=pacman
|
2022-11-05 02:24:21 +00:00
|
|
|
pkgver=6.0.2
|
2024-02-08 00:31:02 +00:00
|
|
|
pkgrel=9
|
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')
|
2019-03-01 03:38:38 +00:00
|
|
|
url="https://www.archlinux.org/pacman/"
|
2024-02-08 00:31:02 +00:00
|
|
|
license=('GPL-2.0-or-later')
|
2022-07-27 12:41:44 +00:00
|
|
|
depends=('bash' 'glibc' 'libarchive' 'curl' 'gpgme' 'pacman-mirrorlist'
|
|
|
|
'gettext' 'gawk' 'coreutils' 'gnupg' 'grep')
|
2021-06-01 18:57:01 +00:00
|
|
|
makedepends=('meson' 'asciidoc' 'doxygen')
|
2019-10-23 12:52:21 +00:00
|
|
|
checkdepends=('python' 'fakechroot')
|
|
|
|
optdepends=('perl-locale-gettext: translation support in makepkg-template')
|
|
|
|
provides=('libalpm.so')
|
2019-01-10 13:32:21 +00:00
|
|
|
backup=(etc/pacman.conf
|
|
|
|
etc/makepkg.conf)
|
2023-03-18 23:19:58 +00:00
|
|
|
options=('strip')
|
2017-06-16 01:07:31 +00:00
|
|
|
validpgpkeys=('6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD' # Allan McRae <allan@archlinux.org>
|
|
|
|
'B8151B117037781095514CA7BBDFFC92306B1121') # Andrew Gregory (pacman) <andrew@archlinux.org>
|
2021-06-01 18:57:01 +00:00
|
|
|
source=(https://sources.archlinux.org/other/pacman/$pkgname-$pkgver.tar.xz{,.sig}
|
2022-11-05 02:24:21 +00:00
|
|
|
pacman-always-create-directories-from-debugedit.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/efd0c24c07b86be014a4edb5a8ece021b87e3900.patch
|
|
|
|
pacman-always-create-directories-from-debugedit-fixup.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/86981383a2f4380bda26311831be94cdc743649b.patch
|
|
|
|
pacman-fix-unique-source-paths.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/478af273dfe24ded197ec54ae977ddc3719d74a0.patch
|
|
|
|
pacman-strip-include-o-files-similar-to-kernel-modules.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/de11824527ec4e2561e161ac40a5714ec943543c.patch
|
2023-09-26 23:20:59 +00:00
|
|
|
pacman-fix-compatibility-with-bash-5.2-patsub_replacement.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/0e938f188692c710be36f9dd9ea7b94381aed1b4.patch
|
|
|
|
pacman-fix-order-of-fakechroot-fakeroot-nesting.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/05f283b5ad8f5b8f995076e93a27c8772076f872.patch
|
2024-02-08 00:31:02 +00:00
|
|
|
pacman-change-default-checksum-from-md5-to-sha256.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/aa3a1bc3b50d797fb75278f79a83cd7dde50c66e.patch
|
|
|
|
pacman-sort-debuginfod-repro.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/843bf21e794c79c5b3bcf8a57e45ef9c62312fee.patch
|
|
|
|
pacman-split-off-strip-debug.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/7a4fff3310ba2eadd3d5428cbb92e58eb2ee853b.patch
|
|
|
|
pacman-ignore-a-files.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/00d2b1f90261bf77eaaf262d2504af016562f2ac.patch
|
|
|
|
pacman-early-err-git.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/3aa096a74f717d31650e0eb3cf34e9a5ebadc313.patch
|
|
|
|
pacman-fix-gnupg-binary-data.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/86ec26b2d33372a4b3bda48f22c4a9f226c3ccce.patch
|
|
|
|
pacman-fix-gnupg-newsig-check.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/16a064701a30d7e1175e1185cc6da44238302fab.patch
|
|
|
|
pacman-check-pipes-gnupg.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/f8c2e59ec57c86827b1f1b1c2f6760dc3e59fe40.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
|
2021-06-01 18:57:01 +00:00
|
|
|
makepkg.conf)
|
2022-11-05 02:24:21 +00:00
|
|
|
sha256sums=('7d8e3e8c5121aec0965df71f59bedf46052c6cf14f96365c4411ec3de0a4c1a5'
|
2017-06-16 01:07:31 +00:00
|
|
|
'SKIP'
|
2023-03-18 23:19:58 +00:00
|
|
|
'6fed94326b9ecfbb438ab17a4576b5e9d52ecc0f4574f29d46adfde3886dee03'
|
|
|
|
'd2bc104788290e3de829a232590b66ad745cf5b4762a01acc1191ebf70fef114'
|
|
|
|
'f3d4f39ef24e312f610cbb3439fb02bc6b8829e37bcf1a50ae50cd0a69bde5d0'
|
|
|
|
'd87d0c9957c613fda272553bee58140349d151ae399f346ddaf6d75ee5916312'
|
2023-09-26 23:20:59 +00:00
|
|
|
'8641d514ef4cae9e4d1867aadf4b9c850a9e8dc9792c6c559f9d2a0e1713a5a1'
|
|
|
|
'b11f62d4bd9557e9d3e7456bc95f63e9eabab5ecee1368f4a14a84bc94b1c8d1'
|
2024-02-08 00:31:02 +00:00
|
|
|
'cf749ad981e8f3dedd89c05a5e69a9c91d1e58ef9407e8f8e04ba9c183939623'
|
|
|
|
'17e7af22533984924aaf1cf36c74aa26b46b04ad140cd76b65521be906bd3ff7'
|
|
|
|
'94d1f3575d0c3faf8bf11fee8e5ef36c8b339ebfd24868931903ba179ffecf4e'
|
|
|
|
'96efb79a96abf8cdcecb9f8dc461552549cf46159f44bb4160eb073e1ea5000a'
|
|
|
|
'0ac6a34e6fc126a243a642e509f459f6cde20af213ab949791a5cc325cf031f9'
|
|
|
|
'6e81b34e6a5f312d48ce3aaca0f02ddd10b7a43325cb32acf7666b6b7ac41552'
|
|
|
|
'250598a27a3077ec1dfe97a30af8bb0daf449d3ab456ed6a0c7a5bea0eb58f51'
|
|
|
|
'94c273f07e4e28125b6002567c62e1f6c65f543597de6a8bd79e8c5bf6e4a125'
|
2022-11-05 02:24:21 +00:00
|
|
|
'ba91c92fbae492be13df12dd34e22b00e1a63c706fdd328e8d9a907c5d517e71'
|
|
|
|
'bb8d53dd1136c314aacbc275f36936112d04ec6c0ebc882eefe6e46bd86e6db5'
|
|
|
|
'11b3ed535d0cb981ce5927ed9b308615e4f6b6a8e2aef6e2e15a59df956bfdab'
|
2023-06-03 18:00:12 +00:00
|
|
|
'6456e1ad704565d1e401b2b94fcfd1c75be290aa92ac9437343625209e7793ab'
|
2024-02-08 00:31:02 +00:00
|
|
|
'963936676b07ba2fe5a0af00d0b3c49b2d1f0575f902534efbb94c4a45d77cfd')
|
2014-04-23 00:34:32 +00:00
|
|
|
|
|
|
|
prepare() {
|
2018-05-29 00:53:59 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
2022-11-05 02:24:21 +00:00
|
|
|
# we backport way too often in pacman
|
|
|
|
# lets at least make it more convenient
|
|
|
|
local src
|
|
|
|
for src in "${source[@]}"; do
|
|
|
|
src="${src%%::*}"
|
|
|
|
src="${src##*/}"
|
|
|
|
[[ $src = *.patch ]] || continue
|
|
|
|
msg2 "Applying patch $src..."
|
|
|
|
patch -Np1 < "../$src"
|
|
|
|
done
|
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
|
|
|
|
2021-06-01 18:57:01 +00:00
|
|
|
meson --prefix=/usr \
|
|
|
|
--buildtype=plain \
|
|
|
|
-Ddoc=enabled \
|
|
|
|
-Ddoxygen=enabled \
|
|
|
|
-Dscriptlet-shell=/usr/bin/bash \
|
|
|
|
-Dldconfig=/usr/bin/ldconfig \
|
|
|
|
build
|
|
|
|
|
|
|
|
meson compile -C build
|
2009-12-07 20:25:36 +00:00
|
|
|
}
|
|
|
|
|
2012-02-14 14:35:38 +00:00
|
|
|
check() {
|
2021-06-01 18:57:01 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
|
|
|
meson test -C build
|
2012-02-14 14:35:38 +00:00
|
|
|
}
|
|
|
|
|
2009-12-07 20:25:36 +00:00
|
|
|
package() {
|
2014-05-09 01:55:26 +00:00
|
|
|
cd "$pkgname-$pkgver"
|
|
|
|
|
2021-06-01 18:57:01 +00:00
|
|
|
DESTDIR="$pkgdir" meson install -C build
|
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-06-22 00:48:50 +00:00
|
|
|
armv7h)
|
|
|
|
mycarch="armv7h"
|
2012-07-08 17:41:39 +00:00
|
|
|
mychost="armv7l-unknown-linux-gnueabihf"
|
2022-02-07 03:10:09 +00:00
|
|
|
myflags="-march=armv7-a -mfloat-abi=hard -mfpu=neon "
|
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"
|
2024-02-08 00:31:02 +00:00
|
|
|
|
|
|
|
local wantsdir="$pkgdir/usr/lib/systemd/system/sockets.target.wants"
|
|
|
|
install -dm755 "$wantsdir"
|
|
|
|
|
|
|
|
local unit
|
|
|
|
for unit in dirmngr gpg-agent gpg-agent-{browser,extra,ssh} keyboxd; do
|
|
|
|
ln -s "../${unit}@.socket" "$wantsdir/${unit}@etc-pacman.d-gnupg.socket"
|
|
|
|
done
|
2009-10-08 03:40:19 +00:00
|
|
|
}
|
2023-09-26 23:20:59 +00:00
|
|
|
|
|
|
|
# vim: set ts=2 sw=2 et:
|