[arch-commits] Commit in python-xpybutil/trunk (PKGBUILD)
Felix Yan
felixonmars at archlinux.org
Sat Apr 28 09:22:40 UTC 2018
Date: Saturday, April 28, 2018 @ 09:22:39
Author: felixonmars
Revision: 318360
upgpkg: python-xpybutil 0.0.3-1
Modified:
python-xpybutil/trunk/PKGBUILD
----------+
PKGBUILD | 30 ++++++++++++++++--------------
1 file changed, 16 insertions(+), 14 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-04-28 09:18:02 UTC (rev 318359)
+++ PKGBUILD 2018-04-28 09:22:39 UTC (rev 318360)
@@ -3,26 +3,28 @@
pkgbase=python-xpybutil
pkgname=(python-xpybutil python2-xpybutil)
-pkgver=0.0.1.20151007
-_commit=570f225e09b0f0fb05cee27e6660c19b5d0ee6bb
-pkgrel=2
+pkgver=0.0.3
+pkgrel=1
pkgdesc="An incomplete xcb-util port plus some extras"
arch=('any')
-url="https://github.com/BurntSushi/xpybutil"
+url="https://github.com/fennerm/xpybutil"
license=('custom:WTFPL')
-makedepends=('git' 'python-xcffib' 'python2-xcffib')
-source=("git+https://github.com/BurntSushi/xpybutil.git#commit=$_commit")
-md5sums=('SKIP')
+makedepends=('python-setuptools' 'python2-setuptools' 'python-xcffib' 'python2-xcffib')
+source=("$pkgbase-$pkgver.tar.gz::https://github.com/fennerm/xpybutil/archive/$pkgver.tar.gz"
+ https://github.com/fennerm/xpybutil/commit/78ff923c022433c819c88c0159440306bd3ed4f5.patch)
+sha512sums=('8eae9275fe5f3ce56bedb20c865ac84d971f59432dce48c8f55c76910e5e32e803890c04ebe076ae248b002fc1fc2fa6e0120260c8a57178bb4031b787eac398'
+ '49454bb4fa9e45de8ed288a7cf87de4eb507197db73fa65fc7b5ccfae60f508dfbc07b6bd737bae6ee6cb3a106334aa8b4e8a4dc23e0c796ab0e04b63b43a0f9')
prepare() {
- cp -a xpybutil{,-py2}
+ (cd xpybutil-$pkgver; patch -p1 -i ../78ff923c022433c819c88c0159440306bd3ed4f5.patch)
+ cp -a xpybutil-$pkgver{,-py2}
}
build() {
- cd "$srcdir/xpybutil"
+ cd "$srcdir/xpybutil-$pkgver"
python setup.py build
- cd "$srcdir/xpybutil-py2"
+ cd "$srcdir/xpybutil-$pkgver-py2"
python2 setup.py build
}
@@ -29,10 +31,10 @@
package_python-xpybutil() {
depends=('python-xcffib')
- cd "${srcdir}/xpybutil"
+ cd "${srcdir}/xpybutil-$pkgver"
python setup.py install --root="${pkgdir}/" --optimize=1
- install -Dm664 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+ install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
mv "$pkgdir/usr/share/doc/"{,python-}xpybutil
}
@@ -39,9 +41,9 @@
package_python2-xpybutil() {
depends=('python2-xcffib')
- cd "${srcdir}/xpybutil-py2"
+ cd "${srcdir}/xpybutil-$pkgver-py2"
python2 setup.py install --root="${pkgdir}/" --optimize=1
- install -Dm664 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
+ install -Dm664 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
mv "$pkgdir/usr/share/doc/"{,python2-}xpybutil
}
More information about the arch-commits
mailing list