# Maintainer: Thomas Jost # Contributor: Andrey Mikhaylenko pkgname=(python-slugify python2-slugify) pkgbase=python-slugify pkgver=3.0.2 pkgrel=1 pkgdesc="A Python slugify application that handles unicode" arch=(any) url="https://github.com/un33k/python-slugify" license=('BSD') makedepends=("python-setuptools" "python2-setuptools") source=(https://github.com/un33k/python-slugify/archive/${pkgver}.tar.gz) md5sums=('fae7ec7d9e12eedd55937081bfdd9d8e') sha256sums=('d05716700636f46b5f571875bdf76d0898232098022ef037bafcb0f682c25b9b') package_python-slugify() { depends=("python" "python-text-unidecode") optdepends=("python-unidecode: Unidecode support") cd "$srcdir/$pkgbase-$pkgver" python setup.py install --root="$pkgdir" --optimize=1 } package_python2-slugify() { depends=("python2" "python2-text-unidecode") optdepends=("python2-unidecode: Unidecode support") cd "$srcdir/$pkgbase-$pkgver" python2 setup.py install --root="$pkgdir" --optimize=1 mv "$pkgdir/usr/bin/slugify" "$pkgdir/usr/bin/slugify2" }