2021-05-19 09:31:28 +02:00
|
|
|
# vim: set ts=2 sw=2 et:
|
2021-05-20 09:44:03 +02:00
|
|
|
# Maintainer:
|
2021-05-19 09:31:28 +02:00
|
|
|
|
|
|
|
pkgname=pacman
|
2021-05-20 09:44:03 +02:00
|
|
|
pkgver=6.0.0
|
2021-05-19 09:31:28 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="A library-based package manager with dependency support"
|
|
|
|
arch=('x86_64')
|
|
|
|
url="https://www.archlinux.org/pacman/"
|
|
|
|
license=('GPL')
|
|
|
|
groups=('base-devel')
|
|
|
|
depends=('bash' 'glibc' 'libarchive' 'curl'
|
|
|
|
'gpgme' 'pacman-mirrorlist' 'archlinux-keyring')
|
2021-05-20 09:44:03 +02:00
|
|
|
makedepends=('meson' 'asciidoc' 'doxygen')
|
2021-05-19 09:31:28 +02:00
|
|
|
checkdepends=('python' 'fakechroot')
|
|
|
|
optdepends=('perl-locale-gettext: translation support in makepkg-template')
|
|
|
|
provides=('libalpm.so')
|
|
|
|
backup=(etc/pacman.conf
|
|
|
|
etc/makepkg.conf)
|
|
|
|
options=('strip' 'debug')
|
|
|
|
validpgpkeys=('6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD' # Allan McRae <allan@archlinux.org>
|
|
|
|
'B8151B117037781095514CA7BBDFFC92306B1121') # Andrew Gregory (pacman) <andrew@archlinux.org>
|
2021-11-02 19:55:36 +01:00
|
|
|
source=(git+https://gitlab.archlinux.org/pacman/pacman.git#branch=release/6.0.x
|
2021-05-19 09:31:28 +02:00
|
|
|
pacman.conf
|
|
|
|
makepkg.conf)
|
|
|
|
sha256sums=('SKIP'
|
2021-05-20 09:44:03 +02:00
|
|
|
'4aea8b8dc81188e9f195d0ac887e3a7c85d1be6545fd675f6c160623023d85b5'
|
2021-06-06 09:44:42 +02:00
|
|
|
'172ad7a3539a2f534ef4de5f1608e78a83b5acd181795b4f59fe4eb609488a94')
|
2021-05-19 09:31:28 +02:00
|
|
|
|
|
|
|
|
2021-05-19 13:45:01 +02:00
|
|
|
pkgver() {
|
|
|
|
cd pacman
|
|
|
|
|
|
|
|
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
|
|
|
|
}
|
|
|
|
|
2021-05-19 09:31:28 +02:00
|
|
|
build() {
|
2021-05-20 09:44:03 +02:00
|
|
|
cd pacman
|
2021-05-19 09:31:28 +02:00
|
|
|
|
|
|
|
meson --prefix=/usr \
|
|
|
|
--buildtype=plain \
|
|
|
|
-Ddoc=enabled \
|
2021-05-20 09:44:03 +02:00
|
|
|
-Ddoxygen=enabled \
|
2021-05-19 09:31:28 +02:00
|
|
|
-Duse-git-version=true \
|
|
|
|
-Dscriptlet-shell=/usr/bin/bash \
|
|
|
|
-Dldconfig=/usr/bin/ldconfig \
|
2021-05-20 09:44:03 +02:00
|
|
|
build
|
|
|
|
|
|
|
|
meson compile -C build
|
2021-05-19 09:31:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
2021-05-20 09:44:03 +02:00
|
|
|
cd pacman
|
2021-05-19 09:31:28 +02:00
|
|
|
|
2021-05-20 09:44:03 +02:00
|
|
|
meson test -C build
|
2021-05-19 09:31:28 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-05-20 09:44:03 +02:00
|
|
|
cd pacman
|
2021-05-19 09:31:28 +02:00
|
|
|
|
2021-05-20 09:44:03 +02:00
|
|
|
DESTDIR="$pkgdir" meson install -C build
|
2021-05-19 09:31:28 +02:00
|
|
|
|
|
|
|
# install Arch specific stuff
|
|
|
|
install -dm755 "$pkgdir/etc"
|
|
|
|
install -m644 "$srcdir/pacman.conf" "$pkgdir/etc"
|
|
|
|
install -m644 "$srcdir/makepkg.conf" "$pkgdir/etc"
|
|
|
|
}
|