summarylogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.SRCINFO15
-rw-r--r--PKGBUILD27
2 files changed, 42 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b001277f0af
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,15 @@
+pkgbase = python-pyecharts
+ pkgdesc = A Python Echarts Plotting Library
+ pkgver = 1.9.0
+ pkgrel = 1
+ url = https://github.com/pyecharts/pyecharts
+ arch = any
+ license = MIT
+ makedepends = python-setuptools
+ depends = python-jinja>=2.8
+ depends = python-prettytable
+ depends = python-simplejson
+ source = https://github.com/pyecharts/pyecharts/archive/refs/tags/v1.9.0.tar.gz
+ sha512sums = 0d833e46f229523e74caedec69a9d38b56bcfade25979258f5b09827e28c6ffc8ad9007c502cb2fb0b9a8ed180d73e8165f8bdc1f9d9258193e9f139162a7262
+
+pkgname = python-pyecharts
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..0b7614d7c70
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,27 @@
+# Maintainer: HLM319 <hlm319@hlm319.com>
+
+_name=pyecharts
+pkgname=python-pyecharts
+pkgver=1.9.0
+pkgrel=1
+pkgdesc="A Python Echarts Plotting Library"
+arch=('any')
+url="https://github.com/pyecharts/pyecharts"
+license=('MIT')
+depends=('python-jinja>=2.8' 'python-prettytable' 'python-simplejson')
+makedepends=('python-setuptools')
+source=(https://github.com/pyecharts/pyecharts/archive/refs/tags/v$pkgver.tar.gz)
+sha512sums=('0d833e46f229523e74caedec69a9d38b56bcfade25979258f5b09827e28c6ffc8ad9007c502cb2fb0b9a8ed180d73e8165f8bdc1f9d9258193e9f139162a7262')
+
+build() {
+ cd "$srcdir"/$_name-$pkgver
+ python setup.py build
+}
+
+package() {
+ cd "$srcdir/$_name-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1
+ install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et: