diff options
author | Universebenzene | 2023-05-30 16:23:10 +0800 |
---|---|---|
committer | Universebenzene | 2023-05-30 16:23:10 +0800 |
commit | eca73bf59c3d17e353135741335749933ad31ff0 (patch) | |
tree | 7f0c3d5243783064d64dc32e153aa4e747af1333 | |
download | aur-eca73bf59c3d17e353135741335749933ad31ff0.tar.gz |
Initial import 1.1.2
-rw-r--r-- | .SRCINFO | 17 | ||||
-rw-r--r-- | .gitignore | 8 | ||||
-rw-r--r-- | PKGBUILD | 46 |
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..44537733e67f --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,17 @@ +pkgbase = mkdocs-git-committers-plugin-2 + pkgdesc = An MkDocs plugin to create a list of contributors on the page + pkgver = 1.1.2 + pkgrel = 1 + url = https://github.com/ojacques/mkdocs-git-committers-plugin-2 + arch = any + license = MIT + checkdepends = python-nose + makedepends = python-setuptools-scm + source = https://files.pythonhosted.org/packages/source/m/mkdocs-git-committers-plugin-2/mkdocs-git-committers-plugin-2-1.1.2.tar.gz + md5sums = 6c5c92917d94d2e3147d4bf1b38781fe + +pkgname = mkdocs-git-committers-plugin-2 + depends = mkdocs>=1.0.3, + depends = python-gitpython + depends = python-requests + depends = python-beautifulsoup4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e896dcd6056d --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +src +pkg +*.src.tar.gz +*.tar.gz +*.tar.bz2 +*.part +*.pkg.tar.* +*.log diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..7c39087d7c82 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,46 @@ +# Maintainer: Astro Benzene <universebenzene at sina dot com> + +pkgbase=mkdocs-git-committers-plugin-2 +_pyname=${pkgbase} +pkgname=("${_pyname}") +pkgver=1.1.2 +pkgrel=1 +pkgdesc="An MkDocs plugin to create a list of contributors on the page" +arch=('any') +url="https://github.com/ojacques/mkdocs-git-committers-plugin-2" +license=('MIT') +makedepends=('python-setuptools-scm') +# 'python-wheel' +# 'python-build' +# 'python-installer') +#checkdepends=('python-pytest') +checkdepends=('python-nose') +source=("https://files.pythonhosted.org/packages/source/${_pyname:0:1}/${_pyname}/${_pyname}-${pkgver}.tar.gz") +md5sums=('6c5c92917d94d2e3147d4bf1b38781fe') + +build() { + cd ${srcdir}/${_pyname}-${pkgver} + +# python -m build --wheel --no-isolation + python setup.py build +} + +check() { + cd ${srcdir}/${_pyname}-${pkgver} + +# pytest -vv --color=yes + nosetests || warning "Tests failed" +} + +package_mkdocs-git-committers-plugin-2() { + depends=('mkdocs>=1.0.3', + 'python-gitpython' + 'python-requests' + 'python-beautifulsoup4') + cd ${srcdir}/${_pyname}-${pkgver} + + install -D -m644 LICENSE -t "${pkgdir}/usr/share/licenses/${pkgname}" + install -D -m644 README.md -t "${pkgdir}/usr/share/doc/${pkgname}" +# python -m installer --destdir="${pkgdir}" dist/*.whl + python setup.py install --root=${pkgdir} --prefix=/usr --optimize=1 +} |