summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f5790eb7785b157fbe7d34aa702c894518f12240 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Contributor: André <andre-arch@delorus.de>
pkgname=texbuild-git
_gitname=texbuild
pkgver=r34.1c25a29
pkgrel=1
pkgdesc="This small script continuously builds a latex file in the background. It only overwrites the target pdf file upon a successful and complete build allowing to continuously watch the PDF in PDF viewer."
arch=(any)
url="https://github.com/pbiggar/texbuild"
license=('GPL')
makedepends=('git')
source=('support-synctex.patch' 'git+https://github.com/pbiggar/texbuild.git')
md5sums=('01a5dd8b6bba24d6e0af076e7a8aa981' 'SKIP')

pkgver() {
  cd "${_gitname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

package() {
  cd "$srcdir/$_gitname"
  install -Dm755 texbuild.py ${pkgdir}/usr/bin/texbuild
}