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 9c72559
Show file tree
Hide file tree
Showing 14 changed files with 130 additions and 11 deletions.
3 changes: 2 additions & 1 deletion archlinuxcn/python-booleanoperations-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ depends=(python
checkdepends=(python-defcon
python-fontpens
python-pytest)
makedepends=(python-setuptools-scm)
makedepends=(python-setuptools-scm
git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
Expand Down
3 changes: 2 additions & 1 deletion archlinuxcn/python-cffsubr-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ arch=(any)
depends=(python
python-fonttools)
makedepends=(python-setuptools-git-ls-files
python-setuptools-scm)
python-setuptools-scm
git)
checkdepends=(python-pytest)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
Expand Down
3 changes: 2 additions & 1 deletion archlinuxcn/python-compreffor-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ checkdepends=(python-pytest)
makedepends=(cython
python-setuptools-git-ls-files
python-setuptools-scm
python-wheel)
python-wheel
git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
Expand Down
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 <[email protected]>

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: archlinuxcn-x86_64

pre_build: vcs_update

post_build_script: |
git_pkgbuild_commit()
update_on:
- source: github
github: robotools/defcon
2 changes: 1 addition & 1 deletion archlinuxcn/python-fontmake-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ checkdepends=(python-compreffor
python-pytest
python-skia-pathops)
makedepends=(git
python-{build,installer}
python-{build,installer}
python-setuptools-scm
python-wheel)
optdepends=(python-mutatormath
Expand Down
4 changes: 2 additions & 2 deletions archlinuxcn/python-fontmath-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ depends=(python-fonttools)
checkdepends=(python-pytest)
makedepends=(python-{build,installer}
python-setuptools-scm
python-wheel)
checkdepends=(python-pytest)
python-wheel
git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
Expand Down
3 changes: 2 additions & 1 deletion archlinuxcn/python-fontpens-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ depends=(python
python-fonttools)
checkdepends=(python-fontparts
python-pytest)
makedepends=(python-setuptools-scm)
makedepends=(python-setuptools-scm
git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
Expand Down
3 changes: 2 additions & 1 deletion archlinuxcn/python-glyphslib-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ depends=(python
"${_pydeps[@]/#/python-}")
makedepends=(python-{build,installer,wheel}
python-defcon
python-setuptools-scm)
python-setuptools-scm
git)
_pycheckdeps=(lxml # for fonttools[lxml]
pytest
ufo2ft
Expand Down
39 changes: 39 additions & 0 deletions archlinuxcn/python-mutatormath-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Maintainer: taotieren <[email protected]>

pkgname=python-fontmath-git
pkgver=0.9.3.r2.g777dd88
pkgrel=1
pkgdesc='A collection of objects that implement fast font, glyph, etc. math.'
url='https://github.com/robotools/fontMath'
license=('MIT')
arch=(any)
depends=(python-fonttools)
checkdepends=(python-pytest)
makedepends=(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/\([^-]*-g\)/r\1/;s/-/./g'
}

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

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

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

13 changes: 13 additions & 0 deletions archlinuxcn/python-mutatormath-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/fontMath
3 changes: 2 additions & 1 deletion archlinuxcn/python-setuptools-git-ls-files-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ arch=(any)
depends=(python)
makedepends=(python-{build,installer}
python-setuptools-scm
python-wheel)
python-wheel
git)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+$url.git")
Expand Down
3 changes: 2 additions & 1 deletion archlinuxcn/python-ttfautohint-py-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@ depends=(python-fonttools)
checkdepends=(python-pytest)
makedepends=(python-{build,installer}
python-setuptools-scm
python-wheel)
python-wheel
git)
checkdepends=(python-pytest)
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
Expand Down
3 changes: 2 additions & 1 deletion archlinuxcn/python-ufo2ft-git/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ depends=(python
"${_pydeps[@]/#/python-}")
makedepends=(python-{build,installer}
python-setuptools-scm
python-wheel)
python-wheel
git)
checkdepends=(python-compreffor
python-pytest
python-ufolib2
Expand Down

0 comments on commit 9c72559

Please sign in to comment.