summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0b0eaa193b8675f3787764964970bb0a6fc28009 (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
# Maintainer: a821

pkgname=txt2tags-git
pkgver=3.9.r0.gbc7f2c4
pkgrel=1
pkgdesc="A text formatting and conversion tool"
arch=('any')
url="https://txt2tags.org/"
license=('GPL2')
conflicts=("${pkgname%-git}")
provides=("${pkgname%-git}")
depends=('python')
makedepends=('git' 'python-setuptools' 'python-build' 'python-installer' 'python-wheel')
source=("git+https://github.com/txt2tags/txt2tags.git#branch=v3")
sha256sums=('SKIP')

pkgver() {
    cd "${pkgname%-git}"
    git describe --tags --long | sed 's/-/.r/;s/-/./g'
}

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

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

# vim: set ts=4 sw=4 et: