Date: Thursday, April 6, 2023 @ 15:47:52
Author: felixonmars
Revision: 1439486
archrelease: copy trunk to community-staging-any
Added:
python-dominate/repos/community-staging-any/
python-dominate/repos/community-staging-any/PKGBUILD
(from rev 1439484, python-dominate/trunk/PKGBUILD)
----------+
PKGBUILD | 29 +++++++++++++++++++++++++++++
1 file changed, 29 insertions(+)
Copied: python-dominate/repos/community-staging-any/PKGBUILD (from rev 1439484,
python-dominate/trunk/PKGBUILD)
===================================================================
--- community-staging-any/PKGBUILD (rev 0)
+++ community-staging-any/PKGBUILD 2023-04-06 15:47:52 UTC (rev 1439486)
@@ -0,0 +1,29 @@
+# Maintainer: Felix Yan <[email protected]>
+
+pkgname=python-dominate
+pkgver=2.7.0
+pkgrel=2
+pkgdesc="A Python library for creating and manipulating HTML documents using
an elegant DOM API"
+url="https://github.com/Knio/dominate"
+license=('LGPL')
+arch=('any')
+depends=('python')
+makedepends=('python-setuptools')
+checkdepends=('python-pytest-runner')
+source=("$pkgname-$pkgver.tar.gz::https://github.com/Knio/dominate/archive/$pkgver.tar.gz")
+sha512sums=('4266d027aafe336f497b396e430daca9333f06a2599e56dca9a9f918ec21451cfc6ebfcc96b53e37c66e94223fdcb11d9552e9426728e3fbfeb8c8d5e010312c')
+
+build() {
+ cd dominate-$pkgver
+ python setup.py build
+}
+
+check() {
+ cd dominate-$pkgver
+ python setup.py pytest
+}
+
+package() {
+ cd dominate-$pkgver
+ python setup.py install --root="$pkgdir" --optimize=1
+}