summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f16ad495449b34899b29d21f1711d18a82e80a93 (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
29
30
31
32
33
34
35
36
# Maintainer : Santiago Torres-Arias <santiago@archlinux.org>
# Contributor: smmalis37

pkgname=python-pytimeconv-git
pkgver=0.0.2.0.ga24ef5c
pkgrel=1
pkgdesc="A Micro package for time conversion. (GIT version)"
url="https://github.com/Ichunjo/pytimeconv"
arch=('any')
license=('MIT')
depends=('python')
makedepends=(
  'git'
  'python-build'
  'python-wheel'
  'python-installer'
  'python-setuptools'
)
source=('git+https://github.com/Ichunjo/pytimeconv.git')
sha256sums=('SKIP')

pkgver() {
  cd pytimeconv
  echo "$(git describe --long --tags | tr - . | tr -d r)"
}

build() {
  cd pytimeconv
  python -m build --wheel --no-isolation
}

package() {
  cd pytimeconv
  python -m installer --destdir="${pkgdir}" dist/*.whl
  install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}"
}