summaryrefslogtreecommitdiff
path: root/community/texvc/PKGBUILD
blob: 4bb95640a2f95ae32c5ee93e12b4de8059a14584 (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
# $Id: PKGBUILD 102438 2013-12-11 10:30:40Z spupykin $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>

pkgname=texvc
pkgver=1.22
pkgrel=1
pkgdesc="tex to HTML/MathML/png converter used by mediawiki"
arch=(i686 x86_64 'mips64el')
url="http://www.mediawiki.org/wiki/Extension:Math"
license=("GPL")
depends=('imagemagick' 'ghostscript' 'texlive-core' 'texlive-latexextra')
makedepends=('ocaml' 'git')
#source=(mediawiki-math-$pkgver::git+https://git.wikimedia.org/git/mediawiki/extensions/Math.git#branch=REL${pkgver/./_})
source=("mediawiki-math-${_basever}.tar.gz::https://codeload.github.com/wikimedia/mediawiki-extensions-Math/legacy.tar.gz/REL${pkgver/./_}")
md5sums=('b595f6a32b2380040ce5401701a6a3a2')

prepare() {
  cd $srcdir
  mv wikimedia-mediawiki-extensions-Math-b3ad6b9 mediawiki-math-$pkgver
}

build() {
  cd $srcdir/mediawiki-math-$pkgver/math
  make -j1
}

package() {
  cd $srcdir/mediawiki-math-$pkgver/math
  install -d -m 0755 $pkgdir/usr/bin
  install -m 0755 texvc.bc $pkgdir/usr/bin
}