# Description: GNU tar
# URL: http://www.gnu.org/software/tar/tar.html
# Maintainer: CRUX System Team, core-ports at crux dot nu
-# Arch Maintainer: CRUX-ARM System
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on:
name=tar
-version=1.22
+version=1.30
release=1
-source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.bz2 \
- $name-rootp.patch tar.1 rmt.8)
+source=(http://ftpmirror.gnu.org/gnu/$name/$name-$version.tar.xz)
build() {
- cd $name-$version
- patch -p1 -i $SRC/$name-rootp.patch
- ./configure --build=$CHOST \
- --host=$CTARGET \
- --prefix= \
- --libexec=/usr/lib/tar \
- --disable-nls
- make
- make DESTDIR=$PKG install
- rm -rf $PKG/{sbin,share}
- install -D -m 644 $SRC/tar.1 $PKG/usr/man/man1/tar.1
- install -D -m 644 $SRC/rmt.8 $PKG/usr/man/man8/rmt.8
+ cd $name-$version
+
+ ./configure --build=$CHOST \
+ --host=$CTARGET \
+ --prefix= \
+ --libexec=/usr/lib/tar \
+ --mandir=/usr/share/man \
+ --disable-nls \
+ FORCE_UNSAFE_CONFIGURE=1
+
+ make
+ make DESTDIR=$PKG install
+ rm -rf $PKG/share
}