summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorEric Engestrom2017-06-06 16:50:49 +0100
committerEric Engestrom2017-06-06 20:50:22 +0100
commiteb7ab05322383e837918282b1dd1825168c92c9f (patch)
tree5d38d6890f154b64dc2cb526d92e55c83b060570 /PKGBUILD
parent5d14097d4fae39109619dba0e9ee5dd67a016ca9 (diff)
downloadaur-eb7ab05322383e837918282b1dd1825168c92c9f.tar.gz
use git repo
svn is read-only and won't be update anymore
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD18
1 files changed, 8 insertions, 10 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 13ac62256d0..b53f87e9506 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,28 +1,26 @@
# Maintainer: Eric Engestrom <aur [at] engestrom [dot] ch>
pkgname=egl-man-pages
-pkgver=20140330.r33416
+pkgver=20170107.r10
pkgrel=1
pkgdesc="EGL Man Pages"
arch=('any')
url="http://www.opengl.org/wiki/Getting_started/XML_Toolchain_and_Man_Pages"
license=('custom')
makedepends=('libxslt' 'docbook-xsl' 'subversion')
-source=('svn+https://cvs.khronos.org/svn/repos/registry/trunk/public/egl/sdk/docs/man/')
+source=('git+https://github.com/KhronosGroup/EGL-Registry')
md5sums=('SKIP')
pkgver() {
- cd man
+ cd "$srcdir"/EGL-Registry/sdk/docs/man
printf '%s.r%d' \
- $(svn info --show-item last-changed-date | cut -dT -f1 | tr -dc 0-9) \
- $(svn info --show-item revision)
+ $(date -d"$(git log -1 --format=%aD .)" +%Y%m%d) \
+ $(git rev-list --count $(git log -1 --format=%h .))
}
build() {
- cd man
-
- for file in egl*.xml; do
+ for file in "$srcdir"/EGL-Registry/sdk/docs/man/egl*.xml; do
xsltproc --noout --nonet --xinclude \
--stringparam funcsynopsis.style ansi \
--stringparam man.authors.section.enabled 0 \
@@ -39,8 +37,8 @@ build() {
package() {
install -d "$pkgdir"/usr/share/man/man3
- install -m644 "$srcdir"/man/*.3G "$pkgdir"/usr/share/man/man3/
+ install -m644 "$srcdir"/*.3G "$pkgdir"/usr/share/man/man3/
- install -D -m644 "$srcdir"/man/copyright.xml \
+ install -D -m644 "$srcdir"/EGL-Registry/sdk/docs/man/copyright.xml \
"$pkgdir/usr/share/licenses/$pkgname/copyright.xml"
}