summaryrefslogtreecommitdiff
path: root/context-git/PKGBUILD
blob: bcdfaf56a8895ac186f31e7fa5300332bf3d1a0c (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
45
46
47
48
49
50
51
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