summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c314231fe40ac2471173f68a88ca2a7dbb67b28d (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
37
# Maintainer : Gustavo Alvarez <sl1pkn07@gmail.com>

pkgname=python-jetpytools-git
pkgver=1.2.3.1.g58e6bfe
pkgrel=1
pkgdesc="Collection of stuff that's useful in general python programming. (GIT version)"
url="https://github.com/Jaded-Encoding-Thaumaturgy/jetpytools"
arch=('any')
license=('MIT')
depends=('python')
makedepends=(
  'git'
  'python-build'
  'python-wheel'
  'python-installer'
  'python-setuptools'
)
provides=('python-jetpytools' 'python-stgpytools' 'python-stgpytools-git')
conflicts=('python-jetpytools' 'python-stgpytools' 'python-stgpytools-git')
source=('git+https://github.com/Jaded-Encoding-Thaumaturgy/jetpytools.git')
sha256sums=('SKIP')

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

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

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