summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c17394211680d796184ab57376008c661a9e6c4e (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
# Maintainer: Łukasz Pożarlik <lpozarlik@gmail.com>

pkgname=('python-pytzwhere')
pkgdesc="Python library to lookup the timezone for a given lat/lng entirely offline"
pkgver=3.0.3
pkgrel=4
url="https://github.com/pegler/pytzwhere/"
license=('MIT')
arch=('any')
makedepends=('python' 
  'python-setuptools')
depends=('python-shapely')
source=("https://files.pythonhosted.org/packages/source/t/tzwhere/tzwhere-${pkgver}.tar.gz")
sha256sums=('b9a056e60f6ad5d44e7bc9d397ae683ea4bcd81f812ab6bbdfaad3d9984fcf19')

build() {
  cd ${srcdir}/tzwhere-${pkgver}
  python setup.py build
}

package_python-pytzwhere() {
  cd ${srcdir}/tzwhere-${pkgver}
  python setup.py install --prefix=/usr --root=${pkgdir}
  install -D --mode 644 --target-directory "$pkgdir/usr/share/licenses/$pkgname" LICENSE
}

# vim:set ts=2 sw=2 et: