From fe0e35e6c8b7f055126c9abdcac9380c6a3b2a93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Wed, 27 May 2020 11:16:59 +0200 Subject: [PATCH] deheader: work around broken release tarball --- srcpkgs/deheader/template | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/srcpkgs/deheader/template b/srcpkgs/deheader/template index 509b9ac5f8..f3809a35a4 100644 --- a/srcpkgs/deheader/template +++ b/srcpkgs/deheader/template @@ -2,7 +2,9 @@ pkgname=deheader version=1.6 revision=3 +create_wrksrc=yes archs=noarch +hostmakedepends="tar" depends="python" short_desc="C and C++ header analyzer" maintainer="Orphaned " @@ -10,6 +12,16 @@ license="BSD-2-Clause" homepage="http://www.catb.org/~esr/deheader/" distfiles="http://www.catb.org/~esr/deheader/${pkgname}-${version}.tar.gz" checksum=3b99665c4f0dfda31d200bf2528540d6898cb846499ee91effa2e8f72aff3a60 +skip_extraction="${pkgname}-${version}.tar.gz" +python_version=2 + +do_extract() { + # bsdtar fails to extract version 1.6 tarball which + # contains a hard link from the man page to itself. + tar --strip-components 1 --no-same-owner --extract --file \ + ${XBPS_SRCDISTDIR}/${pkgname}-${version}/${pkgname}-${version}.tar.gz \ + --directory ${wrksrc} +} do_install() { vbin deheader