Date: Thursday, April 6, 2023 @ 13:10:28
Author: felixonmars
Revision: 1438784
archrelease: copy trunk to community-staging-any
Added:
python-pretend/repos/community-staging-any/
python-pretend/repos/community-staging-any/PKGBUILD
(from rev 1438783, python-pretend/trunk/PKGBUILD)
----------+
PKGBUILD | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
Copied: python-pretend/repos/community-staging-any/PKGBUILD (from rev 1438783,
python-pretend/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 13:10:28 UTC (rev 1438784)
@@ -0,0 +1,30 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-pretend
+pkgver=1.0.9
+pkgrel=11
+pkgdesc="A library for stubbing in Python"
+arch=('any')
+license=('BSD')
+url="https://github.com/alex/pretend"
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/alex/pretend/archive/v$pkgver.tar.gz")
+sha512sums=('976e3272557aecfb11e4147a868ea96e23546e277d57d726f41b945103bef3451039716e6bbc5082d691fa1fd331c06b3d0f8b254deb0510948153571326eaf0')
+
+build() {
+ cd "$srcdir"/pretend-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd "$srcdir"/pretend-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd pretend-$pkgver
+ python setup.py install --root="${pkgdir}" --optimize=1
+ install -D -m644 LICENSE.rst
"${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.rst"
+}