# Contributor :Anish Bhatt # Maintainer : Anish Bhatt # Other Contributors : trontonic for man page & license fixes. pkgname=deheader pkgver=1.6 pkgrel=1 pkgdesc='C and C++ file analyzer to determine which header enclusions can be removed while still allowing them to compile' url='http://www.catb.org/esr/deheader/' arch=('any') source=(http://www.catb.org/~esr/deheader/deheader-${pkgver}.tar.gz python3.patch python2.patch) noextract=(deheader-${pkgver}.tar.gz) md5sums=('d35e2a380d65cce47b518bae4ac2efea' '1a3f51f2ef63632866b891fff00c784f' '62edf5aa5ee0206632ea2b50c22dfeb7') #change to python2, if you don't want python3 #depends=('python2') makedepends=('tar') depends=('python') provides=('deheader') license=('BSD') prepare () { tar xf deheader-$pkgver.tar.gz } build () { pushd ${srcdir}/deheader-$pkgver # Use this if you wish to stick to python2 # patch -p0 < ../python2.patch patch -p0 < ../python3.patch } package() { install -d -m755 ${pkgdir}/usr/bin || return 1 install -m755 ${srcdir}/deheader-$pkgver/deheader ${pkgdir}/usr/bin || return 1 install -d -m755 ${pkgdir}/usr/share/man/man1 || return 1 install -m644 ${srcdir}/deheader-$pkgver/deheader.1 ${pkgdir}/usr/share/man/man1 || return 1 install -Dm644 ${srcdir}/deheader-$pkgver/COPYING "$pkgdir/usr/share/licenses/$pkgname/COPYING" || return 1 }