summaryrefslogtreecommitdiff
path: root/context-git/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'context-git/PKGBUILD')
-rw-r--r--context-git/PKGBUILD52
1 files changed, 52 insertions, 0 deletions
diff --git a/context-git/PKGBUILD b/context-git/PKGBUILD
new file mode 100644
index 0000000..bcdfaf5
--- /dev/null
+++ b/context-git/PKGBUILD
@@ -0,0 +1,52 @@
+# Context from Git mirror
+# Maintainer: Philipp Gesang <phg@phi-gamma.net>
+pkgname=context-git
+pkgver=3f59c56
+pkgrel=1
+pkgdesc="The ConTeXt typesetting system; sources from Git"
+arch=(any)
+url="http://pragma-ade.nl"
+license=('GPL2')
+groups=()
+depends=()
+makedepends=('git' 'luatex-svn')
+provides=()
+conflicts=(context-minimals-git)
+replaces=()
+backup=()
+options=()
+install=
+noextract=()
+sha256sums=('SKIP')
+
+_git_repo=bitbucket.org/phg/context-mirror.git
+_git_branch=beta
+_git_checkout=context-mirror-git
+source=("${_git_checkout}::git+https://${_git_repo}#branch=${_git_branch}")
+
+pkgver() {
+ cd "${_git_checkout}"
+ # no tags in mirror repo
+ git describe --always
+}
+
+build() {
+ cd "${srcdir}"
+ if [[ ! -d "${_git_checkout}" ]]; then
+ msg "expected repo checkout at ${srcdir}/${_git_checkout}"
+ exit -1
+ fi
+}
+
+package() {
+ local subdirs=( bibtex colors context doc fonts metapost scripts tex web2c )
+ local dst="${pkgdir}/usr/share/${pkgname}"
+ install -dm755 "${dst}"
+
+ cd "${srcdir}"
+ for dir in ${subdirs[@]} ; do
+ cp -ra "${_git_checkout}/${dir}" "${dst}/"
+ done
+}
+
+# vim:ft=sh:et:sw=2:ts=8