Commit | Line | Data |
---|---|---|
6dca1d21 JB |
1 | # Description: GNU tar |
2 | # URL: http://www.gnu.org/software/tar/tar.html | |
3 | # Maintainer: CRUX System Team, core-ports at crux dot nu | |
b751b192 | 4 | # Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu |
1c4d5d09 | 5 | # Depends on: |
6dca1d21 JB |
6 | |
7 | name=tar | |
8d133ee5 | 8 | version=1.26 |
c8e2f7b5 | 9 | release=2 |
8d133ee5 | 10 | source=(http://ftp.gnu.org/gnu/$name/$name-$version.tar.xz \ |
6dca1d21 JB |
11 | $name-rootp.patch tar.1 rmt.8) |
12 | ||
13 | build() { | |
1c4d5d09 | 14 | cd $name-$version |
c8e2f7b5 VM |
15 | |
16 | # fix for glibc 'gets' removal | |
17 | sed -i -e '/gets is a/d' gnu/stdio.in.h | |
1c4d5d09 JB |
18 | patch -p1 -i $SRC/$name-rootp.patch |
19 | ||
20 | ./configure --build=$CHOST \ | |
21 | --host=$CTARGET \ | |
22 | --prefix= \ | |
23 | --libexec=/usr/lib/tar \ | |
90858e88 VM |
24 | --disable-nls \ |
25 | FORCE_UNSAFE_CONFIGURE=1 | |
26 | ||
1c4d5d09 JB |
27 | make |
28 | make DESTDIR=$PKG install | |
29 | ||
30 | rm -rf $PKG/{sbin,share} | |
31 | install -D -m 644 $SRC/tar.1 $PKG/usr/man/man1/tar.1 | |
32 | install -D -m 644 $SRC/rmt.8 $PKG/usr/man/man8/rmt.8 | |
6dca1d21 | 33 | } |