Date: Monday, November 10, 2014 @ 18:51:30 Author: anatolik Revision: 225883
archrelease: copy trunk to testing-any Added: python-pyelftools/repos/testing-any/ python-pyelftools/repos/testing-any/PKGBUILD (from rev 225882, python-pyelftools/trunk/PKGBUILD) ----------+ PKGBUILD | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) Copied: python-pyelftools/repos/testing-any/PKGBUILD (from rev 225882, python-pyelftools/trunk/PKGBUILD) =================================================================== --- testing-any/PKGBUILD (rev 0) +++ testing-any/PKGBUILD 2014-11-10 17:51:30 UTC (rev 225883) @@ -0,0 +1,31 @@ +# $Id$ +# Maintainer : Rémy Oudompheng <r...@archlinux.org> + +pkgname=python-pyelftools +_pypiname=pyelftools +pkgver=0.23 +pkgrel=1 +pkgdesc="Python library for analyzing ELF files and DWARF debugging information" +arch=('any') +url="https://github.com/eliben/pyelftools" +license=('custom') +depends=('python') +source=("https://github.com/eliben/pyelftools/archive/v${pkgver}.zip") +sha1sums=('49cc8d9efb1b7b2a5ae11cf3f9757e0c469049c8') + +build() { + cd ${srcdir}/${_pypiname}-${pkgver} + python setup.py build +} + +check() { + cd ${srcdir}/${_pypiname}-${pkgver} + python test/run_all_unittests.py +} + +package() { + cd ${srcdir}/${_pypiname}-${pkgver} + python setup.py install --root=${pkgdir} + install -D -m 644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE +} +