summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6707b0f4e6d84427b03c6245724ac90107b83362 (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
# Mainintainer : Lucas Rooyakkers <lucas dot rooyakkers at pm dot me>
pkgname=pnglatex
pkgver=r142.48cc55d
pkgrel=1
pkgdesc="Small script to turn LaTeX formulas into png images"
arch=('any')
url="https://github.com/mneri/pnglatex"
license=('GPL3')
depends=('texlive-bin' 'imagemagick' 'optipng')
makedepends=('git')
optdepends=('xorg-xdpyinfo: get dpi resolution of screen')
provides=("pnglatex")
conflicts=('pnglatex')
md5sums=('SKIP')
source=("$pkgname::git+https://github.com/mneri/pnglatex")

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

package() {
  cd "$pkgname"
  install -Dm755 "pnglatex" "${pkgdir}/usr/bin/pnglatex"
  install -Dm755 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}

# vim:set ts=2 sw=2 et: