PKGBUILDs/aur/python2-tzlocal/PKGBUILD

21 lines
656 B
Bash
Raw Normal View History

# Maintainer: Étienne Deparis <etienne [at] depar.is>
pkgname=python2-tzlocal
_pkgname=tzlocal
pkgver=1.1.1
pkgrel=1
pkgdesc="Python2 version for tzinfo object for the local timezone"
arch=('any')
url='https://github.com/regebro/tzlocal'
license=('custom')
depends=('python2-pytz')
makedepends=('python2-setuptools')
source=("https://pypi.python.org/packages/source/t/${_pkgname}/${_pkgname}-$pkgver.zip")
sha256sums=('696bfd8d7c888de039af6c6fdf86fd52e32508277d89c75d200eb2c150487ed4')
package() {
cd "${_pkgname}-$pkgver"
python2 setup.py install --root="$pkgdir"
install -Dm0644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}