summaryrefslogtreecommitdiff
path: root/pcr/python-slugify/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-12-16 22:27:00 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-12-16 22:27:00 +0100
commit39c9c5178084a708d31babe30bb3f2516dd8511b (patch)
tree7cbaa3d045ebd8f2cff699bfd9751314e52097a0 /pcr/python-slugify/PKGBUILD
parent60eee731d2b78ca4f52d2b311b19d65fa93f357c (diff)
downloadabslibre-39c9c5178084a708d31babe30bb3f2516dd8511b.tar.gz
abslibre-39c9c5178084a708d31babe30bb3f2516dd8511b.tar.bz2
abslibre-39c9c5178084a708d31babe30bb3f2516dd8511b.zip
pcr/python-slugify: added
Diffstat (limited to 'pcr/python-slugify/PKGBUILD')
-rw-r--r--pcr/python-slugify/PKGBUILD22
1 files changed, 22 insertions, 0 deletions
diff --git a/pcr/python-slugify/PKGBUILD b/pcr/python-slugify/PKGBUILD
new file mode 100644
index 000000000..5a23850e4
--- /dev/null
+++ b/pcr/python-slugify/PKGBUILD
@@ -0,0 +1,22 @@
+
+_pkgname=python-slugify
+pkgname=(python-${_pkgname#python-} python2-${_pkgname#python-})
+pkgver=1.2.5
+pkgrel=1
+pkgdesc="A Python Slugify application that handles Unicode"
+arch=('any')
+url="https://pypi.python.org/pypi/$_pkgname"
+license=('MIT')
+makedepends=('python-setuptools' 'python2-setuptools')
+source=("https://files.pythonhosted.org/packages/70/c1/98bfb2c981787dcec4613c5da2c17d6f54613935b0e3a877e87a9fa974e4/$_pkgname-$pkgver.tar.gz")
+sha256sums=('5dbb360b882b2dabe0471a1a92f604504d83c2a73c71f2098d004ab62e695534')
+
+_package(){
+ depends=($1)
+ cd "$srcdir"/$_pkgname-$pkgver
+ $1 setup.py install --root="$pkgdir"
+}
+
+for pkg in "${pkgname[@]}"; do
+ eval "package_$pkg () { _package ${pkg%%-*}; }"
+done