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

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

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

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

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