54 lines
1.4 KiB
Bash
54 lines
1.4 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"
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=tar
|
|
pkgver=1.34
|
|
pkgrel=01
|
|
pkgdesc='Utility used to store, backup, and transport files'
|
|
arch=('x86_64')
|
|
url='https://www.gnu.org/software/tar/'
|
|
depends=('glibc' 'acl' 'attr')
|
|
options=('!emptydirs')
|
|
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 --libexecdir=/usr/lib/tar
|
|
make
|
|
}
|
|
|
|
check() {
|
|
cd $pkgname-$pkgver
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
cd $pkgname-$pkgver
|
|
make DESTDIR="$pkgdir" install
|
|
}
|
|
|
|
#---- license gpg-key sha256sums ----
|
|
|
|
license=('GPL3')
|
|
|
|
validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff
|
|
|
|
sha256sums=(63bebd26879c5e1eea4352f0d03c991f966aeb3ddeb3c7445c902568d5411d28 # tar-1.34.tar.xz
|
|
53b77556f719c93fc46c6c6c2192658475eee31e2cb4212262b70bd88cc74ad9) # tar-1.34.tar.xz.sig
|