92 lines
3.4 KiB
Bash
92 lines
3.4 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.1
|
|
pkgrel=08
|
|
pkgdesc="A library-based package manager with dependency support"
|
|
arch=('x86_64')
|
|
url="https://www.archlinux.org/pacman/"
|
|
groups=(base)
|
|
depends=('bash' 'glibc' 'libarchive' 'curl'
|
|
'gpgme' 'pacman-mirrorlist' 'archlinux-keyring' 'obarun-keyring')
|
|
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}
|
|
add-flto-to-LDFLAGS-for-clang.patch
|
|
# sync_first_option.patch # an Obarun patch that ensures upgraded keyrings preceed
|
|
# remaining upgrades, so new packages don't get rejected
|
|
makepkg-use-ffile-prefix-map-instead-of-fdebug-prefi.patch
|
|
libmakepkg-add-extra-buildflags-only-when-buildflags.patch
|
|
make-link-time-optimization-flags-configurable.patch
|
|
pacman.conf
|
|
makepkg.conf)
|
|
|
|
prepare() {
|
|
cd "$pkgname-$pkgver"
|
|
patch -Np1 -i ../add-flto-to-LDFLAGS-for-clang.patch
|
|
# patch -Np1 -i ../sync_first_option.patch #
|
|
patch -Np1 -i ../makepkg-use-ffile-prefix-map-instead-of-fdebug-prefi.patch
|
|
patch -Np1 -i ../libmakepkg-add-extra-buildflags-only-when-buildflags.patch
|
|
patch -Np1 -i ../make-link-time-optimization-flags-configurable.patch
|
|
}
|
|
|
|
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=(0db61456e56aa49e260e891c0b025be210319e62b15521f29d3e93b00d3bf731 # pacman-6.0.1.tar.xz
|
|
34671ed2cd6715696fbd7a7675d264e21065c1145d4d94751b212d68abd5bc19 # pacman-6.0.1.tar.xz.sig
|
|
82ff91b85f4c6ceba19f9330437e2a22aabc966c2b9e2a20a53857f98a42c223 # add-flto-to-LDFLAGS-for-clang.patch
|
|
# 0ac2908abc7ee33b25e49713f1f4cc325ca32ef34dc5f1bf95ba7b00a69ca68c # sync_first_option.patch
|
|
b940e6c0c05a185dce1dbb9da0dcbebf742fca7a63f3e3308d49205afe5a6582 # makepkg-use-ffile-prefix-map-instead-of-fdebug-prefi.patch
|
|
7d0aee976c9c71fcf7c96ef1d99aa76efe47d8c1f4451842d6d159ec7deb4278 # libmakepkg-add-extra-buildflags-only-when-buildflags.patch
|
|
5b43e26a76be3ed10a69d4bfb2be48db8cce359baf46583411c7f124737ebe6a # make-link-time-optimization-flags-configurable.patch
|
|
aa2e113eba452b9d9fef85aa87333370ae2d3bb0e06df4b0776e04c3ec76d028 # pacman.conf
|
|
7e1af6a61b1b8565b5d608ba77b435e55585ad8acb7b106585458124a020c462) # makepkg.conf
|