From 5d53e1574d3a91dd31252a69d7ea5b0815817bae Mon Sep 17 00:00:00 2001 From: ngn Date: Tue, 20 Aug 2024 02:15:50 +0300 Subject: [PATCH] update: rustc 1.76.0 --- src/ibus/changes.md | 3 +++ src/ibus/pkg.sh | 35 +++++++++++++++++---------- src/icon-naming-utils/pkg.sh | 13 ++++++---- src/json-glib/pkg.sh | 16 +++++++----- src/libfm/pkg.sh | 26 +++++++++++--------- src/librewolf/changes.md | 3 +++ src/librewolf/pkg.sh | 47 ++++++++++++++++++++++++------------ src/rustc/changes.md | 3 +++ src/rustc/pkg.sh | 34 +++++++++++++++----------- src/xml-simple/pkg.sh | 14 ++++++----- 10 files changed, 123 insertions(+), 71 deletions(-) diff --git a/src/ibus/changes.md b/src/ibus/changes.md index a10af4a..7a533a0 100644 --- a/src/ibus/changes.md +++ b/src/ibus/changes.md @@ -1,2 +1,5 @@ +# 1.5.29 +Updated to a newer upstream release + # 1.5.28 First version diff --git a/src/ibus/pkg.sh b/src/ibus/pkg.sh index 10d1dd2..9fc5ac1 100644 --- a/src/ibus/pkg.sh +++ b/src/ibus/pkg.sh @@ -1,37 +1,46 @@ NAME="ibus" DESC="Intelligent Input Bus" -VERSION="1.5.28" +VERSION="1.5.29" + FILES=( - "https://github.com/ibus/ibus/releases/download/$VERSION/ibus-$VERSION.tar.gz" + "https://github.com/ibus/ibus/archive/refs/tags/${VERSION}/ibus-${VERSION}.tar.gz" "https://www.unicode.org/Public/zipped/15.0.0/UCD.zip" ) HASHES=( - "e788203d60e2b9cf56d95f1ee73a6898" + "2e29a7fb0f8c5ffcf42462fda45348fd" "5fbde400f3e687d25cc9b0a8d30d7619e76cb2f4c3e85ba9df8ec1312cb6718c" ) + DEPENDS=( - "dconf" "iso-codes" "gtk2" "libnotify" "libxkbcommon" "wayland" + "dconf" "iso-codes" "gtk3" ) +BUILD=("gobject-introspection" "vala" "gtk-doc") PACKAGE() { - tar xf $NAME-$VERSION.tar.gz - cd $NAME-$VERSION + tar xf "${NAME}-${VERSION}.tar.gz" + cd "${NAME}-${VERSION}" - mkdir -p "$ROOTDIR/usr/share/unicode/ucd" - unzip -uo ../UCD.zip -d "$ROOTDIR/usr/share/unicode/ucd" + mkdir -p "${ROOTDIR}/usr/share/unicode/ucd" + unzip -uo ../UCD.zip -d "${ROOTDIR}/usr/share/unicode/ucd" sed -i 's@/desktop/ibus@/org/freedesktop/ibus@g' \ data/dconf/org.freedesktop.ibus.gschema.xml + SAVE_DIST_FILES=1 NOCONFIGURE=1 ./autogen.sh + export CFLAGS="${CFLAGS} -std=gnu89 -fno-strict-aliasing" + + PYTHON=python3 \ ./configure --prefix=/usr \ --sysconfdir=/etc \ --disable-python2 \ - --disable-emoji-dict \ - --disable-unicode-dict + --disable-appindicator \ + --disable-gtk2 \ + --disable-emoji-dict rm -f tools/main.c - make && make DESTDIR="$ROOTDIR" install - gzip -dfv "$ROOTDIR/usr/share/man/man"{{1,5}/ibus*.gz,5/00-upstream-settings.5.gz} - cd .. && rm -r $NAME-$VERSION + make + make DESTDIR="${ROOTDIR}" install + + cd .. && rm -r "${NAME}-${VERSION}" } diff --git a/src/icon-naming-utils/pkg.sh b/src/icon-naming-utils/pkg.sh index 3e41ae4..4d82d00 100644 --- a/src/icon-naming-utils/pkg.sh +++ b/src/icon-naming-utils/pkg.sh @@ -1,16 +1,19 @@ NAME="icon-naming-utils" DESC="Perl script used for maintaining backwards compatibility with current desktop icon themes, while migrating to the names specified in the Icon Naming Specification" VERSION="0.8.90" -FILES=("http://tango.freedesktop.org/releases/icon-naming-utils-$VERSION.tar.bz2") + +FILES=("http://tango.freedesktop.org/releases/icon-naming-utils-${VERSION}.tar.bz2") HASHES=("dd8108b56130b9eedc4042df634efa66") + DEPENDS=("xml-simple") PACKAGE() { - tar xf $NAME-$VERSION.tar.bz2 - cd $NAME-$VERSION + tar xf "${NAME}-${VERSION}.tar.bz2" + cd "${NAME}-${VERSION}" ./configure --prefix=/usr - make && make DESTDIR="$ROOTDIR" install + make + make DESTDIR="${ROOTDIR}" install - cd .. && rm -r $NAME-$VERSION + cd .. && rm -r "${NAME}-${VERSION}" } diff --git a/src/json-glib/pkg.sh b/src/json-glib/pkg.sh index 4d138c2..584aac8 100644 --- a/src/json-glib/pkg.sh +++ b/src/json-glib/pkg.sh @@ -1,19 +1,23 @@ NAME="json-glib" DESC="Library providing serialization and deserialization support for JSON" VERSION="1.6.6" -FILES=("https://download.gnome.org/sources/json-glib/1.6/json-glib-$VERSION.tar.xz") + +FILES=("https://download.gnome.org/sources/json-glib/1.6/json-glib-${VERSION}.tar.xz") HASHES=("9c40fcd8cdbf484dd1704480afefae14") -DEPENDS=("glib" "gobject-introspection") + +DEPENDS=("glib" "glibc") +BUILD=("docbook-xsl" "gobject-introspection" "meson") PACKAGE() { - tar xf $NAME-$VERSION.tar.xz - cd $NAME-$VERSION + tar xf "${NAME}-${VERSION}.tar.xz" + cd "${NAME}-${VERSION}" mkdir build cd build meson setup --prefix=/usr --buildtype=release .. - ninja && DESTDIR="$ROOTDIR" ninja install + ninja + DESTDIR="${ROOTDIR}" ninja install - cd ../.. && rm -rf $NAME-$VERSION + cd ../.. && rm -rf "${NAME}-${VERSION}" } diff --git a/src/libfm/pkg.sh b/src/libfm/pkg.sh index 66bb327..688f568 100644 --- a/src/libfm/pkg.sh +++ b/src/libfm/pkg.sh @@ -1,21 +1,23 @@ NAME="libfm" DESC="Library and other files required by menu-cache-gen libexec of menu-cache-1.1.0" VERSION="1.3.2" -FILES=("https://downloads.sourceforge.net/pcmanfm/libfm-$VERSION.tar.xz") + +FILES=("https://downloads.sourceforge.net/pcmanfm/libfm-${VERSION}.tar.xz") HASHES=("c87a0ff41ae77825079b2f785ec0741e") -DEPENDS=( - "gtk2" "gtk3" "menu-cache" - "libexif" "lxmenu-data" -) + +DEPENDS=("menu-cache" "libexif" "lxmenu-data") +BUILD=("gtk-doc" "intltool") PACKAGE() { - tar xf $NAME-$VERSION.tar.xz - cd $NAME-$VERSION + tar xf "${NAME}-${VERSION}.tar.xz" + cd "${NAME}-${VERSION}" - ./configure --prefix=/usr \ - --sysconfdir=/etc \ - --disable-static - make && make DESTDIR="$ROOTDIR" install + export CFLAGS="${CFLAGS} -std=gnu89" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --disable-static + make + make DESTDIR="${ROOTDIR}" install - cd .. && rm -r $NAME-$VERSION + cd .. && rm -r "${NAME}-${VERSION}" } diff --git a/src/librewolf/changes.md b/src/librewolf/changes.md index abf22cd..c6f47f6 100644 --- a/src/librewolf/changes.md +++ b/src/librewolf/changes.md @@ -1,2 +1,5 @@ +# 129.0.1-1 +Updated to the latest upstream release + # 118.0.1-1 First version diff --git a/src/librewolf/pkg.sh b/src/librewolf/pkg.sh index 625e7a1..ecb8605 100644 --- a/src/librewolf/pkg.sh +++ b/src/librewolf/pkg.sh @@ -1,42 +1,59 @@ NAME="librewolf" DESC="LibreWolf is a custom and independent version of Firefox, with the primary goals of privacy, security and user freedom" -VERSION="118.0.1-1" +VERSION="129.0.1-1" + FILES=( - "https://gitlab.com/api/v4/projects/32320088/packages/generic/librewolf-source/$VERSION/librewolf-$VERSION.source.tar.gz" + "https://gitlab.com/api/v4/projects/32320088/packages/generic/librewolf-source/${VERSION}/librewolf-${VERSION}.source.tar.gz" "librewolf.desktop" "mozconfig" ) HASHES=( - "d972169a6b9d2e1df6a74fcf6d2e048c29e85bec3fba98cbe272e0d508fb2392" + "0ec41d7fc79bc64aa303fc6a4b362f0fc8b8c3be6266252540bae6382b0bd8d75a07760c6e8c23a6064801393ea111b7015e385204bf96129b43e8c4991ed688" "d1d4fb76689405df792bdb1130be471f3ed6090c4fed634dfc1365c1495fb637" "80b09c546c037994d6b022e0a9075c3c165d6790a0ee35fdb67ac6dc8fc2bc84" ) + DEPENDS=( "dbus" "dbus-glib" "gtk3" "ffmpeg" "pulseaudio" "nss" "libevent" "libvpx" "libwebp" "icu" "liboauth" "pciutils" "wireless-tools" "startup-notification" "libnotify" ) +BUILD=( + "pypi-six" "zip" "yasm" + "unzip" "rustc" "python3" + "nasm" "mesa" "llvm" + "inetutils" "diffutils" "cbindgen" +) PACKAGE() { - tar xf $NAME-$VERSION.source.tar.gz - cd $NAME-$VERSION + tar xf "${NAME}-${VERSION}.source.tar.gz" + cd "${NAME}-${VERSION}" + + cp "${ROOTDIR}/mozconfig" . + + export MOZ_DEBUG_FLAGS=" " + export CFLAGS+=" -g0" + export CXXFLAGS+=" -g0" + export RUSTFLAGS="-Cdebuginfo=0" - cp "$ROOTDIR/mozconfig" . export MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none - export MOZBUILD_STATE_PATH=${PWD}/mozbuild - ./mach configure - ./mach build + export MOZBUILD_STATE_PATH="${PWD}/mozbuild" + + ulimit -n 4096 + + python3 ./mach configure + python3 ./mach build + DESTDIR="${ROOTDIR}" python3 ./mach install - MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE=none DESTDIR="$ROOTDIR" ./mach install unset MACH_BUILD_PYTHON_NATIVE_PACKAGE_SOURCE MOZBUILD_STATE_PATH - mkdir -pv "$ROOTDIR/usr/share/applications" - mkdir -pv "$ROOTDIR/usr/share/pixmaps" + mkdir -pv "${ROOTDIR}/usr/share/applications" + mkdir -pv "${ROOTDIR}/usr/share/pixmaps" - cp "$ROOTDIR/librewolf.desktop" "$ROOTDIR/usr/share/applications/librewolf.desktop" + cp "${ROOTDIR}/librewolf.desktop" "${ROOTDIR}/usr/share/applications/librewolf.desktop" ln -sfv /usr/lib/librewolf/browser/chrome/icons/default/default128.png \ - "$ROOTDIR/usr/share/pixmaps/librewolf.png" + "${ROOTDIR}/usr/share/pixmaps/librewolf.png" - cd .. && rm -r $NAME-$VERSION + cd .. && rm -r "${NAME}-${VERSION}" } diff --git a/src/rustc/changes.md b/src/rustc/changes.md index 543ea1d..9bb4d77 100644 --- a/src/rustc/changes.md +++ b/src/rustc/changes.md @@ -1,2 +1,5 @@ +# 1.76.0 +Updated to the latest upstream release + # 1.71.1 First version diff --git a/src/rustc/pkg.sh b/src/rustc/pkg.sh index 4fa9a65..6253ecc 100644 --- a/src/rustc/pkg.sh +++ b/src/rustc/pkg.sh @@ -1,16 +1,19 @@ NAME="rustc" DESC="Rust programming language" -VERSION="1.71.1" -FILES=("https://static.rust-lang.org/dist/rustc-$VERSION-src.tar.xz") -HASHES=("b6f9973de878e37a589f0989e4138480") +VERSION="1.76.0" + +FILES=("https://static.rust-lang.org/dist/rustc-${VERSION}-src.tar.xz") +HASHES=("14a8ac688b461a3127090cad513aee05") + DEPENDS=("curl" "libssh2") +BUILD=("cmake") PACKAGE() { - tar xf $NAME-$VERSION-src.tar.xz - cd $NAME-$VERSION-src + tar xf "${NAME}-${VERSION}-src.tar.xz" + cd "${NAME}-${VERSION}-src" - cat << EOF > config.toml -changelog-seen = 2 + cat > config.toml << EOF +change-id = 118703 [llvm] targets = "X86" @@ -24,13 +27,16 @@ tools = ["cargo", "clippy", "rustdoc", "rustfmt"] vendor = true [install] -prefix = "$ROOTDIR/usr" -docdir = "share/doc/rustc-$VERSION" +prefix = "/usr" +docdir = "share/doc/rustc-${VERSION}" [rust] channel = "stable" description = "for MatterLinux" +lto = "thin" +codegen-units = 1 + [target.x86_64-unknown-linux-gnu] llvm-config = "/usr/bin/llvm-config" @@ -38,10 +44,10 @@ llvm-config = "/usr/bin/llvm-config" llvm-config = "/usr/bin/llvm-config" EOF - mkdir -pv "$ROOTDIR/usr/share/doc" + install -Ddm755 "${ROOTDIR}/usr/share/doc" python3 ./x.py build - python3 ./x.py install - find "$ROOTDIR/usr" -name "*.old" -delete - - cd .. && rm -r $NAME-$VERSION-src + DESTDIR="${ROOTDIR}" python3 ./x.py install + find "${ROOTDIR}/usr" -name "*.old" -delete + + cd .. && rm -r "${NAME}-${VERSION}-src" } diff --git a/src/xml-simple/pkg.sh b/src/xml-simple/pkg.sh index 988b241..2328f48 100644 --- a/src/xml-simple/pkg.sh +++ b/src/xml-simple/pkg.sh @@ -1,17 +1,19 @@ NAME="xml-simple" DESC="Provides an easy API to read and write XML, especially config files" VERSION="2.25" -FILES=("https://www.cpan.org/authors/id/G/GR/GRANTM/XML-Simple-$VERSION.tar.gz") + +FILES=("https://www.cpan.org/authors/id/G/GR/GRANTM/XML-Simple-${VERSION}.tar.gz") HASHES=("bb841dce889a26c89a1c2739970e9fbc") + DEPENDS=("perl") PACKAGE() { - tar xf XML-Simple-$VERSION.tar.gz - cd XML-Simple-$VERSION + tar xf "XML-Simple-${VERSION}.tar.gz" + cd "XML-Simple-${VERSION}" perl Makefile.PL INSTALLDIRS=vendor - make && make test - make DESTDIR="$ROOTDIR" install + make + make DESTDIR="${ROOTDIR}" install - cd .. && rm -r XML-Simple-$VERSION + cd .. && rm -r "XML-Simple-${VERSION}" }