diff options
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..a32442362ec0 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,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 +} |