summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorPopolon2021-06-12 00:06:26 +0200
committerPopolon2021-06-12 00:06:26 +0200
commita2584e26fde7f2d1b6b65fe923472bb477071c1e (patch)
treee21b3444104393aa870ff2b72c07d8bfebf8f34f
downloadaur-a2584e26fde7f2d1b6b65fe923472bb477071c1e.tar.gz
commit initial
-rw-r--r--.SRCINFO26
-rw-r--r--PKGBUILD31
2 files changed, 57 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..6330973b467
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,26 @@
+pkgbase = yoga
+ pkgdesc = Yummy Optimizer for Gorgeous Assets
+ pkgver = 1.0.0
+ pkgrel = 1
+ url = https://github.com/wanadev/yoga
+ arch = any
+ license = Apache
+ makedepends = python-setuptools
+ depends = python3
+ depends = python-cffi
+ depends = python-pillow
+ depends = python-pycparser
+ depends = python-unidecode
+ depends = python-pyguetzli
+ source = https://files.pythonhosted.org/packages/source/y/yoga/yoga-1.0.0.tar.gz
+ source = assimp-5.0.1.tar.gz::https://github.com/assimp/assimp/archive/refs/tags/v5.0.1.tar.gz
+ sha256sums = a4e7010969602b42af2ca74c95126ee533e3cf9ea9fdaa0c5c316eec7d985f53
+ sha256sums = 11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc
+
+pkgname = yoga
+ depends = python3
+ depends = python-cffi
+ depends = python-pillow
+ depends = python-pycparser
+ depends = python-unidecode
+ depends = python-pyguetzli
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..c7ddb455182
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,31 @@
+pkgbase='yoga'
+pkgname=('yoga')
+_module='yoga'
+pkgver='1.0.0'
+pkgrel=1
+pkgdesc="Yummy Optimizer for Gorgeous Assets"
+url="https://github.com/wanadev/yoga"
+depends=(python3 python-cffi python-pillow python-pycparser python-unidecode python-pyguetzli)
+makedepends=('python-setuptools')
+license=('Apache')
+arch=('any')
+source=("https://files.pythonhosted.org/packages/source/${_module::1}/$_module/$_module-$pkgver.tar.gz"
+ "assimp-5.0.1.tar.gz::https://github.com/assimp/assimp/archive/refs/tags/v5.0.1.tar.gz")
+sha256sums=('a4e7010969602b42af2ca74c95126ee533e3cf9ea9fdaa0c5c316eec7d985f53'
+ '11310ec1f2ad2cd46b95ba88faca8f7aaa1efe9aa12605c55e3de2b977b3dbfc')
+
+build() {
+ cd "${srcdir}/${_module}-${pkgver}"
+ if [ -e assimp/build ]; then
+ rmdir assimp/build
+ rmdir assimp
+ ln -s ../assimp-5.0.1 assimp
+ fi
+ python3 setup.py build_py
+}
+
+package() {
+ depends+=()
+ cd "${srcdir}/${_module}-${pkgver}"
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+}