diff options
author | Caleb Maclennan | 2022-02-15 16:26:09 +0300 |
---|---|---|
committer | Caleb Maclennan | 2022-02-15 16:26:09 +0300 |
commit | 6e5e1f8983f11dcdb9fb25ddf00d20b5a0d2bce9 (patch) | |
tree | 36db4bd55ef20c414e401099f8cba89506bd14dd | |
download | aur-6e5e1f8983f11dcdb9fb25ddf00d20b5a0d2bce9.tar.gz |
Initial upload: python-glyphsets 0.2.1-1
-rw-r--r-- | .SRCINFO | 14 | ||||
-rw-r--r-- | PKGBUILD | 34 |
2 files changed, 48 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..df50dc3aaeeb --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,14 @@ +pkgbase = python-glyphsets + pkgdesc = an API with data about glyph sets for many different scripts and languages + pkgver = 0.2.1 + pkgrel = 1 + url = https://github.com/googlefonts/glyphsets + arch = any + license = Apache + makedepends = python-setuptools + depends = python + depends = python-fonttools + source = https://github.com/googlefonts/glyphsets/archive/v0.2.1/glyphsets-0.2.1.tar.gz + sha256sums = dab3c915f1137eb5a16ea22b679b9e1408d1184134946b1905d90268fe46fe82 + +pkgname = python-glyphsets diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..c64b46aea4a5 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,34 @@ +# Maintainer: Caleb Maclennan <caleb@alerque.com> + +_pyname=glyphsets +pkgname=python-${_pyname,,} +pkgver=0.2.1 +pkgrel=1 +pkgdesc='an API with data about glyph sets for many different scripts and languages' +arch=(any) +url="https://github.com/googlefonts/$_pyname" +license=(Apache) +_pydeps=(fonttools) +depends=(python + "${_pydeps[@]/#/python-}") +makedepends=(python-setuptools) +_archive="$_pyname-$pkgver" +source=("$url/archive/v$pkgver/$_archive.tar.gz") +sha256sums=('dab3c915f1137eb5a16ea22b679b9e1408d1184134946b1905d90268fe46fe82') + +prepare() { + cd "$_archive" + # Upstream requires outdated setuptools_scm, work around + sed -i -e '/_scm/d' setup.py + echo "version = '$pkgver'" > Lib/glyphsets/_version +} + +build() { + cd "$_archive" + python setup.py build +} + +package() { + cd "$_archive" + python setup.py install --root="$pkgdir" --optimize=1 --skip-build +} |