summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorAbuzer Rafey2018-02-26 04:42:39 -0500
committerAbuzer Rafey2018-02-26 04:42:39 -0500
commitded8bf67f577fe5331b8b56b43af8e4e1b86d28e (patch)
tree5c22e906116da2dad63581fc4c7e297b603962e4
parent5449d0da69d977540c1ee4e2621809550a8ba7e9 (diff)
downloadaur-ded8bf67f577fe5331b8b56b43af8e4e1b86d28e.tar.gz
Build release from git source
-rw-r--r--.SRCINFO6
-rw-r--r--PKGBUILD16
2 files changed, 14 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index babeb9a827b..f9b1799560e 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = mkdocs-material
pkgdesc = Material design theme for MkDocs
- pkgver = 2.6.3
+ pkgver = 2.6.6
pkgrel = 1
url = http://squidfunk.github.io/mkdocs-material/
arch = any
@@ -9,8 +9,8 @@ pkgbase = mkdocs-material
depends = mkdocs
depends = python-pygments
depends = pymdown-extensions
- source = https://github.com/squidfunk/mkdocs-material/archive/2.6.3.tar.gz
- sha256sums = 13931b39657fdf991181d2378062acb8811bae8e29f1bd3229e5c3028ff77340
+ source = git+https://github.com/squidfunk/mkdocs-material.git
+ sha256sums = SKIP
pkgname = mkdocs-material
diff --git a/PKGBUILD b/PKGBUILD
index 69701815d98..d2c4c152d38 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
# Maintainer: Abuzer Rafey <arafey@vyvygen.org>
# Contributor: Jacqueline Outka <joutka@vyvygen.org>
pkgname="mkdocs-material"
-pkgver=2.6.3
+pkgver=2.6.6
pkgrel=1
pkgdesc="Material design theme for MkDocs"
arch=("any")
@@ -10,15 +10,21 @@ url="http://squidfunk.github.io/mkdocs-material/"
license=("MIT")
depends=("mkdocs" "python-pygments" "pymdown-extensions")
makedepends=("python-setuptools")
-source=("https://github.com/squidfunk/mkdocs-material/archive/${pkgver}.tar.gz")
-sha256sums=('13931b39657fdf991181d2378062acb8811bae8e29f1bd3229e5c3028ff77340')
+source=("git+https://github.com/squidfunk/mkdocs-material.git")
+
+pkgver() {
+ cd "${srcdir}/${pkgname}"
+ git describe --long --tags | cut -d- -f1
+}
build() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${pkgname}"
+ git checkout ${pkgver}
python setup.py build
}
package() {
- cd "${srcdir}/${pkgname}-${pkgver}"
+ cd "${srcdir}/${pkgname}"
python setup.py install --root="${pkgdir}"
}
+sha256sums=('SKIP')