Skip to content

Commit

Permalink
Add rust toolchain and retris package (#1)
Browse files Browse the repository at this point in the history
* Add rust nightly to the toltec Docker image
* Add retris package 0.5.3-1 with oxide info
  • Loading branch information
LinusCDE authored Sep 4, 2020
1 parent 89de284 commit 5f5b0cc
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
5 changes: 5 additions & 0 deletions image/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ RUN curl https://remarkable.engineering/oecore-x86_64-cortexa9hf-neon-toolchain-
RUN mkdir -p /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/share/cmake \
&& curl https://raw.githubusercontent.com/openembedded/openembedded-core/uninative-2.9/meta/recipes-devtools/cmake/cmake/OEToolchainConfig.cmake -o /usr/local/oecore-x86_64/sysroots/x86_64-oesdk-linux/usr/share/cmake/OEToolchainConfig.cmake

# Add rust nightly with armv7 target
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs \
| sh -s -- --default-toolchain nightly --target armv7-unknown-linux-gnueabihf --profile minimal -y -q
ENV PATH="$PATH:/root/.cargo/bin"

# Install opkg-utils
RUN git clone git://git.yoctoproject.org/opkg-utils /opkg-utils \
&& cd /opkg-utils \
Expand Down
1 change: 1 addition & 0 deletions image/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ It is based on Debian Buster and contains:
* [The reMarkable build toolchain](https://remarkable.engineering).
* Additional files for making the toolchain work with CMake.
* [opkg-utils](https://git.yoctoproject.org/cgit/cgit.cgi/opkg-utils/).
* Rust nightly with the armv7-unknown-linux-gnueabihf target
* Git, Python and usual building tools.

Published at <https://hub.docker.com/repository/docker/matteodelabre/toltec>.
21 changes: 21 additions & 0 deletions package/retris/package
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# vim: set ft=sh:
pkgname=retris
pkgver=0.5.3-1
pkgdesc="Implementation of rust tetris_core on the reMarkable using libremarkable"
section=games
maintainer="Linus K. <linus@cosmos-ink.net>"
license=MIT

origin=https://github.com/LinusCDE/retris.git
revision=206f43c4b0f146622641cab22313cb8b27109cff

build() {
cargo build --release
$STRIP target/armv7-unknown-linux-gnueabihf/release/retris
}

package() {
install -D -m 755 "$srcdir"/target/armv7-unknown-linux-gnueabihf/release/retris "$pkgdir"/opt/bin/retris
install -D -m 644 "$srcdir"/oxide "$pkgdir"/opt/etc/draft/retris
install -D -m 644 "$srcdir"/icon.png "$pkgdir"/opt/etc/draft/icons/retris.png
}

0 comments on commit 5f5b0cc

Please sign in to comment.