[arch-commits] Commit in python-atom/repos/community-x86_64 (PKGBUILD)

Jelle van der Waa jelle at archlinux.org
Mon Dec 16 09:23:07 UTC 2019


    Date: Monday, December 16, 2019 @ 09:23:06
  Author: jelle
Revision: 537841

archrelease: copy trunk to community-x86_64

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

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

Copied: python-atom/repos/community-x86_64/PKGBUILD (from rev 537840, python-atom/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2019-12-16 09:23:06 UTC (rev 537841)
@@ -0,0 +1,32 @@
+# Maintainer: Jelle van der Waa <jelle at archlinux.org>
+
+_name=atom
+pkgname=python-atom
+pkgver=0.4.3
+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=('7f38db91c62629fd1de16b981ef6bc77a691ac14aabbd46700e074beb8a60cc393ec62006b23405ee5aeca265ec1e793537d96de1f92ad5ab58e0ab8603e2990')
+
+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