jobextra/pacutils/PKGBUILD
2024-09-15 12:58:38 +03:00

47 lines
1.3 KiB
Bash

#!/usr/bin/bash
# JOBoRun : Jwm OpenBox Obarun RUNit
# Maintainer : Joe Bo Run <joborun@disroot.org>
# PkgSource : url="https://git.disroot.org/joborun-pkg/jobextra/src/branch/main/$pkgname"
# Website : https://pozol.eu
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=pacutils
pkgver=0.14.0
pkgrel=03
# from the pacman-7.0.0 branch
_commit=20516b5e9ac8cffc88edded6f57c896cd596eba0
pkgdesc='Helper tools for libalpm'
url='https://github.com/andrewgregory/pacutils'
makedepends=(git)
#source=("git+https://github.com/andrewgregory/pacutils.git#tag=v$pkgver")
source=("git+https://github.com/andrewgregory/pacutils.git#commit=${_commit}")
build() {
cd pacutils
make CFLAGS="$CFLAGS $LDFLAGS" SYSCONFDIR=/etc LOCALSTATEDIR=/var
}
check() {
cd pacutils
make check
}
package() {
cd pacutils
depends=(glibc libarchive pacman)
make DESTDIR="$pkgdir" PREFIX=/usr install
install -Dm644 COPYING "$pkgdir"/usr/share/licenses/"$pkgname"/COPYING
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('MIT')
validpgpkeys=('0016846EDD8432261C62CB63DF3891463C352040')
sha256sums=(0b8ca94ebfa90f5108740221608709030c324fed5bdc1602007975a5bf63f956) # pacutils
## d9532d671afc0b6f22dcaee8608e29cb020ec995b3c8353cd88e4e7c132ae927 pacutils-0.14.0-03-x86_64.pkg.tar.lz