diff options
Diffstat (limited to 'core/tar/PKGBUILD')
-rw-r--r-- | core/tar/PKGBUILD | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/core/tar/PKGBUILD b/core/tar/PKGBUILD index 17ae0414c..240c5e292 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.1 +pkgrel=3 pkgdesc="Utility used to store, backup, and transport files" arch=('i686' 'x86_64' 'mips64el') url="http://www.gnu.org/software/tar/tar.html" @@ -21,11 +21,16 @@ md5sums=('0ced6f20b9fa1bea588005b5ad4b52c1' 'e97e7343f4e23724b4c48bca2f033e38' '4408365a66887d65f4c8d1f416fb9d9f') -build() { +prepare() { cd ${srcdir}/$pkgname-$pkgver - patch -p1 -i "$srcdir/gnulib-no-gets.patch" - ./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 } @@ -37,5 +42,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 } |