summaryrefslogtreecommitdiffstats
path: root/gtar/Pkgfile
blob: c97f9aaa376f8b77b99c5cf9191dbee8aa6fc32a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
description="GNU tar."
packager="CRUX System Team <core-ports AT crux DOT nu>"
maintainer="Lukc <lukc AT upyum DOT com>"
url="http://www.gnu.org/software/tar/tar.html"
depends=()

name=gtar
version=1.25
release=1
source=(http://ftp.gnu.org/gnu/tar/tar-$version.tar.xz tar-rootp.patch gtar.1 rmt.8)
build () 
{ 
	cd tar-$version;
	patch -p1 -i $SRC/tar-rootp.patch;
	./configure \
		--prefix= \
		--libexec=$libexecdir/gtar \
		--program-prefix=g \
		$(use_enable nls) \
		FORCE_UNSAFE_CONFIGURE=1;
	make;
	make DESTDIR=$PKG install;
	rm -rf $PKG/sbin;
	mv $PKG/{share,usr/share};
	install -D -m 644 $SRC/gtar.1 $PKG$mandir/man1/gtar.1;
	install -D -m 644 $SRC/rmt.8 $PKG$mandir/man8/rmt.8
}