summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 09ff1e7e9fccde4af53c80cf356779120a0ae49f (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
# Maintainer: willemw <willemw12@gmail.com>

pkgname=python-code-chat-git
pkgver=1.5.1.r242.g6809e75
pkgrel=1
pkgdesc='Source code to HTML translator (literate programming)'
arch=(any)
url=https://github.com/bjones1/CodeChat
license=(GPL3)
depends=(python-docutils)
makedepends=(git python-build python-installer python-wheel python-setuptools)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
md5sums=('SKIP')

pkgver() {
  git -C $pkgname describe --long --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

prepare() {
  git -C $pkgname clean -dfx
}

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

package() {
  cd $pkgname
  python -m installer --destdir="$pkgdir" dist/*.whl
}