[arch-commits] Commit in hy/repos (2 files)
Jan Steffens
heftig at archlinux.org
Sun Jul 29 14:04:14 UTC 2018
Date: Sunday, July 29, 2018 @ 14:04:13
Author: heftig
Revision: 364514
archrelease: copy trunk to community-staging-any
Added:
hy/repos/community-staging-any/
hy/repos/community-staging-any/PKGBUILD
(from rev 364513, hy/trunk/PKGBUILD)
----------+
PKGBUILD | 42 ++++++++++++++++++++++++++++++++++++++++++
1 file changed, 42 insertions(+)
Copied: hy/repos/community-staging-any/PKGBUILD (from rev 364513, hy/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2018-07-29 14:04:13 UTC (rev 364514)
@@ -0,0 +1,42 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: JP Cimalando <jp-dev at inbox.ru>
+
+pkgname=hy
+pkgver=0.15.0
+pkgrel=1
+pkgdesc="A dialect of Lisp that's embedded in Python"
+arch=('any')
+url="http://hylang.org/"
+license=('MIT')
+depends=('python-rply' 'python-astor' 'python-clint')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest' 'python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/hylang/hy/archive/$pkgver.tar.gz")
+md5sums=('74e6def3be716730706ff273bfa648eb')
+
+prepare() {
+ cd "$pkgname-$pkgver"
+
+ # usually generated from git metadata and aded to PyPI sdist
+ # PyPI does not include testsuite files.
+ echo "__version__ = '$pkgver'" > hy/version.py
+}
+
+build() {
+ cd "$pkgname-$pkgver"
+ python setup.py build
+}
+
+check(){
+ cd "$pkgname-$pkgver"
+ python setup.py develop --user
+ PATH="$HOME/.local/bin:$PATH"
+ python setup.py pytest --addopts "-k 'not test_bin'"
+}
+
+package() {
+ cd "$pkgname-$pkgver"
+ python setup.py install --root="$pkgdir/" --optimize=1 --skip-build
+ install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
+ rm -rf "$pkgdir/usr/get_version"
+}
More information about the arch-commits
mailing list