summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f2198b8185d28532e567ae37f149d0b34be1ae39 (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
# Maintainer: LekKit <github.com/LekKit>

pkgname=rvvm
pkgver=0.5_r957.76796ba
pkgrel=1
pkgdesc="The RISC-V Virtual Machine"
arch=('x86_64' 'aarch64' 'riscv64' 'riscv' 'ppc' 'i386' 'i686' 'pentium4' 'arm' 'armv7h' 'armv6h')
url="https://github.com/LekKit/RVVM/"
options=(!strip staticlibs)
license=('GPL3')
depends=('libx11' 'libxext')
makedepends=('git' 'make' 'gcc')
provides=('rvvm' 'librvvm')
conflicts=('rvvm' 'librvvm')
source=("$pkgname::git+https://github.com/LekKit/RVVM.git#branch=v0.5-release")
sha256sums=('SKIP')

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

build() {
    cd $pkgname
    # RVVM build system knows better
    unset CFLAGS
    unset LDFLAGS
    make all lib
}

package() {
    cd $pkgname
    unset CFLAGS
    unset LDFLAGS
    make DESTDIR=$pkgdir PREFIX=/usr install
}