[arch-commits] Commit in (4 files)

Daniel Bermond dbermond at archlinux.org
Tue Oct 1 18:51:06 UTC 2019


    Date: Tuesday, October 1, 2019 @ 18:51:06
  Author: dbermond
Revision: 512379

Initial commit of python-lhafile

Added:
  python-lhafile/
  python-lhafile/repos/
  python-lhafile/trunk/
  python-lhafile/trunk/PKGBUILD

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

Added: python-lhafile/trunk/PKGBUILD
===================================================================
--- python-lhafile/trunk/PKGBUILD	                        (rev 0)
+++ python-lhafile/trunk/PKGBUILD	2019-10-01 18:51:06 UTC (rev 512379)
@@ -0,0 +1,33 @@
+# Maintainer : Daniel Bermond <dbermond at archlinux.org>
+# Contributor: grimi
+
+pkgname=python-lhafile
+pkgver=0.2.2
+pkgrel=2
+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