Skip to content

Commit

Permalink
update to 1.70.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tyan-boot committed Jul 1, 2023
1 parent b2879c1 commit cab0bd5
Showing 1 changed file with 27 additions and 13 deletions.
40 changes: 27 additions & 13 deletions rust/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Maintainer: Tyan Boot <tyan-boot@outlook.com>

pkgname=rust-xtensa-git
pkgver=r208923.84ecb3f
pkgver=r222065.ed3726b
pkgrel=1
pkgdesc="Rust for ESP Xtensa"
arch=('x86_64')
Expand All @@ -10,24 +10,38 @@ license=('GPL')
makedepends=('git' 'cmake' 'ninja' 'python')
provides=('rust-xtensa')
source=(
'git+https://github.com/esp-rs/rust#commit=84ecb3f010525cb1b2e7d4da306099c2eaa3e6cd'
'git+https://github.com/esp-rs/rust#commit=ed3726ba7aea45731260ec8f75f05fc60c2b0f22'
)
sha256sums=('SKIP')

build() {
prepare() {
cd ${srcdir}/rust
./configure \
--prefix=/opt/rust-xtensa \
--sysconfdir=/opt/rust-xtensa/etc \
--experimental-targets=Xtensa \
--enable-extended \
--enable-profiler \
--enable-sanitizers \
--disable-docs \
--tools cargo,clippy,rustfmt,src
cat > config.toml <<EOF
changelog-seen = 2
[llvm]
download-ci-llvm = false
experimental-targets = 'Xtensa'
[build]
docs = false
extended = true
tools = ['cargo', 'clippy', 'rustfmt', 'src']
sanitizers = true
profiler = true
[install]
prefix = '/opt/rust-xtensa'
sysconfdir = '/opt/rust-xtensa/etc'
[rust]
channel = 'dev'
EOF
}

build() {
cd ${srcdir}/rust
mkdir -p ${srcdir}/dest-rust
DESTDIR=${srcdir}/dest-rust python x.py install -i
DESTDIR=${srcdir}/dest-rust python x.py install
}

package() {
Expand Down

0 comments on commit cab0bd5

Please sign in to comment.