26 lines
788 B
Bash
26 lines
788 B
Bash
# Maintainer: Jesus E. <heckyel@riseup.net>
|
|
|
|
pkgname=python-timeago
|
|
_name=${pkgname#python-}
|
|
pkgver=1.0.16
|
|
pkgrel=1
|
|
pkgdesc="Simple library used to format datetime with \`***time ago\` statement."
|
|
arch=('any')
|
|
url='https://github.com/hustcc/timeago'
|
|
license=('Expat')
|
|
depends=('python')
|
|
makedepends=('python-setuptools' 'python-wheel')
|
|
source=("$_name-$pkgver.tar.gz::https://github.com/hustcc/timeago/archive/refs/tags/$pkgver.tar.gz")
|
|
sha512sums=('1106abe17cfb34324ee9194141598698abbe1c0ed36273d449fdc9047aa42e369845be0041bdffc4470f00602df20bf981de3ad16f10c22d65de4c0a41d65e73')
|
|
|
|
build() {
|
|
cd "$_name-$pkgver"
|
|
python setup.py build
|
|
}
|
|
|
|
package() {
|
|
cd "$_name-$pkgver"
|
|
python setup.py install --root="$pkgdir/"
|
|
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
|
|
}
|