summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Jost2016-05-01 11:47:58 +0200
committerThomas Jost2016-05-01 11:47:58 +0200
commit0b3eeeb13080475b79427d227067cbc57d3f0640 (patch)
tree5701068b06e72ac1715905140d7933c4fa8dc846
parentb0e52c82a2c3eaf514df2693ab84e4ce241bbad7 (diff)
downloadaur-0b3eeeb13080475b79427d227067cbc57d3f0640.tar.gz
Bumped to 1.2.0, and added python2 version
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD27
2 files changed, 30 insertions, 16 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 75784d9f221..11901b6e7c6 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,16 +1,23 @@
+# Generated by mksrcinfo v8
+# Sun May 1 09:47:31 UTC 2016
pkgbase = python-slugify
pkgdesc = A Python slugify application that handles unicode
- pkgver = 1.1.4
- pkgrel = 2
+ pkgver = 1.2.0
+ pkgrel = 1
url = https://github.com/un33k/python-slugify
arch = any
license = BSD
makedepends = python-setuptools
+ makedepends = python2-setuptools
+ source = http://pypi.python.org/packages/source/p/python-slugify/python-slugify-1.2.0.tar.gz
+ md5sums = cf93234028a5c504834fc03a5bfb25db
+ sha256sums = 47f1bb3ea858d00073e3e1550a88ac20709660344e9727178d60478c4d3bb94e
+
+pkgname = python-slugify
depends = python
depends = python-unidecode>=0.04.16
- source = http://pypi.python.org/packages/source/p/python-slugify/python-slugify-1.1.4.tar.gz
- md5sums = 8ea8d2cd3433aef40dab408bf0b49a76
- sha256sums = e674f0d45eaeb5c47b7d4771319889a39b15ee87aa62c3b2fcc33cf34e94fc98
-pkgname = python-slugify
+pkgname = python2-slugify
+ depends = python2
+ depends = python2-unidecode>=0.04.16
diff --git a/PKGBUILD b/PKGBUILD
index b6e44295d23..29b909d6969 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,19 +1,26 @@
# Maintainer: Thomas Jost <schnouki@schnouki.net>
# Contributor: Andrey Mikhaylenko <neithere at gmail dot com>
-pkgname=python-slugify
-pkgver=1.1.4
-pkgrel=2
+pkgname=(python-slugify python2-slugify)
+pkgbase=python-slugify
+pkgver=1.2.0
+pkgrel=1
pkgdesc="A Python slugify application that handles unicode"
arch=(any)
url="https://github.com/un33k/python-slugify"
license=('BSD')
-depends=("python" "python-unidecode>=0.04.16")
-makedepends=("python-setuptools")
+makedepends=("python-setuptools" "python2-setuptools")
source=(http://pypi.python.org/packages/source/p/$pkgname/$pkgname-$pkgver.tar.gz)
-md5sums=('8ea8d2cd3433aef40dab408bf0b49a76')
-sha256sums=('e674f0d45eaeb5c47b7d4771319889a39b15ee87aa62c3b2fcc33cf34e94fc98')
+md5sums=('cf93234028a5c504834fc03a5bfb25db')
+sha256sums=('47f1bb3ea858d00073e3e1550a88ac20709660344e9727178d60478c4d3bb94e')
-package() {
- cd "$srcdir/$pkgname-$pkgver"
- python setup.py install --root="$pkgdir" --optimize=1
+package_python-slugify() {
+ depends=("python" "python-unidecode>=0.04.16")
+ cd "$srcdir/$pkgbase-$pkgver"
+ python setup.py install --root="$pkgdir" --optimize=1
+}
+
+package_python2-slugify() {
+ depends=("python2" "python2-unidecode>=0.04.16")
+ cd "$srcdir/$pkgbase-$pkgver"
+ python2 setup.py install --root="$pkgdir" --optimize=1
}