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

Felix Yan felixonmars at archlinux.org
Fri Mar 17 06:34:08 UTC 2017


    Date: Friday, March 17, 2017 @ 06:34:07
  Author: felixonmars
Revision: 290970

upgpkg: python-markupsafe 1.0-1

Modified:
  python-markupsafe/trunk/PKGBUILD

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

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-03-17 03:30:21 UTC (rev 290969)
+++ PKGBUILD	2017-03-17 06:34:07 UTC (rev 290970)
@@ -4,33 +4,33 @@
 # Contributor: Alex Anthony <alex.anthony28991 at gmail.com>
 
 pkgname=('python-markupsafe' 'python2-markupsafe')
-pkgver=0.23
-pkgrel=4
+pkgver=1.0
+pkgrel=1
 pkgdesc="Implements a XML/HTML/XHTML Markup safe string for Python"
 arch=('i686' 'x86_64')
 url="http://pypi.python.org/pypi/MarkupSafe"
 license=('custom')
 makedepends=('python-setuptools' 'python2-setuptools')
-source=("http://pypi.python.org/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz")
-sha512sums=('4f1fd91ced5e7119584b56cf7b69cfe6fdd9613bd77412368a38e9ef5d1011ba5c76d1d3a0da3d60f9f474627e6c8c8b613a80a668b32d212f09072f8b1f5b28')
+source=("https://pypi.io/packages/source/M/MarkupSafe/MarkupSafe-${pkgver}.tar.gz")
+sha512sums=('7437a02cb1b9c1d6d6c20b13d394f24a1cd1cb8c743f832d8b1cbb6ab8846f70f54d924dd693423b33c4d592e772983ae38fd4a35961e233457c48bd3584ecb8')
 
 prepare() {
-  cp -a MarkupSafe-${pkgver} python2-MarkupSafe-${pkgver}
+  cp -a MarkupSafe-$pkgver{,-py2}
 }
 
 build() {
-  cd "${srcdir}/MarkupSafe-${pkgver}"
+  cd "$srcdir"/MarkupSafe-$pkgver
   python setup.py build
 
-  cd "${srcdir}/python2-MarkupSafe-${pkgver}"
+  cd "$srcdir"/MarkupSafe-$pkgver-py2
   python2 setup.py build
 }
 
 check() {
-  cd "${srcdir}/MarkupSafe-${pkgver}"
+  cd "$srcdir"/MarkupSafe-$pkgver
   python setup.py test
 
-  cd "${srcdir}/python2-MarkupSafe-${pkgver}"
+  cd "$srcdir"/MarkupSafe-$pkgver-py2
   python2 setup.py test
 }
 
@@ -37,17 +37,17 @@
 package_python-markupsafe() {
   depends=('python')
 
-  cd MarkupSafe-${pkgver}
-  python setup.py install --root="${pkgdir}" --optimize=1
+  cd MarkupSafe-$pkgver
+  python setup.py install --root="$pkgdir" --optimize=1
 
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python-markupsafe/LICENSE"
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python-markupsafe/LICENSE
 }
 
 package_python2-markupsafe() {
   depends=('python2')
 
-  cd python2-MarkupSafe-${pkgver}
-  python2 setup.py install --root="${pkgdir}" --optimize=1
+  cd MarkupSafe-$pkgver-py2
+  python2 setup.py install --root="$pkgdir" --optimize=1
 
-  install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/python2-markupsafe/LICENSE"
+  install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/python2-markupsafe/LICENSE
 }


More information about the arch-commits mailing list