blob: 649a2a18a03730ffdaea100c1c0d3b2fee335a71 (
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
|
# Maintainer: Anton Kudelin <kudelin at protonmail dot com>
# Contributor: Hans-Nikolai Viessmann <hans AT viess.mn>
_pkgname=dateutils
pkgname=python-$_pkgname
pkgver=0.6.12
pkgrel=2
pkgdesc="Utilities for working with datetime objects"
arch=('any')
url="https://github.com/jmcantrell/python-dateutils"
license=('ISC')
depends=('python-dateutil' 'python-pytz')
makedepends=('python-setuptools')
source=($pkgname-$pkgver.tar.gz::"$url/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('a7633f065542c5550e719622ac72f6f2d67e9b0a6af0d4b0cc13e0b9eab006aa')
build() {
cd "$srcdir/$pkgname-$pkgver"
python setup.py build
}
package() {
cd "$srcdir/$pkgname-$pkgver"
python setup.py install --root="$pkgdir" -O1 --skip-build
install -Dm755 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|