Skip to content

Commit

Permalink
Add python-defcon-git
Browse files Browse the repository at this point in the history
  • Loading branch information
taotieren committed Jan 30, 2023
1 parent 9c45b91 commit 372e5a8
Show file tree
Hide file tree
Showing 2 changed files with 59 additions and 0 deletions.
46 changes: 46 additions & 0 deletions archlinuxcn/python-defcon-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Maintainer: taotieren <admin@taotieren.com>

pkgname=python-defcon-git
pkgver=0.10.2.r0.g2498713
pkgrel=1
pkgdesc='A set of UFO based objects for use in font editing applications.'
url='https://github.com/robotools/defcon'
license=('MIT')
arch=(any)
_pydeps=(fonttools
fs # for fonttools[ufo]
unicodedata2) # for fonttools[unicode]
depends=(python
"${_pydeps[@]/#/python-}")
makedepends=(python-{build,installer}
python-setuptools-scm
python-wheel
git)
checkdepends=(python-pytest)
optdepends=(python-fontpens
python-lxml)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
sha256sums=('SKIP')

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

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

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

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

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

build_prefix: extra-x86_64

pre_build: vcs_update

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

0 comments on commit 372e5a8

Please sign in to comment.