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

Felix Yan felixonmars at archlinux.org
Sun Dec 25 17:02:45 UTC 2016


    Date: Sunday, December 25, 2016 @ 17:02:44
  Author: felixonmars
Revision: 202009

archrelease: copy trunk to community-staging-any

Added:
  python-update-checker/repos/community-staging-any/
  python-update-checker/repos/community-staging-any/PKGBUILD
    (from rev 202008, python-update-checker/trunk/PKGBUILD)

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

Copied: python-update-checker/repos/community-staging-any/PKGBUILD (from rev 202008, python-update-checker/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2016-12-25 17:02:44 UTC (rev 202009)
@@ -0,0 +1,56 @@
+# $Id$
+# Maintainer: Felix Yan <felixonmars at gmail.com>
+
+pkgbase=python-update-checker
+pkgname=('python-update-checker' 'python2-update-checker')
+pkgver=0.15
+pkgrel=2
+pkgdesc="A python module that will check for package updates"
+arch=('any')
+license=('BSD')
+url='https://github.com/bboe/update_checker'
+makedepends=('python-setuptools' 'python2-setuptools' 'python-requests' 'python2-requests')
+source=("https://pypi.io/packages/source/u/update_checker/update_checker-$pkgver.tar.gz")
+md5sums=('702552f44d2a56acd2b22573964501b6')
+
+prepare() {
+  cp -a update_checker-$pkgver{,-py2}
+}
+
+build() {
+  cd "$srcdir"/update_checker-$pkgver
+  python setup.py build
+
+  cd "$srcdir"/update_checker-$pkgver-py2
+  python2 setup.py build
+}
+
+check() {
+  cd "$srcdir"/update_checker-$pkgver
+  python setup.py test
+
+  cd "$srcdir"/update_checker-$pkgver-py2
+  python2 setup.py test
+}
+
+package_python-update-checker() {
+  depends=('python-requests')
+  provides=('python-update_checker')
+  conflicts=('python-update_checker')
+  replaces=('python-update_checker')
+
+  cd update_checker-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}
+
+package_python2-update-checker() {
+  depends=('python2-requests')
+  provides=('python2-update_checker')
+  conflicts=('python2-update_checker')
+  replaces=('python2-update_checker')
+
+  cd update_checker-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
+  install -D -m644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE.txt
+}



More information about the arch-commits mailing list