[arch-commits] Commit in python-solidpython/trunk (PKGBUILD)

Filipe Laíns ffy00 at archlinux.org
Thu Aug 27 19:15:01 UTC 2020


    Date: Thursday, August 27, 2020 @ 19:15:01
  Author: ffy00
Revision: 689937

upgpkg: python-solidpython 1.0.1-1

Added:
  python-solidpython/trunk/PKGBUILD

----------+
 PKGBUILD |   41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

Added: PKGBUILD
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-08-27 19:15:01 UTC (rev 689937)
@@ -0,0 +1,41 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=SolidPython
+pkgname=python-solidpython
+pkgver=1.0.1
+pkgrel=1
+pkgdesc='Python frontend for solid modelling that compiles to OpenSCAD'
+arch=('any')
+url='https://github.com/SolidCode/SolidPython'
+license=('LGPL')
+depends=('python-euclid3' 'python-pypng' 'python-prettytable' 'python-regex')
+makedepends=('python-setuptools' 'python-dephell')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
+sha512sums=('4b2c9193be5389b12759f94fd9aa448dfa96b860fd182e6b17bb9106c83bdff1627a858eeaa46fcfd30b41c418f3986adc9d06cd5bbf2ecf18e31a44abce0816')
+
+prepare() {
+  cd $_pkgname-$pkgver
+
+  sed -i '/tox/d' pyproject.toml
+
+  dephell deps convert --from pyproject.toml --to setup.py
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  PYTHONPATH=$(pwd) solid/test/run_all_tests.sh
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+}
+



More information about the arch-commits mailing list