Skip to content

Commit

Permalink
Add python-fontpens-git
Browse files Browse the repository at this point in the history
  • Loading branch information
taotieren committed Jan 29, 2023
1 parent 8127528 commit ccce4c9
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
39 changes: 39 additions & 0 deletions archlinuxcn/python-fontpens-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-fontpens-git
pkgver=0.2.4.r12.g776df99
pkgrel=1
pkgdesc='A collection of classes implementing the pen protocol for manipulating glyphs.'
url='https://github.com/robotools/fontpens'
license=('BSD')
arch=(any)
depends=(python
python-fonttools)
checkdepends=(python-fontparts
python-pytest)
makedepends=(python-setuptools-scm)
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
}

check() {
cd "$pkgname"
PYTHONPATH=Lib pytest Lib
}

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

13 changes: 13 additions & 0 deletions archlinuxcn/python-fontpens-git/lilac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
maintainers:
- github: taotieren

build_prefix: archlinuxcn-x86_64

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_on:
- source: github
github: robotools/fontpens

0 comments on commit ccce4c9

Please sign in to comment.