summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e51f214a80de17780efd603eb2a63d8cbcd69bc4 (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
# Maintainer: Pavle Portic <arch@theedgeofrage.com>
pkgname=python-nerdfonts
pkgver=1.0.1
pkgrel=1
pkgdesc="NerdFonts for Python"
arch=("any")
url="https://gitlab.com/ajeetdsouza/nerdfonts-python"
license=("GPL3")
depends=("python")
makedepends=("python-build" "python-installer" "python-setuptools" "python-wheel" "subversion")
source=("$pkgname::git+$url.git")
sha256sums=("SKIP")

build() {
  cd "$pkgname"
  ./nerdfonts/generate.sh
  python -m build --wheel --no-isolation
}

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

  install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
}