Skip to content

Commit

Permalink
fix: linux-build-fix1
Browse files Browse the repository at this point in the history
  • Loading branch information
akhilender-bongirwar committed Dec 21, 2024
1 parent cf9cb0e commit 50e40fd
Showing 1 changed file with 24 additions and 22 deletions.
46 changes: 24 additions & 22 deletions recipes/renode/recipe.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,44 +11,46 @@ source:

build:
script: |
sudo apt-get update
sudo apt-get install -y ca-certificates gnupg
sudo gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/mono-official-archive-keyring.gpg --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BFF6A14DA29AA6A19B38D3D831EF
echo "deb [signed-by=/usr/share/keyrings/mono-official-archive-keyring.gpg] https://download.mono-project.com/repo/ubuntu stable-focal main" | sudo tee /etc/apt/sources.list.d/mono-official-stable.list
sudo apt-get update
sudo apt-get install -y mono-devel
sudo apt-get install -y git automake autoconf libtool g++ coreutils policykit-1 \
libgtk2.0-dev uml-utilities gtk-sharp2 python3
rm -rf renode
git clone https://github.com/renode/renode.git
cd renode
git checkout v${{ version }}
./build.sh -p
./build.sh
mkdir -p $PREFIX/bin
cp output/bin/Release/Renode $PREFIX/bin/renode
cp output/bin/Release/Renode.exe $PREFIX/bin/renode.exe
echo "#!/bin/bash" > $PREFIX/bin/renode
echo "mono $PREFIX/bin/renode.exe \"\$@\"" >> $PREFIX/bin/renode
chmod +x $PREFIX/bin/renode
requirements:
build:
- ${{ compiler('cxx') }}
- mono
- make
- git
- automake
- autoconf
- libtool
- coreutils
- python
- pip
- if: linux
then:
- libudev
- libclang
- if: osx
then:
- gtk3
- libclang
host:
- mono
- dotnet
- python
- if: linux
then:
- libudev
- libclang
- if: osx
then:
- gtk3
- libclang
run:
- mono
- python
Expand Down

0 comments on commit 50e40fd

Please sign in to comment.