# Maintainer: Mike Javorski # Contributor: Jan Dolinar # Contributor: Andre Klitzing pkgname=dput pkgver=1.1.3 pkgrel=1 pkgdesc="Debian package upload tool" arch=('any') url="http://packages.qa.debian.org/dput" license=('GPL') makedepends=('python-setuptools') depends=('python' 'python-debian' 'python-gpgme' 'python-pyxdg') source=( http://http.debian.net/debian/pool/main/d/${pkgname}/${pkgname}_${pkgver}.tar.xz pyxdg-compatibility.patch ) sha256sums=('ef92187cc843b9703b4fb94b5c06a31399ff714ba7ebbcc637358757613fede2' 'a6d350af5eba4cf5b5d3cd9e784a77f0a7b3b5fcdacd304245713c1a85540abf') prepare() { cd "$pkgname-$pkgver" patch -p1 -i "$srcdir/pyxdg-compatibility.patch" } build() { cd "$pkgname-$pkgver" python setup.py build } package() { cd "$pkgname-$pkgver" python setup.py install --root="$pkgdir/" --optimize=1 --skip-build mv ${pkgdir}/usr/bin/{execute-,}dput mv ${pkgdir}/usr/bin/{execute-,}dcut install -d "${pkgdir}/etc/" install -m644 dput.cf "${pkgdir}/etc/" # completion install -d "${pkgdir}/usr/share/bash-completion/completions/" for bc in dput dcut; do install -m644 bash-completion/${bc}.bash "${pkgdir}/usr/share/bash-completion/completions/$bc" done # docs install -d "${pkgdir}/usr/share/doc/${pkgname}" install -m644 README TODO doc/FAQ doc/THANKS "${pkgdir}/usr/share/doc/${pkgname}" # man pages cd doc/man for file in $(find . -name '*.1' -print); do install -Dm644 $file "${pkgdir}"/usr/share/man/man1/$file done for file in $(find . -name '*.5' -print); do install -Dm644 $file "${pkgdir}"/usr/share/man/man5/$file done }