summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 027baab9f8ffa4a3d0dc9ca5a4eb80bb306f32d2 (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
# Maintainer: Wesley Moore <wes@wezm.net>
pkgname=asd
pkgver=0.1.0
pkgrel=1
pkgdesc='Preview Github Markdown Offline'
arch=('i686' 'x86_64')
url="https://github.com/grapegrip/asd"
license=('MIT')
depends=()
conflicts=('asd-git')
makedepends=('rust' 'cargo')
source=("$pkgname-$pkgver.tar.gz::$url/archive/$pkgver.tar.gz")
sha256sums=('9257a56c4c22460d2927dcdeb4e4ac16787552c3a213c1e1baf23fd4e270b9e2')

build() {
  cd "$pkgname-$pkgver"
  cargo build --release
}

package() {
  install -Dm755 "$srcdir/$pkgname-$pkgver/target/release/$pkgname" "$pkgdir/usr/bin/$pkgname"
  # License is coming in next release
  # install -Dm644 "$srcdir/$pkgname-$pkgver/LICENSE" "$pkgdir/usr/share/licenses/$pkgname"
}