jobcore/diffutils/PKGBUILD
2023-05-27 18:43:04 +03:00

59 lines
1.5 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=diffutils
pkgver=3.10
pkgrel=01
pkgdesc='Utility programs used for creating patch files'
groups=( jobbot )
url='https://www.gnu.org/software/diffutils'
depends=('glibc' 'bash')
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
prepare() {
cd $pkgname-$pkgver
# apply patch from the source array (should be a pacman feature)
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
./configure --prefix=/usr
make
}
check() {
cd $pkgname-$pkgver
make check
}
package() {
cd $pkgname-$pkgver
make DESTDIR="$pkgdir" install
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=('GPL3')
validpgpkeys=('155D3FC500C834486D1EEA677FD9FCCB000BEEEE') # Jim Meyering
sha256sums=(90e5e93cc724e4ebe12ede80df1634063c7a855692685919bfe60b556c9bd09e # diffutils-3.10.tar.xz
a94faf8f1baa04ff220f7b2ccb137c16337284e023ebc4a1d5df475c08d810f7) # diffutils-3.10.tar.xz.sig
## bbf965200f1b1ac26e8353f0962d5a757b6ecbe13b497c50161ead49c89f1888 diffutils-3.10-01-x86_64.pkg.tar.lz