summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 7075e0ae9ba4504d49610fd640130e887f1e7742 (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
38
39
40
41
42
43
44
45
46
47
48
49
# Maintainer: taotieren <cadmin@taotieren.com>

pkgname=monobit-git
pkgver=0.52.0.r0.ged76b370
pkgrel=1
pkgdesc='Tools for working with monochrome bitmap fonts'
url='https://github.com/robhagemans/monobit'
license=('MIT')
arch=(any)
_pydeps=(
    reportlab
    pillow
    bidi
    arabic-reshaper
    hatchling
    uniseg
    fonttools
    libarchive-c
)
depends=(
    python
    "${_pydeps[@]/#/python-}"
)
makedepends=(
    git
    python-{build,installer}
    python-setuptools-scm
    python-wheel
)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

pkgver() {
    cd "$pkgname"
    git describe --long --tags | sed 's/^v//g;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
    cd "$pkgname"
    python -m build -wn
}

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