blob: 5a23850e4e551bdcc06d274e21aa79e67262b480 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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
|