summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0441e750c56d5b5a3031bcae3934a061b7f1d3bc (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
# Maintainer: yuhr <sdn.pate(at)gmail.com>

pkgname=macrodown-git
pkgver=0.0.0
pkgrel=5
pkgdesc="The translator for Macrodown, a markup language wrapping other markup languages such as TeX/LaTeX or HTML."
url="https://github.com/gfngfn/Macrodown"
license=('MIT')
arch=('i686' 'x86_64')
conflicts=('macrodown')
provides=('macrodown')
makedepends=('git' 'make' 'ocaml' 'ocamlbuild' 'ocaml-findlib' 'ocaml-menhir')
source=('git+https://github.com/gfngfn/Macrodown.git')
md5sums=(SKIP)

pkgver() {
  cd ${srcdir}/Macrodown
  git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g' | sed 's/^v//'
}

build() {
  cd ${srcdir}/Macrodown
  make
}

package() {
  cd ${srcdir}/Macrodown
  install -dm755 "${pkgdir}"/usr/bin
  install -m755 ./macrodown "${pkgdir}"/usr/bin/

  install -d "${pkgdir}/usr/share/licenses/${pkgname}/"
  install -Dm644 LICENSE "${pkgdir}/usr/share/licenses/${pkgname}/"
}