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

Chih-Hsuan Yen yan12125 at archlinux.org
Sun Oct 25 04:10:03 UTC 2020


    Date: Sunday, October 25, 2020 @ 04:10:01
  Author: yan12125
Revision: 732158

upgpkg: python-pytrie 0.4.0-1; switch to PyPI sdist; remove landed-in-release patch

Modified:
  python-pytrie/trunk/PKGBUILD

----------+
 PKGBUILD |   21 +++++++--------------
 1 file changed, 7 insertions(+), 14 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-10-25 02:43:15 UTC (rev 732157)
+++ PKGBUILD	2020-10-25 04:10:01 UTC (rev 732158)
@@ -3,8 +3,8 @@
 # Contributor: dseg
 
 pkgname=python-pytrie
-pkgver=0.3.1
-pkgrel=4
+pkgver=0.4.0
+pkgrel=1
 pkgdesc="A pure Python implementation of the trie data structure."
 url="https://github.com/gsakkis/pytrie/"
 depends=(python python-sortedcontainers)
@@ -13,28 +13,21 @@
 checkdepends=(python-tests)
 license=(BSD)
 arch=(any)
-source=("https://github.com/gsakkis/pytrie/archive/$pkgver/$pkgname-$pkgver.tar.gz"
-        $pkgname-py39.patch::https://github.com/gsakkis/pytrie/commit/62564b0c14c66b2e5fb2fcad43246bd8d56d51a8.patch)
-sha256sums=('9c51f5f50d22a829dee6d566a34a7f9ec33e434d08bfc9a4346fe8acaf2c1418'
-            'cfc68a3df41009390a5646180ea1952981e5cf922eb9dfb4f2a6b501391a4c08')
+source=("https://files.pythonhosted.org/packages/source/P/PyTrie/PyTrie-$pkgver.tar.gz")
+sha256sums=('8f4488f402d3465993fb6b6efa09866849ed8cda7903b50647b7d0342b805379')
 
-prepare() {
-  cd pytrie-$pkgver
-  patch -Np1 -i ../$pkgname-py39.patch
-}
-
 build() {
-  cd pytrie-$pkgver
+  cd PyTrie-$pkgver
   python setup.py build
 }
 
 check() {
-  cd pytrie-$pkgver
+  cd PyTrie-$pkgver
   python -m unittest discover -v ./tests
 }
 
 package() {
-  cd pytrie-$pkgver
+  cd PyTrie-$pkgver
   python setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
 }



More information about the arch-commits mailing list