Date: Wednesday, July 4, 2018 @ 21:41:36 Author: eschwartz Revision: 352227
archrelease: copy trunk to community-any Added: hy/repos/community-any/PKGBUILD (from rev 352226, hy/trunk/PKGBUILD) Deleted: hy/repos/community-any/PKGBUILD ----------+ PKGBUILD | 72 +++++++++++++++++++++++++++++++++---------------------------- 1 file changed, 40 insertions(+), 32 deletions(-) Deleted: PKGBUILD =================================================================== --- PKGBUILD 2018-07-04 21:41:12 UTC (rev 352226) +++ PKGBUILD 2018-07-04 21:41:36 UTC (rev 352227) @@ -1,32 +0,0 @@ -# Maintainer: Morten Linderud <foxbo...@archlinux.org> -# Contributor: JP Cimalando <jp-...@inbox.ru> - -pkgname=hy -pkgver=0.14.0 -pkgrel=4 -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=('49f088476ba9eb3c0993299456a8eae5') - -build() { - cd "$pkgname-$pkgver" - python setup.py build -} - -check(){ - cd "$pkgname-$pkgver" - 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" -} Copied: hy/repos/community-any/PKGBUILD (from rev 352226, hy/trunk/PKGBUILD) =================================================================== --- PKGBUILD (rev 0) +++ PKGBUILD 2018-07-04 21:41:36 UTC (rev 352227) @@ -0,0 +1,40 @@ +# Maintainer: Morten Linderud <foxbo...@archlinux.org> +# Contributor: JP Cimalando <jp-...@inbox.ru> + +pkgname=hy +pkgver=0.14.0 +pkgrel=5 +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=('49f088476ba9eb3c0993299456a8eae5') + +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 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" +}