tar-1.32.recipe revision 8816fe80
1SUMMARY="Saves and restores files to/from a tape or disk archive"
2DESCRIPTION="The Tar program provides the ability to create tar archives, as \
3well as various other kinds of manipulation. For example, you can use Tar on \
4previously created archives to extract files, to store additional files, or \
5to update or list files which were already stored.
6
7Initially, tar archives were used to store files conveniently on magnetic \
8tape. The name \"Tar\" comes from this use; it stands for tape archiver. Despite \
9the utility's name, Tar can direct its output to available devices, files, or \
10other programs (using pipes), it can even access remote devices or files (as \
11archives)."
12HOMEPAGE="https://www.gnu.org/software/tar/"
13COPYRIGHT="1990-2018 Free Software Foundation, Inc."
14LICENSE="GNU GPL v3"
15REVISION="1"
16SOURCE_URI="https://ftpmirror.gnu.org/tar/tar-$portVersion.tar.bz2
17	https://ftp.gnu.org/gnu/tar/tar-$portVersion.tar.bz2"
18CHECKSUM_SHA256="e4bb9e08e12e7fa9f11fef544efc85e59ba34538593d9ad38148c7ca2bfbb566"
19if [ "$effectiveTargetArchitecture" = x86_gcc2 ]; then
20PATCHES="tar-$portVersion-gcc2.patchset"
21fi
22
23ARCHITECTURES="x86_gcc2 x86 x86_64 arm"
24
25PROVIDES="
26	tar = $portVersion compat >= 1
27	cmd:tar = $portVersion compat >= 1
28	"
29REQUIRES="
30	haiku
31	"
32
33BUILD_REQUIRES="
34	haiku_devel
35	"
36BUILD_PREREQUIRES="
37	cmd:automake
38	cmd:autoreconf
39	cmd:gcc
40	cmd:ld
41	cmd:make
42	cmd:sed
43	"
44
45TEST_REQUIRES="
46	cmd:bzip2
47	cmd:compress
48	cmd:find
49	cmd:gzip
50	"
51if [ "$effectiveTargetArchitecture" != x86_gcc2 ]; then
52TEST_REQUIRES+="
53	cmd:lzip
54	cmd:lzma
55	cmd:xz
56	"
57fi
58
59defineDebugInfoPackage tar $binDir/tar
60
61BUILD()
62{
63	runConfigure ./configure \
64		--disable-nls \
65		--disable-gcc-warnings \
66		LDFLAGS="-lnetwork" CFLAGS="-D_BSD_SOURCE" \
67		FORCE_UNSAFE_CONFIGURE=1
68	make $jobArgs
69}
70
71INSTALL()
72{
73	make install
74}
75
76TEST()
77{
78	make check
79}
80