summaryrefslogtreecommitdiffstats
path: root/abs/core/tar/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core/tar/PKGBUILD')
-rw-r--r--abs/core/tar/PKGBUILD52
1 files changed, 34 insertions, 18 deletions
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: