62 lines
1.9 KiB
Bash
62 lines
1.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/jobextra/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=pacman-contrib
|
|
pkgver=1.4.0
|
|
pkgrel=05
|
|
pkgdesc="Contributed scripts and tools for pacman systems w/o systemd"
|
|
url="https://gitlab.archlinux.org/pacman/pacman-contrib"
|
|
arch=('x86_64')
|
|
groups=( jobbot )
|
|
depends=('fakeroot' 'pacman' 'perl')
|
|
makedepends=('asciidoc')
|
|
optdepends=('diffutils: for pacdiff'
|
|
'findutils: for pacdiff --find'
|
|
'mlocate: for pacdiff --locate'
|
|
'sudo: privilege elevation for several scripts'
|
|
'vim: default merge program for pacdiff')
|
|
source=("$url/-/archive/v$pkgver/$pkgname-v$pkgver.tar.gz"
|
|
'0001-pactree-fix-compilation-with-pacman-6.patch')
|
|
|
|
prepare() {
|
|
cd pacman-contrib-v$pkgver
|
|
patch --forward --strip=1 --input=../0001-pactree-fix-compilation-with-pacman-6.patch
|
|
./autogen.sh
|
|
}
|
|
|
|
build() {
|
|
cd pacman-contrib-v$pkgver
|
|
|
|
./configure \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--localstatedir=/var
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make -C pacman-contrib-v$pkgver check
|
|
}
|
|
|
|
package() {
|
|
cd pacman-contrib-v$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
rm -rf $pkgdir/usr/lib
|
|
# rm -rf $pkgdir/usr/lib/systemd
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('GPL')
|
|
|
|
validpgpkeys=('5134EF9EAF65F95B6BB1608E50FB9B273A9D0BB5' # Johannes Löthberg <johannes@kyriasis.com>
|
|
'04DC3FB1445FECA813C27EFAEA4F7B321A906AD9') # Daniel M. Capella <polyzen@archlinux.org>
|
|
|
|
sha256sums=(c97b2889ab012feaa1882865af9cfeb2406c9045757d2e73b5903277472ce6a2 # pacman-contrib-v1.4.0.tar.gz
|
|
774d27532a91e2fe490ccc8d21c2d1d4d2a2dbfc8678a8406abb8bb8f9e6626c) # 0001-pactree-fix-compilation-with-pacman-6.patch
|
|
|