diff options
author | srv <enmanuel.saravia.externo@pandero.com.pe> | 2025-05-14 17:42:18 +0200 |
---|---|---|
committer | srv <enmanuel.saravia.externo@pandero.com.pe> | 2025-05-14 17:42:18 +0200 |
commit | 647f1c4b13a8732c984275c761003695f17d364c (patch) | |
tree | 8e5c75a6b36e8c0a170f26bf8120eeef8f8bfb3e | |
parent | 082b42512caee2ee33a891d3a8de5de9902448fa (diff) |
Improve rust-bin but test is required
-rw-r--r-- | rust-bin/PKGBUILD | 22 | ||||
-rw-r--r-- | rust-bin/rust-bin-1.78.0-1-x86_64-package.log | 17 | ||||
-rw-r--r-- | rust-bin/rust-bin-1.78.0-1-x86_64-prepare.log | 0 |
3 files changed, 31 insertions, 8 deletions
diff --git a/rust-bin/PKGBUILD b/rust-bin/PKGBUILD index ee1d81c..dc1957c 100644 --- a/rust-bin/PKGBUILD +++ b/rust-bin/PKGBUILD @@ -1,8 +1,8 @@ -# Maintainer: Tu Nombre <tu-email> +# Maintainer: Saravia pkgname=rust-bin -pkgver=1.78.0 # Cambia a la versión deseada +pkgver=1.78.0 pkgrel=1 -pkgdesc="Systems programming language focused on safety, speed and concurrency" +pkgdesc="Systems programming language focused on safety, speed, and concurrency (binary distribution)" arch=('x86_64') url="https://www.rust-lang.org/" license=('MIT' 'Apache') @@ -10,12 +10,18 @@ depends=('gcc' 'libffi') source=("https://static.rust-lang.org/dist/rust-${pkgver}-x86_64-unknown-linux-gnu.tar.gz") sha512sums=('551f6c672918ef43b9ca7654085488f40b7722062129fc2fdc850c0f92473279cc4229a17ffbcbd605d5a4d24c6207a6d4ab2334b4d9a988abdef4e0b7e0d824') -build() { - cd "$srcdir/rust-${pkgver}-x86_64-unknown-linux-gnu" - ./install.sh --destdir="$pkgdir" --prefix=/usr +options=('!strip') # Evita errores por archivos de formato raro + +prepare() { + tar -xzf "rust-${pkgver}-x86_64-unknown-linux-gnu.tar.gz" } package() { - # Nada que hacer aquí porque `install.sh` ya instaló en $pkgdir/usr - return 0 + cd "$srcdir/rust-${pkgver}-x86_64-unknown-linux-gnu" + + # Instala en el entorno fakeroot correcto + ./install.sh --prefix=/usr --destdir="$pkgdir" + + # Elimina archivos innecesarios (opcional) + rm -rf "$pkgdir/usr/share/doc" } diff --git a/rust-bin/rust-bin-1.78.0-1-x86_64-package.log b/rust-bin/rust-bin-1.78.0-1-x86_64-package.log new file mode 100644 index 0000000..48cf1ef --- /dev/null +++ b/rust-bin/rust-bin-1.78.0-1-x86_64-package.log @@ -0,0 +1,17 @@ +install: creating uninstall script at /build/rust-bin/pkg/rust-bin/usr/lib/rustlib/uninstall.sh +install: installing component 'rustc' +install: installing component 'rust-std-x86_64-unknown-linux-gnu' +install: installing component 'rust-docs' +install: installing component 'rust-docs-json-preview' +install: installing component 'rust-demangler-preview' +install: installing component 'cargo' +install: installing component 'rustfmt-preview' +install: installing component 'rls-preview' +install: installing component 'rust-analyzer-preview' +install: installing component 'llvm-tools-preview' +install: installing component 'clippy-preview' +install: installing component 'rust-analysis-x86_64-unknown-linux-gnu' +install: WARNING: failed to run ldconfig. this may happen when not installing as root. run with --verbose to see the error + + rust installed. + diff --git a/rust-bin/rust-bin-1.78.0-1-x86_64-prepare.log b/rust-bin/rust-bin-1.78.0-1-x86_64-prepare.log new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/rust-bin/rust-bin-1.78.0-1-x86_64-prepare.log |