[arch-commits] Commit in python-wiktionaryparser/trunk (PKGBUILD)
Caleb Maclennan
alerque at gemini.archlinux.org
Mon Jan 31 11:41:43 UTC 2022
Date: Monday, January 31, 2022 @ 11:41:42
Author: alerque
Revision: 1121221
upgpkg: python-wiktionaryparser 0.0.97.20210613-3; drop global tests folder, FS#73574
Modified:
python-wiktionaryparser/trunk/PKGBUILD
----------+
PKGBUILD | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-01-31 11:37:15 UTC (rev 1121220)
+++ PKGBUILD 2022-01-31 11:41:42 UTC (rev 1121221)
@@ -1,9 +1,10 @@
# Maintainer: Felix Yan <felixonmars at archlinux.org>
+# Contributor: Caleb Maclennan <caleb at alerque.com>
pkgname=python-wiktionaryparser
pkgver=0.0.97.20210613
_commit=71f396ef6e915b3d1461a41e8a7aec35063d30bf
-pkgrel=2
+pkgrel=3
pkgdesc="A tool to parse word data from wiktionary.com into a JSON object"
url="https://github.com/Suyash458/WiktionaryParser"
license=('MIT')
@@ -31,9 +32,12 @@
package() {
cd WiktionaryParser-$_commit
- python setup.py install --root="$pkgdir" --optimize=1
+ python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm644 LICENSE.txt -t "$pkgdir"/usr/share/licenses/$pkgname/
rm -r "$pkgdir"/usr/{readme,requirements,testOutput}
+
+ local _py3_ver=$(python --version | cut -d " " -f2)
+ rm -rf "$pkgdir/usr/lib/python${_py3_ver%.*}/site-packages/tests"
}
More information about the arch-commits
mailing list