summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba15fb939ecff01971fb2a208ce7c9233598461c (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: Jiuyang Liu <liujiuyang1994@gmail.com>

pkgname=wake
pkgver=0.18.1
pkgrel=1
pkgdesc="The SiFive wake build tool"
arch=('x86_64')
url="https://github.com/sifive/wake"
license=('custom')
depends=('dash' 'sqlite' 'gmp' 'fuse-common' 're2' 'ncurses5-compat-libs')
optdepends=('re2c'
            'utf8proc')
source=("https://github.com/sifive/wake/releases/download/v$pkgver/wake_$pkgver.tar.xz")
md5sums=('b29aef78333b5cb010f938fe6cac67ff')

prepare() {
  cd $srcdir/$pkgname-$pkgver
}

build() {
  cd $srcdir/$pkgname-$pkgver
  make
}

package() {
  cd $srcdir/$pkgname-$pkgver
  ./bin/wake 'install "'$pkgdir'/usr"'
  mkdir -p $pkgdir/usr/share/licenses/wake
  install -Dm644 $srcdir/$pkgname-$pkgver/LICENSE* $pkgdir/usr/share/licenses/wake
}