Skip to content

Commit

Permalink
🎉 INIT: Initialize repository
Browse files Browse the repository at this point in the history
On branch main
- Changes to be committed:
  - new file:   .SRCINFO
  - new file:   PKGBUILD
  • Loading branch information
rossclarkartist committed May 19, 2022
0 parents commit d42f06b
Show file tree
Hide file tree
Showing 2 changed files with 101 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
pkgbase = python-defcon
pkgdesc = A set of UFO based objects for use in font editing applications
pkgver = 0.10.1
pkgrel = 1
url = https://github.com/robotools/defcon
arch = any
license = MIT
checkdepends = python-pytest
makedepends = python-build
makedepends = python-installer
makedepends = python-setuptools-scm
makedepends = python-wheel
depends = python
depends = python-fonttools
depends = python-fs
depends = python-unicodedata2
optdepends = python-fontpens
optdepends = python-lxml: enables faster UFO parsing
source = https://files.pythonhosted.org/packages/source/d/defcon/defcon-0.10.1.zip
sha512sums = 33fdb2c0b5d5e8ec5f442eb1d46eb9cc362b157974ae4f95cd8a22aa0accf6f86caa269c5914e9ac80e93eb9f2a383233c85a59033410bfd94bdd2f053cd8404

pkgname = python-defcon
79 changes: 79 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
#!/bin/bash

# Created from the original PKGBUILD by Caleb Maclennan <[email protected]> and Guillaume Horel <[email protected]>

# Disable various shellcheck rules that produce false positives in this file.
# Repository rules should be added to the .shellcheckrc file located in the
# repository root directory, see https://github.com/koalaman/shellcheck/wiki
# and https://archiv8.github.io for further information.
# shellcheck disable=SC2034,SC2154
# ToDo: Add files: User documentation
# ToDo: Add files: Tooling
# FixMe: Namcap warnings and errors

# Maintainer: Ross Clark <https://github.com/Archiv8/fontfinder/discussions>
# Contributor: Ross Clark <https://github.com/Archiv8/fontfinder/discussions>

_langname="python"
_relname="defcon"

pkgname="${_langname}-${_relname}"
pkgver=0.10.1
pkgrel=1
pkgdesc="A set of UFO based objects for use in font editing applications"
arch=(
"any"
)
url="https://github.com/robotools/${_relname}"
license=(
"MIT"
)
depends=(
"python"
"python-fonttools"
# For fonttools [ufo]
"python-fs"
"python-unicodedata2"
)
makedepends=(
"python-build"
"python-installer"
"python-setuptools-scm"
"python-wheel"
)
checkdepends=(
"python-pytest"
)
optdepends=(
"python-fontpens"
"python-lxml: enables faster UFO parsing"
)
_zipname="${_relname}-${pkgver}"
source=(
"https://files.pythonhosted.org/packages/source/${_relname::1}/${_relname}/${_zipname}.zip"
)
sha512sums=(
"33fdb2c0b5d5e8ec5f442eb1d46eb9cc362b157974ae4f95cd8a22aa0accf6f86caa269c5914e9ac80e93eb9f2a383233c85a59033410bfd94bdd2f053cd8404"
)

build() {

cd "$_zipname"

python -m build -wn
}

check() {
cd "$_zipname"

PYTHONPATH=Lib pytest Lib/defcon/test
}

package() {

cd "$_zipname"

python -m installer -d "$pkgdir" dist/*.whl

install -Dm0644 -t "$pkgdir/usr/share/licenses/$pkgname/" License.txt
}

0 comments on commit d42f06b

Please sign in to comment.