jobcore/pacman/PKGBUILD

101 lines
3.9 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=pacman
pkgver=6.0.2
pkgrel=07
pkgdesc="A library-based package manager with dependency support"
arch=('x86_64')
url="https://www.archlinux.org/pacman/"
groups=(base jobbot)
depends=('bash' 'glibc' 'libarchive' 'curl' 'archlinux-keyring'
'obarun-keyring' 'joborun-keyring' 'lzip')
# NOTE: Joborun linux is switching default pkg compression to lzip at level -5
# which matches current xz compression ratio but at a fraction of RAM use
# and relatively even speed. So lzip becomes a standard system dependency
# as it will also be used by pacman during installation. Gradually all
# pkgs will be publicized as *.pkg.tar.lz For now there will be mixed.
makedepends=('meson' 'asciidoc' 'doxygen' 'cmake' 'bash-completion')
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')
options=(strip)
source=(https://sources.archlinux.org/other/pacman/$pkgname-$pkgver.tar.xz{,.sig}
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
pacman.conf
makepkg.conf)
prepare() {
cd "${pkgname}-${pkgver}"
# 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
}
build() {
cd "$pkgname-$pkgver"
meson --prefix=/usr \
--buildtype=plain \
-Ddoc=disabled \
-Ddoxygen=enabled \
-Dscriptlet-shell=/usr/bin/bash \
-Dldconfig=/usr/bin/ldconfig \
build
meson compile -C build
}
#check() {
# cd "$pkgname-$pkgver"
#
# meson test -C build
#}
package() {
cd "$pkgname-$pkgver"
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"
rm -rf $pkgdir/usr/share/libalpm/hooks
}
#---- license gpg-key sha256sums ----
license=('GPL')
validpgpkeys=('6645B0A8C7005E78DB1D7864F99FFE0FEAE999BD' # Allan McRae <allan@archlinux.org>
'B8151B117037781095514CA7BBDFFC92306B1121') # Andrew Gregory (pacman) <andrew@archlinux.org>
sha256sums=(7d8e3e8c5121aec0965df71f59bedf46052c6cf14f96365c4411ec3de0a4c1a5 # pacman-6.0.2.tar.xz
e3b75fafa8f177752800b31b9d59c454694647ae39b02a8009384a6821ee3be3 # pacman-6.0.2.tar.xz.sig
522b789e442b3bb3afa7ea3fa417a99554f36ec00de3986cbe92c80f09a7db99 # pacman-always-create-directories-from-debugedit.patch
dab7c70fb9d77d702069bb57f5a12496b463d68ae20460fb0a3ffcb4791321a9 # pacman-always-create-directories-from-debugedit-fixup.patch
0b56c61eac3d9425d68faa2eccbaefdc5ed422b643974ae829eaca0460043da1 # pacman-fix-unique-source-paths.patch
acd0b149b6324dc1eca3cd2d3b30df6ef64c5653e83523d77200ec593e01d2a7 # pacman-strip-include-o-files-similar-to-kernel-modules.patch
0386a0f59f52e6586d840bc04caf8580e76bc89ca0dbe4bc8a9c79f4f234ba46 # pacman.conf
dc4dbe4e86b16ac09735402ea057aa23b821d5155d804e0fbb974e396a46a35b) # makepkg.conf