[arch-commits] Commit in python-atom/repos (2 files)

Felix Yan felixonmars at archlinux.org
Fri Nov 13 09:12:43 UTC 2020


    Date: Friday, November 13, 2020 @ 09:12:43
  Author: felixonmars
Revision: 753851

archrelease: copy trunk to community-staging-x86_64

Added:
  python-atom/repos/community-staging-x86_64/
  python-atom/repos/community-staging-x86_64/PKGBUILD
    (from rev 753850, python-atom/trunk/PKGBUILD)

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

Copied: python-atom/repos/community-staging-x86_64/PKGBUILD (from rev 753850, python-atom/trunk/PKGBUILD)
===================================================================
--- community-staging-x86_64/PKGBUILD	                        (rev 0)
+++ community-staging-x86_64/PKGBUILD	2020-11-13 09:12:43 UTC (rev 753851)
@@ -0,0 +1,32 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+_name=atom
+pkgname=python-atom
+pkgver=0.6.0
+pkgrel=1
+pkgdesc='Memory efficient Python objects'
+arch=(x86_64)
+url='https://github.com/nucleic/atom'
+license=('BSD' 'custom')
+depends=(python python-setuptools)
+checkdepends=(python-pytest)
+source=($pkgname-$pkgver.tar.gz::https://github.com/nucleic/atom/archive/$pkgver.tar.gz)
+sha512sums=('ff02baa80c1cfaf113a0dc153f825dc76cc01084aea0f34c6bb2f3e6926290d105ee433ab0abb2ad27a87fb5e76303fc2b4456c25fde3bab666234c4d3bbb4be')
+
+build() {
+  cd ${_name}-${pkgver}
+  python setup.py build
+}
+
+check() {
+  cd ${_name}-${pkgver}
+  local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))')
+
+  PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" pytest
+}
+
+package() {
+  cd ${_name}-${pkgver}
+  python setup.py install -O1 --root="${pkgdir}" --skip-build
+  install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+}



More information about the arch-commits mailing list