Package Details: mkdocs-material-extensions 1.3.1-1

Git Clone URL: https://aur.archlinux.org/mkdocs-material-extensions.git (read-only, click to copy)
Package Base: mkdocs-material-extensions
Description: Markdown extension resources for MkDocs Material
Upstream URL: https://github.com/facelessuser/mkdocs-material-extensions
Licenses: MIT
Conflicts: mkdocs-material-extensions-git, python-mkdocs-material-extensions-git
Provides: mkdocs-material-extensions
Replaces: mkdocs-material-extensions-git, python-mkdocs-material-extensions-git
Submitter: AlphaJack
Maintainer: AlphaJack
Last Packager: AlphaJack
Votes: 2
Popularity: 0.003020
First Submitted: 2021-09-04 09:56 (UTC)
Last Updated: 2023-11-27 12:26 (UTC)

Latest Comments

AlphaJack commented on 2020-12-03 14:26 (UTC)

@ccorn I've added "mkdocs-material>=5.0.0" as dependency, but I'm keeping check() disabled as upstream seems to have broken tests

ccorn commented on 2020-09-14 19:30 (UTC) (edited on 2020-09-14 19:50 (UTC) by ccorn)

The proposed dependency on mkdocs-material>=5.0.0 is actually a checkdepends.

Edit: Wrong, the dependency is mentioned in the module's requirements/project.txt so it should be in depends, as proposed earlier.

ccorn commented on 2020-09-14 19:15 (UTC)

I have a private PKGBUILD for the non-git version. Now I have compared the build logs and completed your PKGBUILD so that the package can be built in a chroot, runs tests, and produces contents and build/check logs that mostly match mine.

Interesting difference: Building the -git package requires python-pip otherwise it downloads itself from PyPI. That has not been the case for the stable 1.0 release.

I have added --optimize=1 to get the *-pyc files as well.

diff --git a/PKGBUILD b/PKGBUILD
index 3c8f807..3fc3415 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,8 +7,11 @@ pkgdesc="Markdown extension resources for MkDocs Material"
 url="https://github.com/facelessuser/mkdocs-material-extensions"
 license=("MIT")
 arch=("any")
-provides=("python-materialx")
-makedepends=("python-setuptools")
+provides=("python-materialx" "python-mkdocs-material-extensions")
+conflicts=("python-mkdocs-material-extensions")
+depends=('mkdocs-material>=5.0.0')
+# Without python-pip, package is downloaded from PyPI
+makedepends=("git" "python-setuptools" "python-pip" "python-wheel")
 source=("git+$url")
 md5sums=("SKIP")

@@ -17,8 +20,19 @@ pkgver(){
  git describe --long --tags | sed "s/\([^-]*-g\)/r\1/;s/-/./g"
 }

+build(){
+  cd "mkdocs-material-extensions"
+  python setup.py build
+}
+
+check(){
+  cd "mkdocs-material-extensions"
+  python setup.py test
+}
+
 package(){
  cd "mkdocs-material-extensions"
- python setup.py install --root="$pkgdir"
+ python setup.py install --root="$pkgdir" --optimize=1
+ install -D -m 644 "README.md" -t "${pkgdir}/usr/share/doc/${pkgname}"
  install -D -m 644 "LICENSE.md" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }