Date: Wednesday, February 21, 2018 @ 19:34:34 Author: anthraxx Revision: 296722
archrelease: copy trunk to community-any Added: python-filebytes/repos/community-any/PKGBUILD (from rev 296721, python-filebytes/trunk/PKGBUILD) Deleted: python-filebytes/repos/community-any/PKGBUILD ----------+ PKGBUILD | 84 ++++++++++++++++++++++++++++++++++--------------------------- 1 file changed, 47 insertions(+), 37 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-02-21 19:34:26 UTC (rev 296721) +++ PKGBUILD 2018-02-21 19:34:34 UTC (rev 296722) @@ -1,37 +0,0 @@ -# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> - -pkgbase=python-filebytes -pkgname=('python-filebytes' 'python2-filebytes') -_pyname=${pkgbase/python-/} -pkgver=0.9.13 -pkgrel=1 -pkgdesc='Library to read and edit executable binary files' -url='https://github.com/sashs/filebytes' -arch=('any') -license=('GPL2') -makedepends=('python' 'python2' 'python-setuptools' 'python2-setuptools') -source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/sashs/filebytes/archive/v${pkgver}.tar.gz) -sha512sums=('e6c8fe3647fc7a600ffc26883bc90724b5cfe18c8c5603d7a184e73e5fee3ae27ab01e793ef1ddbd8a69fe294bbc33cb5b3314d815d8f498f57876f83566de16') - -prepare() { - cp -ra ${_pyname}-${pkgver}{,-py2} - sed -r 's|env python$|env python2|' -i ${_pyname}-${pkgver}-py2/samples/* -} - -package_python-filebytes() { - depends=('python') - cd ${_pyname}-${pkgver} - python setup.py install -O1 --root="${pkgdir}" --prefix=/usr - install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" - install -Dm 644 samples/* -t "${pkgdir}/usr/share/doc/${pkgname}/samples" -} - -package_python2-filebytes() { - depends=('python2') - cd ${_pyname}-${pkgver}-py2 - python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr - install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" - install -Dm 644 samples/* -t "${pkgdir}/usr/share/doc/${pkgname}/samples" -} - -# vim: ts=2 sw=2 et: Copied: python-filebytes/repos/community-any/PKGBUILD (from rev 296721, python-filebytes/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-02-21 19:34:34 UTC (rev 296722) @@ -0,0 +1,47 @@ +# Maintainer: Levente Polyak <anthraxx[at]archlinux[dot]org> + +pkgbase=python-filebytes +pkgname=('python-filebytes' 'python2-filebytes') +_pyname=${pkgbase/python-/} +pkgver=0.9.14 +pkgrel=1 +pkgdesc='Library to read and edit executable binary files' +url='https://github.com/sashs/filebytes' +arch=('any') +license=('GPL2') +makedepends=('python' 'python-setuptools' + 'python2' 'python2-setuptools') +source=(${pkgbase}-${pkgver}.tar.gz::https://github.com/sashs/filebytes/archive/v${pkgver}.tar.gz) +sha512sums=('3867e7da75ccf4c01df4a7af6f05bd39c46da165c6680c501345e1d637b462d9b9014e3b750e56332e54614f257c819c6f1147f4630419d6b1ac9fa2606e73d3') + +prepare() { + cp -ra ${_pyname}-${pkgver}{,-py2} + sed -r 's|env python$|env python2|' -i ${_pyname}-${pkgver}-py2/samples/* +} + +build() { + (cd ${_pyname}-${pkgver} + python setup.py build + ) + (cd ${_pyname}-${pkgver}-py2 + python2 setup.py build + ) +} + +package_python-filebytes() { + depends=('python') + cd ${_pyname}-${pkgver} + python setup.py install -O1 --root="${pkgdir}" --prefix=/usr --skip-build + install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 samples/* -t "${pkgdir}/usr/share/doc/${pkgname}/samples" +} + +package_python2-filebytes() { + depends=('python2') + cd ${_pyname}-${pkgver}-py2 + python2 setup.py install -O1 --root="${pkgdir}" --prefix=/usr --skip-build + install -Dm 644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" + install -Dm 644 samples/* -t "${pkgdir}/usr/share/doc/${pkgname}/samples" +} + +# vim: ts=2 sw=2 et: