summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ab400259e72bcc5b87b66b418dac5c031d0854bd (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
# Maintainer: David Parrish <daveparrish@tutanota.com>

pkgname=mo-git
pkgver=r39.e1b6815
pkgrel=1
pkgdesc="Mustache templates in pure bash"
arch=('i686' 'x86_64')
url="https://github.com/tests-always-included/mo"
license=('MIT')
depends=('bash')
source=("${pkgname}::git+https://github.com/tests-always-included/mo.git")
sha256sums=("SKIP")

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

package() {
  # Install License (License is in README)
  install -Dm644 $pkgname/LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE.md"

  # Install binary
  install -Dm755 $pkgname/mo "${pkgdir}/usr/bin/mo"
}