Date: Thursday, November 12, 2020 @ 17:33:22 Author: felixonmars Revision: 752656
archrelease: copy trunk to community-staging-x86_64 Added: python-lhafile/repos/community-staging-x86_64/ python-lhafile/repos/community-staging-x86_64/PKGBUILD (from rev 752654, python-lhafile/trunk/PKGBUILD) ----------+ PKGBUILD | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) Copied: python-lhafile/repos/community-staging-x86_64/PKGBUILD (from rev 752654, python-lhafile/trunk/PKGBUILD) =================================================================== --- community-staging-x86_64/PKGBUILD (rev 0) +++ community-staging-x86_64/PKGBUILD 2020-11-12 17:33:22 UTC (rev 752656) @@ -0,0 +1,33 @@ +# Maintainer : Daniel Bermond <dberm...@archlinux.org> +# Contributor: grimi + +pkgname=python-lhafile +pkgver=0.2.2 +pkgrel=4 +pkgdesc='LHA archive support for Python' +arch=('x86_64') +url='https://fengestad.no/python-lhafile/' +license=('BSD') +depends=('python') +source=("${pkgname}-${pkgver}.tar.gz::https://github.com/FrodeSolheim/${pkgname}/archive/v${pkgver}.tar.gz" + '010-python-lhafile-fix-version.patch'::'https://github.com/FrodeSolheim/python-lhafile/commit/f1e8a9dc7b80eaf1e06eff242fb1bbae5d722ad9.patch') +sha256sums=('18396276b77d8c7e094f169d3b2471e60de3d412a2454a0f73c452a54817ee68' + '39b63fdbc51b72989175faeeb26a44aaca93612e7847b596bcb4af34d9d348c9') + +prepare() { + patch -d "${pkgname}-${pkgver}" -Np1 -i "${srcdir}/010-python-lhafile-fix-version.patch" +} + +build() { + cd "${pkgname}-${pkgver}" + + python setup.py build +} + +package() { + cd "${pkgname}-${pkgver}" + + python setup.py install --root="$pkgdir" --skip-build --optimize='1' + + install -D -m644 COPYING.txt "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE" +}