| Name |
pacman |
| Description |
A library-based package manager with dependency support |
| Version |
7.1.0.r9.g54d9411-1 |
| Package Base |
pacman |
| Homepage |
https://www.archlinux.org/pacman/ |
| Maintainers |
['Levente Polyak <anthraxx[at]archlinux[dot]org>', 'Morten Linderud <foxboron@archlinux.org>'] |
| Contributors |
[] |
| Distro-repo |
https://gitlab.archlinux.org/archlinux/packaging/packages/pacman |
| Sources |
['alpm.sysusers', 'fortran.conf', 'git+https://gitlab.archlinux.org/pacman/pacman.git#tag=v7.1.0?signed', 'makepkg.conf', 'pacman.conf', 'patch-reproducible-builds.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/f4bdb77470528019aaba4d8b8f947e918c6db17d.patch', 'revertme-makepkg-remove-libdepends-and-libprovides.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/354a300cd26bb1c7e6551473596be5ecced921de.patch', 'rust.conf'] |
| Dependencies |
['bash', 'coreutils', 'curl', 'gawk', 'gettext', 'glibc', 'gnupg', 'gpgme', 'grep', 'libarchive', 'libarchive.so', 'libcrypto.so', 'libcurl.so', 'libgpgme.so', 'libmakepkg-dropins', 'openssl', 'pacman-mirrorlist', 'systemd'] |
| Optional-Dependencies |
['base-devel', 'perl-locale-gettext'] |
| Build-Dependencies |
['asciidoc', 'doxygen', 'git', 'meson'] |
| Provides |
['libalpm.so'] |
| Builddate |
12-01-2026 21:27:06 |
| Architecture |
x86_64 |
| Distro-Version |
|
| Licenses |
['GPL-2.0-or-later'] |
| Hash |
a9e939cff97e4067822b92393018b87d2d2604b2c9bf751f2540e314d788f848 |
# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Maintainer: Morten Linderud <foxboron@archlinux.org>
pkgname=pacman
pkgver=7.1.0.r9.g54d9411
pkgrel=1
# use annotated tag and patch level commit from release branch (can be empty for no patches)
_git_tag=7.1.0
_git_patch_level_commit=54d94116164b0b2202c6061c4a59c6f3e70820d8
pkgdesc="A library-based package manager with dependency support"
arch=('x86_64')
url="https://www.archlinux.org/pacman/"
license=('GPL-2.0-or-later')
depends=(
bash
coreutils
curl libcurl.so
gawk
gettext
glibc
gnupg
gpgme libgpgme.so
grep
libarchive libarchive.so
openssl libcrypto.so
pacman-mirrorlist
systemd
libmakepkg-dropins
)
makedepends=(
asciidoc
doxygen
git
meson
)
checkdepends=(
fakechroot
python
)
optdepends=(
'base-devel: required to use makepkg'
'perl-locale-gettext: translation support in makepkg-template'
)
provides=('libalpm.so')
backup=(etc/pacman.conf
etc/makepkg.conf
etc/makepkg.conf.d/fortran.conf
etc/makepkg.conf.d/rust.conf)
validpgpkeys=('6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD' # Allan McRae <allan@archlinux.org>
'B8151B117037781095514CA7BBDFFC92306B1121') # Andrew Gregory (pacman) <andrew@archlinux.org>
source=("git+https://gitlab.archlinux.org/pacman/pacman.git#tag=v${_git_tag}?signed"
"revertme-makepkg-remove-libdepends-and-libprovides.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/354a300cd26bb1c7e6551473596be5ecced921de.patch"
"patch-reproducible-builds.patch::https://gitlab.archlinux.org/pacman/pacman/-/commit/f4bdb77470528019aaba4d8b8f947e918c6db17d.patch"
pacman.conf
makepkg.conf
alpm.sysusers
fortran.conf
rust.conf)
sha256sums=('74cfd4b6d2b10c742f5a4a7cdaeffb01405ab897b11b80681a9063245113a308'
'b3bce9d662e189e8e49013b818f255d08494a57e13fc264625f852f087d3def2'
'de428b496a825772ef49ec5555a386a4b23ffa10b9dfd9907f0671d5c1dc2178'
'd6f6ca86104df026462ab634efa1ecc850bccfa748ed5a6a88283e7659ec90c5'
'20497c90cbb678a9ca1a71eca66cf2a1d0c991c3e695f7b7d10fb68fc0ac4f12'
'9c14afbc7dabee5a563202c833a043bd3b80c4522f8943c33d550641d7d1bbf1'
'933b0b878fa611bf24b92f655040a3bcb4a1b67841d929013802abbb09b2ccf4'
'6fe03e6ea3f69d99d59a48847a8ae97c2160fca847c7aedf7b89d05e4aa9386d')
pkgver() {
cd "$pkgname"
git describe --abbrev=7 --match 'v*' | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
cd "$pkgname"
# apply patch level commits on top of annotated tag
if [[ -n ${_git_patch_level_commit} ]]; then
if [[ v${_git_tag} != $(git describe --tags --abbrev=0 "${_git_patch_level_commit}") ]] then
error "patch level commit ${_git_patch_level_commit} is not a descendant of v${_git_tag}"
exit 1
fi
git rebase "${_git_patch_level_commit}"
fi
# handle patches
local -a patches
patches=($(printf '%s\n' "${source[@]}" | grep '.patch'))
patches=("${patches[@]%%::*}")
patches=("${patches[@]##*/}")
if (( ${#patches[@]} != 0 )); then
for patch in "${patches[@]}"; do
if [[ $patch =~ revertme-* ]]; then
msg2 "Reverting patch $patch..."
patch -RNp1 < "../$patch"
else
msg2 "Applying patch $patch..."
patch -Np1 < "../$patch"
fi
done
fi
}
build() {
cd "$pkgname"
meson --prefix=/usr \
--buildtype=plain \
-Ddoc=enabled \
-Ddoxygen=enabled \
-Dscriptlet-shell=/usr/bin/bash \
-Dldconfig=/usr/bin/ldconfig \
build
meson compile -C build
}
check() {
cd "$pkgname"
meson test -C build
}
package() {
cd "$pkgname"
DESTDIR="$pkgdir" meson install -C build
# install Arch specific stuff
install -dm755 "$pkgdir/etc"
install -m644 "$srcdir/pacman.conf" "$pkgdir/etc"
install -m644 "$srcdir/makepkg.conf" "$pkgdir/etc"
install -D -m644 "$srcdir/alpm.sysusers" "${pkgdir}"/usr/lib/sysusers.d/alpm.conf
install -m644 "$srcdir/fortran.conf" "$pkgdir/etc/makepkg.conf.d"
install -m644 "$srcdir/rust.conf" "$pkgdir/etc/makepkg.conf.d"
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
}
# vim: set ts=2 sw=2 et: