From d0cbc8b72dc47be67b41c7f51aa58650f54194d3 Mon Sep 17 00:00:00 2001 From: Philipp Gesang Date: Mon, 5 Sep 2016 23:49:03 +0200 Subject: context-git: add preliminary PKGBUILD --- context-git/PKGBUILD | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 context-git/PKGBUILD (limited to 'context-git') 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 +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 -- cgit v1.2.3