blob: c09831bf53dafb9953f534908b579b7bf16afd37 (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# Maintainer: VitalyR <vr AT vitalyr DOT com>
# Maintainer: ltoenning <dev@ltoenning.de>
pkgname=ripes-git
pkgver=2.2.6
pkgrel=1
pkgdesc="A graphical processor simulator and assembly editor for the RISC-V ISA"
arch=('x86_64')
url="https://github.com/mortbopet/Ripes"
license=('MIT')
depends=('qt6-base' 'qt6-charts')
makedepends=('cmake' 'git' 'gcc12')
source=("${pkgname}-${pkgver}::git+https://github.com/mortbopet/Ripes.git"
'VSRTL::git+https://github.com/mortbopet/VSRTL.git'
'ELFIO::git+https://github.com/serge1/ELFIO.git'
'libelfin::git+https://github.com/mortbopet/libelfin.git'
'cpp-mmaplib::git+https://github.com/yhirose/cpp-mmaplib.git'
'Signals::git+https://github.com/pbhogan/Signals.git'
'better-enums::git+https://github.com/mortbopet/better-enums.git'
'cereal::git+https://github.com/USCiLab/cereal.git'
)
sha256sums=('SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP'
'SKIP')
prepare(){
mkdir -p $srcdir/${pkgname}-${pkgver}/build
cd $srcdir/${pkgname}-${pkgver}
# Configure git submodules
git submodule init
git config submodule.external/ELFIO.url "$srcdir/ELFIO"
git config submodule.external/VSRTL.url "$srcdir/VSRTL"
git config submodule.external/libelfin.url "$srcdir/libelfin"
git -c protocol.file.allow=always submodule update
# Configure git submodules of VSRTL
cd $srcdir/${pkgname}-${pkgver}/external/VSRTL
git submodule init
git config submodule.external/better-enums.url "$srcdir/better-enums"
git config submodule.external/cereal.url "$srcdir/cereal"
git config submodule.external/Signals.url "$srcdir/Signals"
git -c protocol.file.allow=always submodule update
# Configure git submodules of libelfin
cd $srcdir/${pkgname}-${pkgver}/external/libelfin
git submodule init
git config submodule.external/cpp-mmaplib.url "$srcdir/cpp-mmaplib"
git -c protocol.file.allow=always submodule update
}
build(){
cd $srcdir/${pkgname}-${pkgver}/build
CC=gcc-12 CXX=g++-12 cmake -DCMAKE_BUILD_TYPE=Release ..
CC=gcc-12 CXX=g++-12 make -j $(nproc)
}
package(){
sed -i 's/Exec=Ripes/Exec=ripes/g' "$srcdir/${pkgname}-${pkgver}/appdir/usr/share/applications/Ripes.desktop"
install -Dm 755 "$srcdir/${pkgname}-${pkgver}/build/Ripes" "$pkgdir/usr/bin/ripes"
install -Dm 644 "$srcdir/${pkgname}-${pkgver}/appdir/usr/share/applications/Ripes.desktop" "${pkgdir}/usr/share/applications/Ripes.desktop"
}
|