blob: 434f0bbf0ad3c8b0852154105e33ca6e739d64a4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
pkgname=py-natsort
_pkgname=natsort
pkgver=3.5.0
pkgrel=0
pkgdesc="A module for natural sorting"
url="https://github.com/SethMMorton/natsort"
arch="noarch"
license="MIT"
depends="python"
depends_dev=""
makedepends="python-dev py-setuptools"
install=""
subpackages=""
source="http://pypi.python.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
_builddir="$srcdir"/$_pkgname-$pkgver
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
build() {
cd "$_builddir"
python setup.py build || return 1
}
package() {
cd "$_builddir"
python setup.py install --prefix=/usr --root="$pkgdir" || return 1
}
md5sums="a0766139ba57b635a60b5ed6e30d58fb natsort-3.5.0.tar.gz"
sha256sums="1305de8918e1f7dc0e5e24b407033a351c6fb81f8850ab141af0c92d2e9e9f31 natsort-3.5.0.tar.gz"
sha512sums="ade449b009847f89e5d1f446a382c2c664104165927d748c879ad6388c0a637fec8c4400acc277d3596b2dc76368853fa5bda4a2889f33547ca5f6f353228b72 natsort-3.5.0.tar.gz"
|