void-packages/srcpkgs/tar/template
Juan RP 7b663b891b
tar, bsdtar: use alternatives for usr/bin/tar.
GNU tar is now called gtar.

This will avoid the need to modify more templates
due to GNU vs BSD tar.
2020-01-30 13:24:55 +01:00

22 lines
682 B
Bash

# Template file for 'tar'
pkgname=tar
version=1.32
revision=2
build_style=gnu-configure
configure_args="--program-prefix=g gl_cv_struct_dirent_d_ino=yes"
makedepends="acl-devel"
short_desc="GNU tape archiver with remote magnetic tape support"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="GPL-3.0-or-later"
homepage="https://www.gnu.org/software/tar/"
distfiles="${GNU_SITE}/tar/${pkgname}-${version}.tar.xz"
checksum=d0d3ae07f103323be809bc3eac0dcc386d52c5262499fe05511ac4788af1fdd8
alternatives="tar:tar:/usr/bin/gtar"
pre_configure() {
# chroot-style=ethereal
export FORCE_UNSAFE_CONFIGURE=1
# avoid regenerating doc on install
touch -r doc/stamp-vti configure
}