2022-03-20 13:19:37 +01:00
|
|
|
#!/usr/bin/bash
|
|
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
2023-02-15 01:35:34 +01:00
|
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
|
|
|
|
# Website : https://pozol.eu
|
2022-03-20 13:19:37 +01:00
|
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
|
|
|
|
pkgname=diffutils
|
2023-05-27 17:43:04 +02:00
|
|
|
pkgver=3.10
|
2022-03-20 13:19:37 +01:00
|
|
|
pkgrel=01
|
|
|
|
pkgdesc='Utility programs used for creating patch files'
|
|
|
|
groups=( jobbot )
|
|
|
|
url='https://www.gnu.org/software/diffutils'
|
|
|
|
depends=('glibc' 'bash')
|
2023-05-27 17:43:04 +02:00
|
|
|
source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
}
|
|
|
|
|
2023-05-27 17:43:04 +02:00
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
|
|
|
|
arch=(x86_64)
|
2022-03-20 13:19:37 +01:00
|
|
|
|
|
|
|
license=('GPL3')
|
|
|
|
|
|
|
|
validpgpkeys=('155D3FC500C834486D1EEA677FD9FCCB000BEEEE') # Jim Meyering
|
|
|
|
|
2023-05-27 17:43:04 +02:00
|
|
|
sha256sums=(90e5e93cc724e4ebe12ede80df1634063c7a855692685919bfe60b556c9bd09e # diffutils-3.10.tar.xz
|
|
|
|
a94faf8f1baa04ff220f7b2ccb137c16337284e023ebc4a1d5df475c08d810f7) # diffutils-3.10.tar.xz.sig
|
|
|
|
|
2023-02-15 01:35:34 +01:00
|
|
|
|
2023-05-27 17:43:04 +02:00
|
|
|
## bbf965200f1b1ac26e8353f0962d5a757b6ecbe13b497c50161ead49c89f1888 diffutils-3.10-01-x86_64.pkg.tar.lz
|
2023-02-15 01:35:34 +01:00
|
|
|
|