aur/pacman/PKGBUILD
2021-05-19 09:31:28 +02:00

67 lines
1.7 KiB
Bash

# vim: set ts=2 sw=2 et:
# Maintainer: Dan McGee <dan@archlinux.org>
# Maintainer: Dave Reisner <dreisner@archlinux.org>
pkgname=pacman
pkgver=6.0.0alpha1
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')
makedepends=('asciidoc' 'meson')
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>
source=(git+https://git.archlinux.org/pacman.git
pacman.conf
makepkg.conf)
sha256sums=('SKIP'
'2034931c26dff14d625fe4ed4cec9ba61579e6fc43bcd3eeea3591d99a0c08e1'
'9f2c04d2f0ce40d6ae320ef3ccf9e8f108fe3b83989b8f57f91efc539451d95f')
prepare() {
cd pacman
}
build() {
mkdir -p pacman/build
cd pacman/build
meson --prefix=/usr \
--buildtype=plain \
-Ddoc=enabled \
-Duse-git-version=true \
-Dscriptlet-shell=/usr/bin/bash \
-Dldconfig=/usr/bin/ldconfig \
..
ninja
}
check() {
cd pacman/build
ninja test
}
package() {
cd pacman/build
DESTDIR="$pkgdir" ninja install
# install Arch specific stuff
install -dm755 "$pkgdir/etc"
install -m644 "$srcdir/pacman.conf" "$pkgdir/etc"
install -m644 "$srcdir/makepkg.conf" "$pkgdir/etc"
}