archrelease: copy trunk to staging-x86_64
[arch-packages.git] / tar / trunk / PKGBUILD
blob95419786251b60cafa8867476a3a1c680030a2bc
1 # Mainainer: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
2 # Contributor: Allan McRae <allan@archlinux.org>
3 # Contributor: Andreas Radke <andyrtr@archlinux.org>
5 pkgname=tar
6 pkgver=1.34
7 pkgrel=2
8 pkgdesc='Utility used to store, backup, and transport files'
9 arch=('x86_64')
10 url='https://www.gnu.org/software/tar/'
11 license=('GPL3')
12 depends=('glibc' 'acl')
13 checkdepends=('attr')
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'
19             'SKIP'
20             'f31bbde67ab1117b07441395c99aced81d038bf0c8a89810bd751a3cc21acfbd')
22 prepare() {
23   cd $pkgname-$pkgver
24   # apply patch from the source array (should be a pacman feature)
25   local src
26   for src in "${source[@]}"; do
27     src="${src%%::*}"
28     src="${src##*/}"
29     [[ $src = *.patch ]] || continue
30     msg2 "Applying patch $src..."
31     patch -Np1 < "../$src"
32   done
33   :
36 build() {
37   cd $pkgname-$pkgver
38   ./configure --prefix=/usr --libexecdir=/usr/lib/tar
39   make
42 check() {
43   cd $pkgname-$pkgver
44   make check
47 package() {
48   cd $pkgname-$pkgver
49   make DESTDIR="$pkgdir" install
52 # vim:set ts=2 sw=2 et: