summaryrefslogtreecommitdiff
path: root/core/tar/PKGBUILD
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-04-18 00:07:00 -0700
committerroot <root@rshg054.dnsready.net>2013-04-18 00:07:00 -0700
commit55c3b92ede6a3b9eb17f254b338931f01a3ea5c6 (patch)
tree8d01afa98e716f4c647bfb7dfcc2c3ed885fddc7 /core/tar/PKGBUILD
parent0f02baec6afdab918d86a226ee9a984482b5a534 (diff)
Thu Apr 18 00:06:59 PDT 2013
Diffstat (limited to 'core/tar/PKGBUILD')
-rw-r--r--core/tar/PKGBUILD19
1 files changed, 15 insertions, 4 deletions
diff --git a/core/tar/PKGBUILD b/core/tar/PKGBUILD
index f064f08c1..472bf0d44 100644
--- a/core/tar/PKGBUILD
+++ b/core/tar/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 142080 2011-11-04 23:36:17Z allan $
+# $Id: PKGBUILD 183049 2013-04-17 02:02:04Z allan $
# Maintainer: Allan McRae <allan@archlinux.org>
# Contributor: Andreas Radke <andyrtr@archlinux.org>
pkgname=tar
pkgver=1.26
-pkgrel=2
+pkgrel=3
pkgdesc="Utility used to store, backup, and transport files"
arch=('i686' 'x86_64')
url="http://www.gnu.org/software/tar/tar.html"
@@ -19,10 +19,16 @@ md5sums=('0ced6f20b9fa1bea588005b5ad4b52c1'
'6618d5fe7785e138c27d7d6a24e998b2'
'e97e7343f4e23724b4c48bca2f033e38')
-build() {
+prepare() {
cd ${srcdir}/$pkgname-$pkgver
- ./configure --prefix=/usr --libexecdir=/usr/lib/tar --bindir=/bin
+ # fix build failure with glibc-2.16
+ sed -i -e '/gets is a/d' gnu/stdio.in.h
+}
+
+build() {
+ cd ${srcdir}/$pkgname-$pkgver
+ ./configure --prefix=/usr --libexecdir=/usr/lib/tar
make
}
@@ -34,5 +40,10 @@ check() {
package() {
cd ${srcdir}/$pkgname-$pkgver
make DESTDIR=${pkgdir} install
+
+ # probably needed for compatibility
+ install -dm755 ${pkgdir}/bin
+ ln -s ../usr/bin/tar ${pkgdir}/bin/tar
+
install -Dm644 ${srcdir}/tar.1 ${pkgdir}/usr/share/man/man1/tar.1
}