jobcore/gzip/PKGBUILD

61 lines
1.6 KiB
Text
Raw Normal View History

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>
2022-03-20 13:19:37 +01:00
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcore/$pkgname"
2023-02-15 01:35:34 +01:00
# Website : https://pozol.eu
2022-03-20 13:19:37 +01:00
#-----------------------------------------| DESCRIPTION |---------------------------------------
pkgname=gzip
2023-08-21 01:30:15 +02:00
pkgver=1.13
pkgrel=01
2022-03-20 13:19:37 +01:00
pkgdesc='GNU compression utility'
url='https://www.gnu.org/software/gzip/'
2023-08-15 13:42:39 +02:00
depends=('glibc' 'bash' 'coreutils' 'sed' 'grep')
optdepends=('less: zless support'
'more: zmore support'
2023-08-21 01:30:15 +02:00
'diffutils: zdiff/zcmp support')
2022-03-20 13:19:37 +01:00
source=("https://ftp.gnu.org/pub/gnu/gzip/gzip-$pkgver.tar.xz"{,.sig})
prepare() {
cd $pkgname-$pkgver
# apply patch from the source array (should be a pacman feature)
local filename
for filename in "${source[@]}"; do
if [[ "$filename" =~ \.patch$ ]]; then
echo "Applying patch ${filename##*/}"
2022-03-20 13:19:37 +01:00
patch -p1 -N -i "$srcdir/${filename##*/}"
fi
done
:
}
build() {
cd $pkgname-$pkgver
./configure --prefix=/usr
make
}
check() {
cd $pkgname-$pkgver
make check
}
package() {
cd $pkgname-$pkgver
make prefix="$pkgdir/usr" install
}
2023-08-21 01:30:15 +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-08-21 01:30:15 +02:00
sha256sums=(7454eb6935db17c6655576c2e1b0fabefd38b4d0936e0f87f48cd062ce91a057 # gzip-1.13.tar.xz
aa752d6460fff2e0064857f1c6057d2dc49a28a45ad28c6b29c525851d6771f1) # gzip-1.13.tar.xz.sig
2023-02-15 01:35:34 +01:00
2023-08-21 01:30:15 +02:00
## c8b3ad1254aefa236e59e56d1fcc7d6daca205a311acc9d9cb6a2cf89c3ab8bc gzip-1.13-01-x86_64.pkg.tar.lz
2023-02-15 01:35:34 +01:00