update: rustc 1.76.0

This commit is contained in:
ngn 2024-08-20 02:15:50 +03:00
parent 99ac0fb0b9
commit 5d53e1574d
10 changed files with 123 additions and 71 deletions

View File

@ -1,2 +1,5 @@
# 1.5.29
Updated to a newer upstream release
# 1.5.28
First version

View File

@ -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}"
}

View File

@ -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}"
}

View File

@ -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}"
}

View File

@ -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}"
export CFLAGS="${CFLAGS} -std=gnu89"
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-static
make && make DESTDIR="$ROOTDIR" install
make
make DESTDIR="${ROOTDIR}" install
cd .. && rm -r $NAME-$VERSION
cd .. && rm -r "${NAME}-${VERSION}"
}

View File

@ -1,2 +1,5 @@
# 129.0.1-1
Updated to the latest upstream release
# 118.0.1-1
First version

View File

@ -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}"
}

View File

@ -1,2 +1,5 @@
# 1.76.0
Updated to the latest upstream release
# 1.71.1
First version

View File

@ -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
DESTDIR="${ROOTDIR}" python3 ./x.py install
find "${ROOTDIR}/usr" -name "*.old" -delete
cd .. && rm -r $NAME-$VERSION-src
cd .. && rm -r "${NAME}-${VERSION}-src"
}

View File

@ -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}"
}