summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 85e12ad1ac4961906215b943e9bdf1c63ffbc7d2 (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
# Maintainer: Kaizhao Zhang <zhangkaizhao@gmail.com>

_pkgname=mdproof

pkgname="${_pkgname}-git"
pkgver=r37.c87db7a
pkgrel=1
pkgdesc="A standalone markdown to PDF converter"
url="https://github.com/Geemili/mdproof"
makedepends=('cargo')
arch=('x86_64')
source=("git+${url}.git")
sha256sums=('SKIP')

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

build() {
  cd "${srcdir}/${_pkgname}"
  cargo build --release
}

package() {
  cd "${srcdir}/${_pkgname}"
  install -D -m755 target/release/mdproof "${pkgdir}/usr/bin/mdproof"
  install -D -m644 README.md "${pkgdir}/usr/share/doc/${_pkgname}/README.md"
}