summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 8d4b2bcc74f3d8040143b9162538a4f879509cd4 (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
34
35
36
37
38
39
40
41
# Maintainer: Thor K. Høgås <thor@roht.no>
pkgname=pandoc-ac-git
_pkgname=pandoc-ac
pkgver=0.2.0.r5.56a3957
pkgrel=2
pkgdesc="Simple Pandoc filter for a clean syntax to LaTeX acronyms"
arch=('x86_64')
url="https://github.com/thor/pandoc-ac"
license=('MIT' 'Apache')
groups=()
depends=()
makedepends=('cargo')
checkdepends=()
optdepends=()
provides=('pandoc-ac')
conflicts=('pandoc-ac')
backup=()
source=("$_pkgname::git+https://github.com/thor/pandoc-ac.git")
noextract=()
md5sums=('SKIP')
validpgpkeys=()

pkgver() {
  cd "$_pkgname"
  printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
  cd "$_pkgname"
  cargo build --release --locked --all-features
}

check() {
  cd "$_pkgname"
  cargo test --release --locked --all-features
}

package() {
  cd "$_pkgname"
  install -Dm 755 target/release/${_pkgname} -t "${pkgdir}/usr/bin"
}