[arch-commits] Commit in (4 files)
Eli Schwartz
eschwartz at archlinux.org
Mon Mar 30 14:07:46 UTC 2020
Date: Monday, March 30, 2020 @ 14:07:46
Author: eschwartz
Revision: 606994
addpkg: python-dephell-changelogs 0.0.1-1: new dephell dependency
Added:
python-dephell-changelogs/
python-dephell-changelogs/repos/
python-dephell-changelogs/trunk/
python-dephell-changelogs/trunk/PKGBUILD
----------+
PKGBUILD | 35 +++++++++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
Added: python-dephell-changelogs/trunk/PKGBUILD
===================================================================
--- python-dephell-changelogs/trunk/PKGBUILD (rev 0)
+++ python-dephell-changelogs/trunk/PKGBUILD 2020-03-30 14:07:46 UTC (rev 606994)
@@ -0,0 +1,35 @@
+# Maintainer: Eli Schwartz <eschwartz at archlinux.org>
+
+_pkgname=dephell_changelogs
+pkgname=python-dephell-changelogs
+pkgver=0.0.1
+pkgrel=1
+pkgdesc="Find changelog for github repository, local dir, parse changelog"
+arch=('any')
+url="https://github.com/dephell/${_pkgname}"
+license=('MIT')
+depends=('python-requests')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest')
+source=("https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/${_pkgname}/${_pkgname}-${pkgver}.tar.gz")
+sha256sums=('e639a3d08d389e22fbac0cc64181dbe93c4b4ba9f0134e273e6dd3e26ae70b21')
+b2sums=('6ec5383ff411e944ea90ae1a47061fdbd3f8bb5cfe9342936a3bebe8fc1e1791f7a5b7dfdb6d2d25bcee3ab1bf28d8bbf9101bb5d317afb5705e909964c49f68')
+
+build(){
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py build
+}
+
+check() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python -m pytest
+}
+
+package() {
+ cd "${srcdir}"/${_pkgname}-${pkgver}
+
+ python setup.py install --root="${pkgdir}" --optimize=1 --skip-build
+ install -Dm644 LICENSE "${pkgdir}"/usr/share/licenses/${pkgname}/LICENSE
+}
More information about the arch-commits
mailing list