[arch-commits] Commit in python-lhafile/repos (2 files)

Felix Yan felixonmars at archlinux.org
Mon Nov 4 08:13:30 UTC 2019


    Date: Monday, November 4, 2019 @ 08:13:29
  Author: felixonmars
Revision: 523633

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 523630, python-lhafile/trunk/PKGBUILD)

----------+
 PKGBUILD |   33 +++++++++++++++++++++++++++++++++
 1 file changed, 33 insertions(+)

Copied: python-lhafile/repos/community-staging-x86_64/PKGBUILD (from rev 523630, python-lhafile/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2019-11-04 08:13:29 UTC (rev 523633)
@@ -0,0 +1,33 @@
+# Maintainer : Daniel Bermond <dbermond at archlinux.org>
+# Contributor: grimi
+
+pkgname=python-lhafile
+pkgver=0.2.2
+pkgrel=3
+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"
+}



More information about the arch-commits mailing list