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

Johannes Löthberg demize at archlinux.org
Sun Jan 7 18:28:47 UTC 2018


    Date: Sunday, January 7, 2018 @ 18:28:46
  Author: demize
Revision: 280220

Build from GitHub tarball and install dummy package

Modified:
  python-msgpack/trunk/PKGBUILD

----------+
 PKGBUILD |   20 +++++++++++++-------
 1 file changed, 13 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-01-07 17:56:38 UTC (rev 280219)
+++ PKGBUILD	2018-01-07 18:28:46 UTC (rev 280220)
@@ -5,7 +5,7 @@
 pkgbase=python-msgpack
 pkgname=('python-msgpack' 'python2-msgpack')
 pkgver=0.5.0
-pkgrel=1
+pkgrel=2
 
 url='https://github.com/msgpack/msgpack-python'
 arch=('x86_64')
@@ -14,12 +14,12 @@
 makedepends=('cython' 'cython2' 'python-setuptools' 'python2-setuptools')
 checkdepends=('python-pytest' 'python2-pytest' 'python-six' 'python2-six')
 
-source=("https://pypi.io/packages/source/m/msgpack/msgpack-$pkgver.tar.gz")
+source=(msgpack-python-$pkgver.tar.gz::https://github.com/msgpack/msgpack-python/archive/$pkgver.tar.gz)
 
-md5sums=('6d1df33fe19dcde7bde62f808f9c4488')
+md5sums=('ab639ec2b1ebe0deb34584fe0c5102b9')
 
 build() {
-  cd msgpack-$pkgver
+  cd msgpack-python-$pkgver
   python setup.py build --build-lib=build/python
   python2 setup.py build --build-lib=build/python2
   find build/python2 -type f -exec \
@@ -27,7 +27,7 @@
 }
 
 check() {
-  cd msgpack-$pkgver
+  cd msgpack-python-$pkgver
   msg2 'python'
   PYTHONPATH=$PWD/build/python py.test test
   msg2 'python2'
@@ -38,9 +38,12 @@
   pkgdesc='MessagePack serializer implementation for Python'
   depends=('python')
 
-  cd msgpack-$pkgver
+  cd msgpack-python-$pkgver
   python setup.py build --build-lib=build/python \
                   install --root="$pkgdir" --optimize=1
+  cd dummy
+  python setup.py build --build-lib=build/python \
+                  install --root="$pkgdir" --optimize=1
 }
 
 package_python2-msgpack() {
@@ -47,9 +50,12 @@
   pkgdesc='MessagePack serializer implementation for Python2'
   depends=('python2')
 
-  cd msgpack-$pkgver
+  cd msgpack-python-$pkgver
   python2 setup.py build --build-lib=build/python2 \
                    install --root="$pkgdir" --optimize=1
+  cd dummy
+  python2 setup.py build --build-lib=build/python2 \
+                   install --root="$pkgdir" --optimize=1
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list