From 9e20dc1d91c90a5e74f90e237f4dff4df9d0008a Mon Sep 17 00:00:00 2001
From: Britney Fransen <brfransen@gmail.com>
Date: Wed, 14 Feb 2018 15:41:34 +0000
Subject: tar: update to 1.30

---
 abs/core/tar/PKGBUILD    | 52 +++++++++++++++++++++++++++++++-----------------
 abs/core/tar/tar.install | 21 -------------------
 2 files changed, 34 insertions(+), 39 deletions(-)
 delete mode 100644 abs/core/tar/tar.install

diff --git a/abs/core/tar/PKGBUILD b/abs/core/tar/PKGBUILD
index 2fa4afb..182de16 100644
--- a/abs/core/tar/PKGBUILD
+++ b/abs/core/tar/PKGBUILD
@@ -1,35 +1,51 @@
-# $Id: PKGBUILD 199999 2013-11-21 01:21:02Z allan $
-# Maintainer: Allan McRae <allan@archlinux.org>
+# $Id$
+# Mainainer: Sébastien "Seblu" Luttringer <seblu@archlinux.org>
+# Contributor: Allan McRae <allan@archlinux.org>
 # Contributor: Andreas Radke <andyrtr@archlinux.org>
 
 pkgname=tar
-pkgver=1.27.1
+pkgver=1.30
 pkgrel=1
-pkgdesc="Utility used to store, backup, and transport files"
-arch=('i686' 'x86_64')
-url="http://www.gnu.org/software/tar/tar.html"
+pkgdesc='Utility used to store, backup, and transport files'
+arch=('x86_64')
+url='https://www.gnu.org/software/tar/'
 license=('GPL3')
 groups=('base')
-depends=('glibc' 'sh')
+depends=('glibc' 'acl' 'attr')
 options=('!emptydirs')
-install=tar.install
-source=(ftp://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz{,.sig})
+validpgpkeys=('325F650C4C2B6AD58807327A3602B07F55D0C732') # Sergey Poznyakoff
+source=("https://ftp.gnu.org/gnu/$pkgname/$pkgname-$pkgver.tar.xz"{,.sig})
+md5sums=('2d01c6cd1387be98f57a0ec4e6e35826'
+         'SKIP')
+
+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
+      msg2 "Applying patch ${filename##*/}"
+      patch -p1 -N -i "$srcdir/${filename##*/}"
+    fi
+  done
+  :
+}
 
 build() {
-  cd ${srcdir}/$pkgname-$pkgver
-export FORCE_UNSAFE_CONFIGURE=1 
+  cd $pkgname-$pkgver
+  export FORCE_UNSAFE_CONFIGURE=1
   ./configure --prefix=/usr --libexecdir=/usr/lib/tar
   make
 }
 
-3check() {
-  cd ${srcdir}/$pkgname-$pkgver
+check() {
+  cd $pkgname-$pkgver
   make check
 }
-  
+
 package() {
-  cd ${srcdir}/$pkgname-$pkgver
-  make DESTDIR=${pkgdir} install
+  cd $pkgname-$pkgver
+  make DESTDIR="$pkgdir" install
 }
-md5sums=('e0382a4064e09a4943f3adeff1435978'
-         'SKIP')
+
+# vim:set ts=2 sw=2 et:
diff --git a/abs/core/tar/tar.install b/abs/core/tar/tar.install
deleted file mode 100644
index 8de1f97..0000000
--- a/abs/core/tar/tar.install
+++ /dev/null
@@ -1,21 +0,0 @@
-infodir=usr/share/info
-filelist=(tar.info tar.info-1 tar.info-2)
-
-post_install() {
-  [ -x usr/bin/install-info ] || return 0
-  for file in ${filelist[@]}; do
-    install-info $infodir/$file.gz $infodir/dir 2> /dev/null
-  done
-}
-
-post_upgrade() {
-  post_install $1
-}
-
-pre_remove() {
-  [ -x usr/bin/install-info ] || return 0
-  for file in ${filelist[@]}; do
-    install-info --delete $infodir/$file.gz $infodir/dir 2> /dev/null
-  done
-}
-
-- 
cgit v0.12

