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

Konstantin Gizdov kgizdov at archlinux.org
Tue Jun 30 13:44:43 UTC 2020


    Date: Tuesday, June 30, 2020 @ 13:44:43
  Author: kgizdov
Revision: 657165

upgpkg: python-latexcodec 2.0.1-1

Modified:
  python-latexcodec/trunk/PKGBUILD

----------+
 PKGBUILD |   19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-06-30 13:37:36 UTC (rev 657164)
+++ PKGBUILD	2020-06-30 13:44:43 UTC (rev 657165)
@@ -1,9 +1,10 @@
 # Maintainer: Baptiste Jonglez <archlinux at bitsofnetworks dot org>
 # Contributor: Patrice Peterson <runiq at archlinux dot us>
 
-pkgname=python-latexcodec
-pkgver=1.0.7
-pkgrel=2
+_pkgname=latexcodec
+pkgname=python-${_pkgname}
+pkgver=2.0.1
+pkgrel=1
 pkgdesc="A lexer and codec to work with LaTeX code in Python"
 arch=('any')
 url="https://github.com/mcmtroffaes/latexcodec"
@@ -10,22 +11,22 @@
 license=('MIT')
 depends=('python-six')
 makedepends=('python-setuptools')
-checkdepends=('python-nose')
-source=("https://pypi.io/packages/source/l/latexcodec/latexcodec-$pkgver.tar.gz")
-sha256sums=('ebc183904549b1514ffc29a8768c8b58dc45cb813b94df90bf19f4c7b01fd772')
+checkdepends=('python-nose' 'python-pytest')
+source=("${pkgname}-${pkgver}.tar.gz::https://github.com/mcmtroffaes/${_pkgname}/archive/${pkgver}.tar.gz")
+sha256sums=('eda36ddfc969f86c9a8fdd50c12b484fa42dbfa33b84422144643b60081ca022')
 
 build() {
-  cd "$srcdir/latexcodec-$pkgver"
+  cd "${srcdir}/${_pkgname}-${pkgver}"
   python setup.py build
 }
 
 check() {
-  cd "$srcdir/latexcodec-$pkgver"
+  cd "${srcdir}/${_pkgname}-${pkgver}"
   nosetests
 }
 
 package() {
-  cd "$srcdir/latexcodec-$pkgver"
+  cd "${srcdir}/${_pkgname}-${pkgver}"
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -Dm644 LICENSE.rst "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }



More information about the arch-commits mailing list