summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a32442362ec037bdc82e11ac8d5da7dfaa8d7ad2 (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
# Contributor: Andrzej Giniewicz <gginiu@gmail.com>
# Contributor: Mariusz SzczepaƄczyk <mszczepanczyk@gmail.com>

pkgname=python2-jdcal
pkgver=1.4.1
pkgrel=1
pkgdesc="Julian dates, from proleptic Gregorian and Julian calendars"
arch=('any')
url="https://github.com/phn/jdcal"
license=('BSD')
makedepends=('python2-setuptools')
source=("$pkgname-$pkgver.tar.gz::https://github.com/phn/jdcal/archive/v${pkgver}.tar.gz")
sha256sums=('6cb87959fb9293bdd577967419af735a1a0aee3ce778c443acb219b2668c6597')

build() {
  cd "$srcdir"/jdcal-${pkgver}
  python2 setup.py build
}

package() {
  depends=('python2')

  cd "$srcdir"/jdcal-${pkgver}

  python2 setup.py install --skip-build --root="$pkgdir" --optimize=1

  install -Dm644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}