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

Evangelos Foutras foutrelis at archlinux.org
Tue Nov 10 09:31:11 UTC 2020


    Date: Tuesday, November 10, 2020 @ 09:31:10
  Author: foutrelis
Revision: 749453

archrelease: copy trunk to community-staging-any

Added:
  python-intelhex/repos/community-staging-any/
  python-intelhex/repos/community-staging-any/PKGBUILD
    (from rev 749452, python-intelhex/trunk/PKGBUILD)

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

Copied: python-intelhex/repos/community-staging-any/PKGBUILD (from rev 749452, python-intelhex/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD	                        (rev 0)
+++ community-staging-any/PKGBUILD	2020-11-10 09:31:10 UTC (rev 749453)
@@ -0,0 +1,41 @@
+# Maintainer: Filipe Laíns (FFY00) <lains at archlinux.org>
+
+_pkgname=intelhex
+pkgname=python-$_pkgname
+pkgver=2.3.0
+pkgrel=1
+pkgdesc='Python library for Intel HEX files manipulations'
+arch=('any')
+url='https://github.com/python-intelhex/intelhex'
+license=('BSD')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
+sha512sums=('bf9a7e29641959e26d8ac2ae2702ed5f4f0003f45793b70cd4cd99454d25304b90749e91a73a794a8363e4bc948ba91f274fc9c448567090c581d91f043f4ee9')
+
+prepare() {
+  cd $_pkgname-$pkgver
+}
+
+build() {
+  cd $_pkgname-$pkgver
+
+  python setup.py build
+}
+
+check() {
+  cd $_pkgname-$pkgver
+
+  python setup.py test
+}
+
+package() {
+  cd $_pkgname-$pkgver
+
+  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+
+  install -Dm 644 LICENSE.txt "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
+}
+
+# vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list