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:   .gitignore
  - new file:   PKGBUILD
  • Loading branch information
rossclarkartist committed May 24, 2022
0 parents commit b70117f
Show file tree
Hide file tree
Showing 3 changed files with 96 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .SRCINFO
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
pkgbase = python-cu2qu
pkgdesc = Cubic-to-quadratic bezier curve conversion
pkgver = 1.6.7.post1
pkgrel = 2
url = https://github.com/googlefonts/cu2qu
arch = any
license = Apache
checkdepends = python-coverage
checkdepends = python-pytest-runner
makedepends = cython
makedepends = python-setuptools-scm
depends = python
depends = python-defcon
depends = python-fonttools
depends = python-fs
source = https://files.pythonhosted.org/packages/source/c/cu2qu/cu2qu-1.6.7.post1.zip
sha512sums = a0dbed28403ae2bbdbf4719d9e34d5861250dc1510129d658b336d773a5153e0955d5f2ff018f5f93d88394658918fad2a58aebb99cef998d4cf9128a300f489

pkgname = python-cu2qu
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
pkg/
src/
*.tar.gz
*.tar.xz
*.zip
72 changes: 72 additions & 0 deletions PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
#!/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/python-cu2qu/discussions>
# Contributor: Ross Clark <https://github.com/Archiv8/python-cu2qu/discussions>

_langname="python"
_relname="cu2qu"

pkgname="${_langname}-${_relname}"
pkgver=1.6.7.post1
pkgrel=2
pkgdesc='Cubic-to-quadratic bezier curve conversion'
arch=(
"any"
)
url="https://github.com/googlefonts/cu2qu"
license=(
"Apache"
)
depends=(
"python"
"python-defcon"
"python-fonttools"
"python-fs"
)
makedepends=(
"cython"
"python-setuptools-scm"
)
checkdepends=(
"python-coverage"
"python-pytest-runner"
)
_tarname="$_relname-$pkgver"
source=(
"https://files.pythonhosted.org/packages/source/${_relname::1}/$_relname/$_tarname.zip"
)
sha512sums=(
'a0dbed28403ae2bbdbf4719d9e34d5861250dc1510129d658b336d773a5153e0955d5f2ff018f5f93d88394658918fad2a58aebb99cef998d4cf9128a300f489'
)

build() {

cd "$_tarname"

python setup.py build
}

check() {

cd "$_tarname"

python setup.py test
}

package() {

cd "$_tarname"

python setup.py install --root="$pkgdir" --optimize=1 --skip-build
}

0 comments on commit b70117f

Please sign in to comment.