From ce6a8a6238e459ba3c232ee23ce751cd967f7b6b Mon Sep 17 00:00:00 2001 From: xdavius Date: Thu, 5 Sep 2024 15:20:17 +0200 Subject: [PATCH 1/3] add: lib32-rust-bin --- packagelist | 1 + packages/lib32-rust-bin/.SRCINFO | 15 ++++++++++++ .../lib32-rust-bin/lib32-rust-bin.pacscript | 24 +++++++++++++++++++ srclist | 16 +++++++++++++ 4 files changed, 56 insertions(+) create mode 100644 packages/lib32-rust-bin/.SRCINFO create mode 100644 packages/lib32-rust-bin/lib32-rust-bin.pacscript diff --git a/packagelist b/packagelist index 7070e70ace..795f2fad06 100644 --- a/packagelist +++ b/packagelist @@ -251,6 +251,7 @@ lbry-deb lemonbar-xft-git lens lf-bin +lib32-rust-bin libcamera-git libcutefish-git libdisplay-info-git diff --git a/packages/lib32-rust-bin/.SRCINFO b/packages/lib32-rust-bin/.SRCINFO new file mode 100644 index 0000000000..171da25904 --- /dev/null +++ b/packages/lib32-rust-bin/.SRCINFO @@ -0,0 +1,15 @@ +pkgbase = lib32-rust-bin + gives = lib32-rust + pkgver = 1.80.1 + pkgdesc = Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety + url = https://www.rust-lang.org/ + arch = x86_64 + arch = aarch64 + replaces = libstd-rust-dev:i386 + provides = libstd-rust-dev:i386 + maintainer = xdavius + repology = project: rust + source = https://static.rust-lang.org/dist/rust-1.80.1-i686-unknown-linux-gnu.tar.xz + sha256sums = 9af695dd4eacb397c2169abdfae35c6342f210d04632571d5faf924fa2cc6d39 + +pkgname = lib32-rust-bin diff --git a/packages/lib32-rust-bin/lib32-rust-bin.pacscript b/packages/lib32-rust-bin/lib32-rust-bin.pacscript new file mode 100644 index 0000000000..7d505278c5 --- /dev/null +++ b/packages/lib32-rust-bin/lib32-rust-bin.pacscript @@ -0,0 +1,24 @@ +pkgname="lib32-rust-bin" +gives="lib32-rust" +pkgver="1.80.1" +pkgdesc="Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety" +arch=("x86_64" "aarch64") +repology=("project: rust") +url='https://www.rust-lang.org/' +source=("https://static.rust-lang.org/dist/rust-${pkgver}-i686-unknown-linux-gnu.tar.xz") +sha256sums=("9af695dd4eacb397c2169abdfae35c6342f210d04632571d5faf924fa2cc6d39") +provides=(libstd-rust-dev:i386) +replaces=("${provides[@]}") + +maintainer=("xdavius ") + +package() { + cd "rust-${pkgver}-i686-unknown-linux-gnu" + ./install.sh --destdir="${pkgdir}" --prefix=/usr --disable-ldconfig + rm -fr "${pkgdir:?}"/usr/bin + rm -fr "${pkgdir:?}"/usr/share + rm -fr "${pkgdir}"/usr/etc + rm -fr "${pkgdir}"/usr/libexec + rm -fr "${pkgdir}"/usr/lib/rustlib/etc + rm -f "${pkgdir}"/usr/lib/rustlib/* || true +} diff --git a/srclist b/srclist index c96fb78d72..a464d763c3 100644 --- a/srclist +++ b/srclist @@ -4964,6 +4964,22 @@ pkgbase = lf-bin pkgname = lf-bin --- +pkgbase = lib32-rust-bin + gives = lib32-rust + pkgver = 1.80.1 + pkgdesc = Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety + url = https://www.rust-lang.org/ + arch = x86_64 + arch = aarch64 + replaces = libstd-rust-dev:i386 + provides = libstd-rust-dev:i386 + maintainer = xdavius + repology = project: rust + source = https://static.rust-lang.org/dist/rust-1.80.1-i686-unknown-linux-gnu.tar.xz + sha256sums = 9af695dd4eacb397c2169abdfae35c6342f210d04632571d5faf924fa2cc6d39 + +pkgname = lib32-rust-bin +--- pkgbase = libcamera-git gives = libcamera pkgver = 0.1.0 From 031ff3731d5d9bef60ae7bbd429b3997c1ba57aa Mon Sep 17 00:00:00 2001 From: "V." <150687949+vigress8@users.noreply.github.com> Date: Tue, 10 Sep 2024 14:57:06 +0400 Subject: [PATCH 2/3] Apply suggestions from code review Co-authored-by: Elsie --- packages/lib32-rust-bin/lib32-rust-bin.pacscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib32-rust-bin/lib32-rust-bin.pacscript b/packages/lib32-rust-bin/lib32-rust-bin.pacscript index 7d505278c5..9cef3efbec 100644 --- a/packages/lib32-rust-bin/lib32-rust-bin.pacscript +++ b/packages/lib32-rust-bin/lib32-rust-bin.pacscript @@ -7,7 +7,7 @@ repology=("project: rust") url='https://www.rust-lang.org/' source=("https://static.rust-lang.org/dist/rust-${pkgver}-i686-unknown-linux-gnu.tar.xz") sha256sums=("9af695dd4eacb397c2169abdfae35c6342f210d04632571d5faf924fa2cc6d39") -provides=(libstd-rust-dev:i386) +provides=("libstd-rust-dev:i386") replaces=("${provides[@]}") maintainer=("xdavius ") From ca21ea967343adf3af168cf012f51dbefbd0d733 Mon Sep 17 00:00:00 2001 From: "V." <150687949+vigress8@users.noreply.github.com> Date: Tue, 10 Sep 2024 15:00:26 +0400 Subject: [PATCH 3/3] Silence errors from `rm` --- packages/lib32-rust-bin/lib32-rust-bin.pacscript | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/lib32-rust-bin/lib32-rust-bin.pacscript b/packages/lib32-rust-bin/lib32-rust-bin.pacscript index 9cef3efbec..1981beda79 100644 --- a/packages/lib32-rust-bin/lib32-rust-bin.pacscript +++ b/packages/lib32-rust-bin/lib32-rust-bin.pacscript @@ -20,5 +20,5 @@ package() { rm -fr "${pkgdir}"/usr/etc rm -fr "${pkgdir}"/usr/libexec rm -fr "${pkgdir}"/usr/lib/rustlib/etc - rm -f "${pkgdir}"/usr/lib/rustlib/* || true + rm -f "${pkgdir}"/usr/lib/rustlib/* 2> /dev/null || true }