summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorKiyoshi Aman <kiyoshi.aman@gmail.com>2020-06-10 07:01:13 +0000
committerZach van Rijn <me@zv.io>2023-04-12 03:25:11 +0000
commit739e47e5aeb10afc7e35fdbdccdaf5e09f910297 (patch)
treeec191ade330a5e79b996c4460731018300fb7aff /user
parenta360e11f37e24cee821265f1236a57d9a7287700 (diff)
downloadpackages-739e47e5aeb10afc7e35fdbdccdaf5e09f910297.tar.gz
packages-739e47e5aeb10afc7e35fdbdccdaf5e09f910297.tar.bz2
packages-739e47e5aeb10afc7e35fdbdccdaf5e09f910297.tar.xz
packages-739e47e5aeb10afc7e35fdbdccdaf5e09f910297.zip
user/py3-cairosvg: new package
Diffstat (limited to 'user')
-rw-r--r--user/py3-cairosvg/APKBUILD30
1 files changed, 30 insertions, 0 deletions
diff --git a/user/py3-cairosvg/APKBUILD b/user/py3-cairosvg/APKBUILD
new file mode 100644
index 000000000..b2565c619
--- /dev/null
+++ b/user/py3-cairosvg/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman+adelie@gmail.com>
+pkgname=py3-cairosvg
+_pkgname=CairoSVG
+_p="${_pkgname#?}"
+_p="${_pkgname%"$_p"}"
+pkgver=2.4.2
+pkgrel=0
+pkgdesc="Cairo-based SVG to PDF/PNG library for Python"
+url="https://cairosvg.org/"
+arch="all"
+license="LGPL-3.0+"
+depends="python3 cairo"
+makedepends="python3-dev cairo-dev libffi-dev"
+source="https://files.pythonhosted.org/packages/source/$_p/$_pkgname/$_pkgname-$pkgver.tar.gz"
+builddir="$srcdir/CairoSVG-$pkgver"
+
+build() {
+ python3 setup.py build
+}
+
+check() {
+ python3 setup.py check
+}
+
+package() {
+ python3 setup.py install --prefix=/usr --root="$pkgdir"
+}
+
+sha512sums="0d6dd22d9569fd3849cf7f6594c86bed719169dac1f0f3219e88d82f9d245bf29d51715159085cb26c0340c8f0dcb88412d141ec0ee3710b1477626f5a578441 CairoSVG-2.4.2.tar.gz"