Date: Thursday, April 6, 2023 @ 02:47:29
Author: felixonmars
Revision: 1438156
archrelease: copy trunk to community-staging-any
Added:
python-entrypoint2/repos/community-staging-any/
python-entrypoint2/repos/community-staging-any/PKGBUILD
(from rev 1438155, python-entrypoint2/trunk/PKGBUILD)
----------+
PKGBUILD | 32 ++++++++++++++++++++++++++++++++
1 file changed, 32 insertions(+)
Copied: python-entrypoint2/repos/community-staging-any/PKGBUILD (from rev
1438155, python-entrypoint2/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 02:47:29 UTC (rev 1438156)
@@ -0,0 +1,32 @@
+# Maintainer: Bruno Pagani <[email protected]>
+
+_pkg=entrypoint2
+pkgname=python-${_pkg}
+pkgver=1.1
+pkgrel=2
+pkgdesc="Easy to use command-line interface for python modules"
+arch=(any)
+url="https://github.com/ponty/entrypoint2"
+license=(BSD)
+depends=(python)
+makedepends=(python-setuptools)
+checkdepends=(python-pytest python-easyprocess)
+source=(https://files.pythonhosted.org/packages/source/${_pkg::1}/${_pkg}/${_pkg}-${pkgver}.tar.gz)
+#source=(${url}/archive/${pkgver}/${pkgname}-${pkgver}.tar.gz)
+sha256sums=('fc0b7fe7b21acdab47a585ab9407ca7e5c4f96cb6888575db6b0ceb91f0e105a')
+
+build() {
+ cd ${_pkg}-${pkgver}
+ python setup.py build
+}
+
+check() {
+ cd ${_pkg}-${pkgver}
+ PYTHONPATH="${PWD}"/build/lib/ pytest -vv --color=yes
+}
+
+package() {
+ cd ${_pkg}-${pkgver}
+ python setup.py install --prefix=/usr --root="${pkgdir}" --skip-build
--optimize=1
+ install -Dm644 LICENSE.txt -t "${pkgdir}"/usr/share/licenses/${pkgname}
+}