[arch-commits] Commit in python-xapp/trunk (PKGBUILD)

Eli Schwartz eschwartz at archlinux.org
Thu Nov 1 01:45:40 UTC 2018


    Date: Thursday, November 1, 2018 @ 01:45:39
  Author: eschwartz
Revision: 400894

upgpkg: python-xapp 1.4.0-1

upstream release; no-op to make version numbers match rest of cinnamon
adopt package and adapt style
clean up unneeded setuptools depends; this uses distutils

Modified:
  python-xapp/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-01 01:41:57 UTC (rev 400893)
+++ PKGBUILD	2018-11-01 01:45:39 UTC (rev 400894)
@@ -1,38 +1,35 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
 # Contributor: Balló György <ballogyor+arch at gmail dot com>
 
 pkgbase=python-xapp
 pkgname=(python-xapp python2-xapp)
-pkgver=1.2.0
-pkgrel=2
+pkgver=1.4.0
+pkgrel=1
 pkgdesc="Python Xapp Library"
 arch=('any')
-url="https://github.com/linuxmint/python-xapp"
+url="https://github.com/linuxmint/${pkgbase}"
 license=('LGPL')
-depends=('python' 'python-setuptools'
-	 'python2' 'python2-setuptools')
-source=("$pkgbase-$pkgver.tar.gz::https://github.com/linuxmint/$pkgbase/archive/$pkgver.tar.gz")
-sha256sums=('a81e50b1a16efcd2db0db99afbeebf56a4dfd45b008ec5bc606db0adc7cb9ac0')
+depends=('python' 'python2')
+source=("${pkgbase}-${pkgver}.tar.gz::${url}/archive/${pkgver}.tar.gz")
+sha512sums=('b364135536fde6175b7a5b5002ccb3103401760a78856b665715caec3c95e544238cfb3447600a1fd729a24917a37b2aba5a13fdcb4462510b5bf7090189309f')
 
-prepare() {
-  cp -a $pkgbase-$pkgver{,-py2}
-}
+build(){
+  cd "${srcdir}"/${pkgbase}-${pkgver}
 
-build(){
-  cd "$srcdir/$pkgbase-$pkgver"
   python setup.py build
-
-  cd "$srcdir/$pkgbase-$pkgver-py2"
   python2 setup.py build
 }
 
 package_python-xapp() {
   depends=('python' 'python-psutil')
-  cd $pkgbase-$pkgver
-  python setup.py install --root "$pkgdir" --optimize=1 --skip-build
+
+  cd "${srcdir}"/${pkgbase}-${pkgver}
+  python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
 }
 
 package_python2-xapp() {
   depends=('python2' 'python2-psutil')
-  cd $pkgbase-$pkgver-py2
-  python2 setup.py install --root "$pkgdir" --optimize=1 --skip-build
+
+  cd "${srcdir}"/${pkgbase}-${pkgver}
+  python2 setup.py install --root="${pkgdir}" --optimize=1 --skip-build
 }


More information about the arch-commits mailing list