diff options
-rw-r--r-- | .SRCINFO | 30 | ||||
-rw-r--r-- | PKGBUILD | 39 |
2 files changed, 69 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..28cf6582bb26 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,30 @@ +pkgbase = rvvm + pkgdesc = The RISC-V Virtual Machine + pkgver = 0.5_r806.b9e2c81 + pkgrel = 1 + url = https://github.com/LekKit/RVVM/ + arch = x86_64 + arch = aarch64 + arch = riscv64 + arch = riscv + arch = ppc + arch = i386 + arch = i686 + arch = pentium4 + arch = arm + arch = armv7h + arch = armv6h + license = GPL3 + makedepends = git + makedepends = make + makedepends = gcc + depends = libx11 + depends = libxext + provides = rvvm + provides = librvvm + conflicts = rvvm + conflicts = librvvm + source = rvvm::git+https://github.com/LekKit/RVVM.git + sha256sums = SKIP + +pkgname = rvvm diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..d73c46b2084f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: LekKit <github.com/LekKit> + +pkgname=rvvm +pkgver=0.5_r806.b9e2c81 +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) +license=('GPL3') +depends=('libx11' 'libxext') +makedepends=('git' 'make' 'gcc') +provides=('rvvm' 'librvvm') +conflicts=('rvvm' 'librvvm') +source=("$pkgname::git+https://github.com/LekKit/RVVM.git") +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 BUILDDIR=build BINARY=rvvm_cli lib all +} + +package() { + cd $pkgname + install -Dm644 LICENSE $pkgdir/usr/share/licenses/rvvm/LICENSE + install -Dm644 src/rvvmlib.h $pkgdir/usr/include/rvvmlib.h + install -d $pkgdir/usr/include/rvvm/devices + install -Dm644 src/devices/*.h $pkgdir/usr/include/rvvm/devices + install -Dm755 build/rvvm_cli $pkgdir/usr/bin/rvvm + install -Dm755 build/librvvm.so $pkgdir/usr/lib/librvvm.so +} |