Date: Thursday, April 6, 2023 @ 18:31:02
Author: felixonmars
Revision: 1440242
archrelease: copy trunk to community-staging-x86_64
Added:
python-traits/repos/community-staging-x86_64/
python-traits/repos/community-staging-x86_64/PKGBUILD
(from rev 1440240, python-traits/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: python-traits/repos/community-staging-x86_64/PKGBUILD (from rev
1440240, python-traits/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD (rev 0)
+++ community-staging-x86_64/PKGBUILD 2023-04-06 18:31:02 UTC (rev 1440242)
@@ -0,0 +1,29 @@
+# Maintainer: Andrzej Giniewicz <[email protected]>
+
+pkgname=python-traits
+pkgver=6.4.1
+pkgrel=2
+pkgdesc="Explicitly typed attributes for Python"
+arch=('x86_64')
+url="https://github.com/enthought/traits"
+license=('BSD')
+depends=('python')
+optdepends=('python-numpy: to support the trait types for arrays'
+ 'python-traitsui: to support Gui Views')
+makedepends=('python-setuptools')
+source=("traits-${pkgver}.tar.gz::https://github.com/enthought/traits/archive/${pkgver}.tar.gz")
+sha256sums=('974b682d112dfb531136d1185fe8d5f05ffd9e54a76b6dcd9715de85655ee30c')
+
+build() {
+ cd traits-$pkgver
+
+ python setup.py build
+}
+
+package() {
+ cd traits-$pkgver
+
+ python setup.py install --root="$pkgdir"/ --optimize=1
+
+ install -D LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}