mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-02-23 16:51:34 +01:00
42 lines
1.2 KiB
Plaintext
42 lines
1.2 KiB
Plaintext
# Contributor: William Pitcock <nenolod@dereferenced.org>
|
|
# Maintainer: William Pitcock <nenolod@dereferenced.org>
|
|
pkgname=py-dateutil
|
|
_pkgname=python-dateutil
|
|
pkgver=2.5.1
|
|
pkgrel=0
|
|
pkgdesc="Python extensions for datetime module"
|
|
url="http://labix.org/python-dateutil"
|
|
arch="noarch"
|
|
license="BSD"
|
|
depends="python py-six"
|
|
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="2769f13c596427558136b34977a95269 python-dateutil-2.5.1.tar.gz"
|
|
sha256sums="40d1bc468c7df50aff9e7a12c14687f9180efcff86900ee2963f9f2c13b5d7a9 python-dateutil-2.5.1.tar.gz"
|
|
sha512sums="197cabe90406c77436f895ae90137674ff4a751bb71af11c7045643a27c83c97dbe783895b9ab90250a02c9ff11292d9f3763d649914d8a857d5c7a46a04f3c6 python-dateutil-2.5.1.tar.gz"
|