summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0edbd45bb78cff36002a181ec4f6ca720339dc06 (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
# Maintainer: Karol Babioch <karol@babioch.de>

pkgname=('python-pendulum' 'python2-pendulum')
pkgver=1.4.2
pkgrel=1
pkgdesc="Python datetimes made easy"
arch=('any')
url="https://pendulum.eustace.io"
license=('MIT')
makedepends=('python-setuptools' 'python2-setuptools')
#options=('!emptydirs')
source=("git+https://github.com/sdispater/pendulum.git#tag=$pkgver")
sha256sums=('SKIP')

package_python-pendulum() {
  depends=('python' 'python-tzlocal' 'python-pytzdata' 'python-dateutil')
  cd "$srcdir/pendulum"
  python setup.py install --root="$pkgdir/" --optimize=1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

package_python2-pendulum() {
  depends=('python2' 'python2-tzlocal' 'python2-pytzdata' 'python2-dateutil')
  cd "$srcdir/pendulum"
  python2 setup.py install --root="$pkgdir/" --optimize=1
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}