1 # Mainainer: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: Andreas Radke <andyrtr@archlinux.org>
8 pkgdesc='Utility used to store, backup, and transport files'
10 url='https://www.gnu.org/software/tar/'
12 depends=('glibc' 'acl')
14 options=('!emptydirs')
15 validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff
16 source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig}
17 '01-fix-cve-2022-48303.patch')
18 sha256sums=('63bebd26879c5e1eea4352f0d03c991f966aeb3ddeb3c7445c902568d5411d28'
20 'f31bbde67ab1117b07441395c99aced81d038bf0c8a89810bd751a3cc21acfbd')
24 # apply patch from the source array (should be a pacman feature)
26 for src in "${source[@]}"; do
29 [[ $src = *.patch ]] || continue
30 msg2 "Applying patch $src..."
31 patch -Np1 < "../$src"
38 ./configure --prefix=/usr --libexecdir=/usr/lib/tar
49 make DESTDIR="$pkgdir" install
52 # vim:set ts=2 sw=2 et: