summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rust-bin/PKGBUILD22
-rw-r--r--rust-bin/rust-bin-1.78.0-1-x86_64-package.log17
-rw-r--r--rust-bin/rust-bin-1.78.0-1-x86_64-prepare.log0
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