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

Felix Yan felixonmars at archlinux.org
Sat Jun 30 18:39:12 UTC 2018


    Date: Saturday, June 30, 2018 @ 18:39:12
  Author: felixonmars
Revision: 349060

archrelease: copy trunk to community-staging-x86_64

Added:
  python-unrardll/repos/community-staging-x86_64/
  python-unrardll/repos/community-staging-x86_64/PKGBUILD
    (from rev 349059, python-unrardll/trunk/PKGBUILD)

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

Copied: python-unrardll/repos/community-staging-x86_64/PKGBUILD (from rev 349059, python-unrardll/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2018-06-30 18:39:12 UTC (rev 349060)
@@ -0,0 +1,43 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+# Contributor: Eli Schwartz <eschwartz93 at gmail.com>
+
+_pkgname=unrardll
+pkgbase='python-unrardll'
+pkgname=('python-unrardll' 'python2-unrardll')
+pkgver=0.1.3
+pkgrel=4
+pkgdesc="Python wrapper for UnRAR DLL"
+arch=('x86_64')
+url="https://github.com/kovidgoyal/${_pkgname}"
+license=('BSD')
+depends=('libunrar')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://pypi.io/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz"{,.asc})
+sha256sums=('5f214ab1ec24208c6ee353f2d836e536968d5379b7140129f04aa3a52bc56a5e'
+            'SKIP')
+validpgpkeys=('3CE1780F78DD88DF45194FD706BC317B515ACE7C')
+
+build() {
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+
+  python setup.py build
+  python2 setup.py build
+}
+
+package_python-unrardll() {
+  depends+=('python')
+
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+package_python2-unrardll() {
+  depends+=('python2')
+
+  cd "${srcdir}/${_pkgname}-${pkgver}"
+  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+
+  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}



More information about the arch-commits mailing list