summaryrefslogtreecommitdiff
path: root/context-git/PKGBUILD
blob: ae2c99b791590be25fb2c956c4a4d3d182bde3e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# 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')
makedepends=('git' 'luatex-svn')
conflicts=(context-minimals-git)
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