deheader: update to 1.7

Change from python2 to python3
This commit is contained in:
Nathan Owens 2020-11-23 10:58:13 -06:00 committed by Andrew J. Hesford
parent 8f073ac02a
commit 8aac67972b

View file

@ -1,26 +1,15 @@
# Template file for 'deheader'
pkgname=deheader
version=1.6
revision=4
create_wrksrc=yes
hostmakedepends="tar"
depends="python"
version=1.7
revision=1
depends="python3"
short_desc="C and C++ header analyzer"
maintainer="Orphaned <orphan@voidlinux.org>"
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}
}
checksum=6856e4fa3efa664a0444b81c2e1f0209103be3b058455625c79abe65cf8db70d
python_version=3
do_install() {
vbin deheader