summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d9cf95cb09060d0a545e11c4533fddf46aa5e1b4 (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
# Maintainer: Rokoucha <aur@rokoucha.net>
pkgname=mdmg
_pkgver=0.1.2-alpha.2
pkgver=${_pkgver//-/_}
pkgrel=1
pkgdesc="A scaffold prototype code tool"
url="https://github.com/himanoa/mdmg"
source=("https://github.com/himanoa/${pkgname}/archive/v${_pkgver}.tar.gz")
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64')
license=('MIT')
makedepends=('cargo')
sha256sums=('0efef44157f153e5284e7c2b0f6acd4bdec5eec54ce4048047b166ed2d7818b5')

check() {
  cd "$srcdir/$pkgname-$_pkgver"

  cargo test --release --locked
}

build () {
  cd "$srcdir/$pkgname-$_pkgver"

  cargo build --release --locked
}

package() {
  cd "$srcdir/$pkgname-$_pkgver"

  install -Dm 755 target/release/${pkgname} -t "${pkgdir}/usr/bin"
}