[arch-commits] Commit in python-pytrie/repos/community-any (PKGBUILD PKGBUILD)

Chih-Hsuan Yen yan12125 at archlinux.org
Sat Jan 4 07:08:15 UTC 2020


    Date: Saturday, January 4, 2020 @ 07:08:15
  Author: yan12125
Revision: 547784

archrelease: copy trunk to community-any

Added:
  python-pytrie/repos/community-any/PKGBUILD
    (from rev 547783, python-pytrie/trunk/PKGBUILD)
Deleted:
  python-pytrie/repos/community-any/PKGBUILD

----------+
 PKGBUILD |   69 +++++++++++++++++++++++++++++++++----------------------------
 1 file changed, 38 insertions(+), 31 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-01-04 07:08:02 UTC (rev 547783)
+++ PKGBUILD	2020-01-04 07:08:15 UTC (rev 547784)
@@ -1,31 +0,0 @@
-# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
-# Modified from aur/python2-pytrie; original maintainership info:
-# Contributor: dseg
-
-pkgname=python-pytrie
-pkgver=0.3.1
-pkgrel=3
-pkgdesc="A pure Python implementation of the trie data structure."
-url="https://github.com/gsakkis/pytrie/"
-depends=(python python-sortedcontainers)
-makedepends=(python-setuptools)
-license=(BSD)
-arch=(any)
-source=("https://github.com/gsakkis/pytrie/archive/$pkgver/$pkgname-$pkgver.tar.gz")
-sha256sums=('9c51f5f50d22a829dee6d566a34a7f9ec33e434d08bfc9a4346fe8acaf2c1418')
-
-build() {
-  cd "$srcdir"/pytrie-$pkgver
-  python setup.py build
-}
-
-check() {
-  cd "$srcdir"/pytrie-$pkgver
-  python setup.py test
-}
-
-package() {
-  cd "$srcdir"/pytrie-$pkgver
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
-  install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname/
-}

Copied: python-pytrie/repos/community-any/PKGBUILD (from rev 547783, python-pytrie/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-01-04 07:08:15 UTC (rev 547784)
@@ -0,0 +1,38 @@
+# Maintainer: Chih-Hsuan Yen <yan12125 at archlinux.org>
+# Modified from aur/python2-pytrie; original maintainership info:
+# Contributor: dseg
+
+pkgname=python-pytrie
+pkgver=0.3.1
+pkgrel=4
+pkgdesc="A pure Python implementation of the trie data structure."
+url="https://github.com/gsakkis/pytrie/"
+depends=(python python-sortedcontainers)
+makedepends=(python-setuptools)
+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')
+
+prepare() {
+  cd pytrie-$pkgver
+  patch -Np1 -i ../$pkgname-py39.patch
+}
+
+build() {
+  cd pytrie-$pkgver
+  python setup.py build
+}
+
+check() {
+  cd pytrie-$pkgver
+  python -m unittest discover -v ./tests
+}
+
+package() {
+  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