void-packages/srcpkgs/deheader/template

30 lines
845 B
Bash

# Template file for 'deheader'
pkgname=deheader
version=1.6
revision=4
create_wrksrc=yes
hostmakedepends="tar"
depends="python"
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}
}
do_install() {
vbin deheader
vman deheader.1
vlicense COPYING
}