[arch-commits] Commit in (4 files)
Chih-Hsuan Yen
yan12125 at archlinux.org
Mon Aug 19 07:30:12 UTC 2019
Date: Monday, August 19, 2019 @ 07:30:12
Author: yan12125
Revision: 500151
python-pytrie: new package, a dependency of python-autobahn
Added:
python-pytrie/
python-pytrie/repos/
python-pytrie/trunk/
python-pytrie/trunk/PKGBUILD
----------+
PKGBUILD | 31 +++++++++++++++++++++++++++++++
1 file changed, 31 insertions(+)
Added: python-pytrie/trunk/PKGBUILD
===================================================================
--- python-pytrie/trunk/PKGBUILD (rev 0)
+++ python-pytrie/trunk/PKGBUILD 2019-08-19 07:30:12 UTC (rev 500151)
@@ -0,0 +1,31 @@
+# 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=1
+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/
+}
More information about the arch-commits
mailing list