Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions pkgbuilds/gtk2/.nvchecker.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[gtk2]
source = "git"
git = "https://gitlab.gnome.org/GNOME/gtk.git"
include_regex = '2\.24\.\d+'
7 changes: 7 additions & 0 deletions pkgbuilds/gtk2/.omarchy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"source": "local",
"origin": {
"aur": "gtk2",
"commit": "19829b43450b1a7e838896f9b2dd391a227eabd1"
}
}
22 changes: 22 additions & 0 deletions pkgbuilds/gtk2/0001-Lower-severity-of-XID-collision-warnings.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: "Jan Alexander Steffens (heftig)" <heftig@archlinux.org>
Date: Sat, 22 Jun 2024 22:08:43 +0200
Subject: [PATCH] Lower severity of XID collision warnings

---
gdk/x11/gdkxid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdk/x11/gdkxid.c b/gdk/x11/gdkxid.c
index 1005f9e40c0d..1523fa70b2d3 100644
--- a/gdk/x11/gdkxid.c
+++ b/gdk/x11/gdkxid.c
@@ -58,7 +58,7 @@ _gdk_xid_table_insert (GdkDisplay *display,
(GEqualFunc) gdk_xid_equal);

if (g_hash_table_lookup (display_x11->xid_ht, xid))
- g_warning ("XID collision, trouble ahead");
+ g_debug ("XID collision, trouble ahead");

g_hash_table_insert (display_x11->xid_ht, xid, data);
}
32 changes: 32 additions & 0 deletions pkgbuilds/gtk2/0002-Stop-looking-for-modules-in-cwd.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Matthias Clasen <mclasen@redhat.com>
Date: Sat, 15 Jun 2024 14:18:01 -0400
Subject: [PATCH] Stop looking for modules in cwd

This is just not a good idea. It is surprising, and can be misused.

Fixes: #6786
---
gtk/gtkmodules.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)

diff --git a/gtk/gtkmodules.c b/gtk/gtkmodules.c
index 50729b61a590..c0f0c30a2148 100644
--- a/gtk/gtkmodules.c
+++ b/gtk/gtkmodules.c
@@ -229,13 +229,8 @@ find_module (const gchar *name)
gchar *module_name;

module_name = _gtk_find_module (name, "modules");
- if (!module_name)
- {
- /* As last resort, try loading without an absolute path (using system
- * library path)
- */
- module_name = g_module_build_path (NULL, name);
- }
+ if (module_name == NULL)
+ return NULL;

module = g_module_open (module_name, G_MODULE_BIND_LOCAL | G_MODULE_BIND_LAZY);

12 changes: 12 additions & 0 deletions pkgbuilds/gtk2/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
Copyright Arch Linux Contributors

Permission to use, copy, modify, and/or distribute this software for
any purpose with or without fee is hereby granted.

THE SOFTWARE IS PROVIDED “AS IS” AND THE AUTHOR DISCLAIMS ALL
WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE
FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY
DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
1 change: 1 addition & 0 deletions pkgbuilds/gtk2/LICENSES/0BSD.txt
176 changes: 176 additions & 0 deletions pkgbuilds/gtk2/LICENSES/LGPL-2.1-or-later.txt

Large diffs are not rendered by default.

112 changes: 112 additions & 0 deletions pkgbuilds/gtk2/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# Maintainer: Jan Alexander Steffens (heftig) <heftig@archlinux.org>
# Maintainer: Jan de Groot <jgc@archlinux.org>

pkgname=gtk2
pkgver=2.24.33
pkgrel=5
pkgdesc="GObject-based multi-platform GUI toolkit (legacy)"
url="https://www.gtk.org/"
# Built for aarch64 only: Valve's native arm64 Steam client loads GTK 2 from
# the host, which Arch Linux ARM no longer ships. On x86_64 Steam brings its
# own copy in its runtime.
arch=(aarch64)
license=(LGPL-2.1-or-later)
depends=(
atk
cairo
desktop-file-utils
fontconfig
gdk-pixbuf2
glib2
glibc
gtk-update-icon-cache
libcups
librsvg
libx11
libxcomposite
libxcursor
libxdamage
libxext
libxfixes
libxi
libxinerama
libxrandr
libxrender
pango
shared-mime-info
)
makedepends=(
git
glib2-devel
gobject-introspection
gtk-doc
)
source=(
"git+https://gitlab.gnome.org/GNOME/gtk.git#tag=$pkgver"
gtk-query-immodules-2.0.hook
0001-Lower-severity-of-XID-collision-warnings.patch
0002-Stop-looking-for-modules-in-cwd.patch
)
b2sums=('1b18d1cfef55466209cf93be45af15dc058a8b74d13ab590cfc7f0b09b0584adc62d4330aaed65185c0142cc8c326e4274c8e75e0af94bec5be3cfcca105c1e6'
'9c531f9f605e1739e13c39c1cac22daddd9574f3082f18bcf0b9dfaa4c41f2485d55be03a9ed12fb4504d509f0d5ac63980a9d9349e3f80a06595c6430c78096'
'45ecc976d9eb9d990fc204230aa052a6d1b2bdfdc94788be37d576ab262a1da49855eb46ecd4bfce4efde6e2f817a1660c6d1fa756be3b372f7f8d13b0ef0fd0'
'06ca1c6f0e8f6a7c7a3cc08ce3d358af978d28fc4aa8d9e981883e3ad5adf7d821bcb27bc8b93bf65171a92396ac8f7ad62c90db501a492cca7c30b6081e957f')

prepare() {
cd gtk
git apply -3 ../0001-Lower-severity-of-XID-collision-warnings.patch

# CVE-2024-6655: https://www.openwall.com/lists/oss-security/2024/09/09/1
# https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/7361
git apply -3 ../0002-Stop-looking-for-modules-in-cwd.patch

sed -i '/AM_INIT_AUTOMAKE/s/]/ foreign]/' configure.ac
autoreconf -fvi
}

build() {
local configure_options=(
--prefix=/usr
--sysconfdir=/etc
--localstatedir=/var
--with-xinput=yes
--disable-gtk-doc
)

CFLAGS+=" -Wno-error=implicit-int -Wno-error=incompatible-pointer-types"

cd gtk
./configure "${configure_options[@]}"
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}

package() {
optdepends=(
'adwaita-fonts: Default font'
'adwaita-icon-theme: Default icon theme'
'gnome-themes-extra-gtk2: Default widget theme'
'python: gtk-builder-convert'
)
provides=(
libgailutil.so
libgdk-x11-2.0.so
libgtk-x11-2.0.so
)
install=gtk2.install

make -C gtk DESTDIR="$pkgdir" install

install -Dm644 /dev/stdin "$pkgdir/usr/share/gtk-2.0/gtkrc" <<END
gtk-icon-theme-name = "Adwaita"
gtk-theme-name = "Adwaita"
gtk-font-name = "Adwaita Sans 11"
END

install -Dm644 gtk-query-immodules-2.0.hook -t "$pkgdir/usr/share/libalpm/hooks"

# Built by GTK 4, shared with GTK 2/3
rm "$pkgdir/usr/bin/gtk-update-icon-cache"
}

# vim:set sw=2 sts=-1 et:
30 changes: 30 additions & 0 deletions pkgbuilds/gtk2/REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version = 1

[[annotations]]
path = [
"PKGBUILD",
"README.md",
"keys/**",
".SRCINFO",
".nvchecker.toml",
"*.install",
"*.sysusers",
"*.tmpfiles",
"*.logrotate",
"*.pam",
"*.service",
"*.socket",
"*.timer",
"*.desktop",
"*.hook",
]
SPDX-FileCopyrightText = "Arch Linux contributors"
SPDX-License-Identifier = "0BSD"

[[annotations]]
path = [
"0001-Lower-severity-of-XID-collision-warnings.patch",
"0002-Stop-looking-for-modules-in-cwd.patch",
]
SPDX-FileCopyrightText = "gtk2 contributors"
SPDX-License-Identifier = "LGPL-2.1-or-later"
11 changes: 11 additions & 0 deletions pkgbuilds/gtk2/gtk-query-immodules-2.0.hook
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Trigger]
Type = Path
Operation = Install
Operation = Upgrade
Operation = Remove
Target = usr/lib/gtk-2.0/2.10.0/immodules/*.so

[Action]
Description = Probing GTK2 input method modules...
When = PostTransaction
Exec = /usr/bin/gtk-query-immodules-2.0 --update-cache
3 changes: 3 additions & 0 deletions pkgbuilds/gtk2/gtk2.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pre_remove() {
rm -f /usr/lib/gtk-2.0/2.10.0/immodules.cache
}
3 changes: 3 additions & 0 deletions pkgbuilds/steam/.omarchy/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"source": "local"
}
129 changes: 129 additions & 0 deletions pkgbuilds/steam/PKGBUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,129 @@
# Maintainer: Ryan Hughes <ryan@omarchy.org>
# Contributor: Levente Polyak <anthraxx[at]archlinux[dot]org>
# Contributor: Giancarlo Razzolini <grazzolini@archlinux.org>
# Contributor: Christian Heusel <gromit@archlinux.org>
#
# Arch builds steam for x86_64 only; this is the aarch64 build. It installs
# the same Valve launcher files (desktop entry, icons, udev rules) but swaps
# the x86 bootstrap for Valve's native arm64 client, which then updates itself
# from Valve's linuxarm64 client channel. _client is the client build the
# bootstrap was taken from; it only matters for the first launch, so it moves
# with the launcher rather than with every client release.

pkgbase=steam
pkgname=(steam steam-devices)
pkgver=1.0.0.87
pkgrel=1
_client=1788652215
_client_zip=bins_linuxarm64_linuxarm64.zip.dc817d33f8308815bf4fde6a3cb61fd4529728c8
pkgdesc="Valve's digital software delivery system"
url='https://steampowered.com/'
arch=('aarch64')
license=('LicenseRef-steam-subscriber-agreement')
# the beta directory is a superset of stable and also contains the stable releases
source=(
"https://repo.steampowered.com/$pkgbase/archive/beta/${pkgbase}_$pkgver.tar.gz"
"$pkgbase-client-$_client.zip::https://client-update.steamstatic.com/$_client_zip"
steam.sh
)
noextract=("$pkgbase-client-$_client.zip")
# The client checksum is the sha2 Valve's steam_client_linuxarm64 manifest
# publishes for that zip.
sha256sums=('649375d2f9377f8009aaf3e2ff09978041eb9114897d9c5a3886f1d82e27ba1f'
'c2d7c0ecb8de7e209504cd657b785127cd1ac3d905668c296e87c360b2b54163'
'6f8d705e7d615b2debf8449898c51ad687136cd8f6605ef3c7573b4aa768e342')

build() {
# The arm64 counterpart of Valve's bootstraplinux_ubuntu12_32.tar.xz. The
# client binary links only glibc and downloads the rest of Steam itself.
mkdir -p bootstrap
bsdtar -xf "$pkgbase-client-$_client.zip" -C bootstrap steamrtarm64/steam
chmod 755 bootstrap/steamrtarm64 bootstrap/steamrtarm64/steam
tar --sort=name --mtime="@$SOURCE_DATE_EPOCH" --owner=0 --group=0 --numeric-owner \
-cJf bootstraplinux_linuxarm64.tar.xz -C bootstrap steamrtarm64
}

package_steam() {
# Libraries the arm64 client links against from the host, plus lsof, which
# the client runs to find its own IPC ports.
depends=(
alsa-lib
at-spi2-core
bash
cairo
coreutils
dbus
fontconfig
freetype2
gdk-pixbuf2
glib2
glibc
gtk2
hicolor-icon-theme
libcups
libdrm
libgcc
libglvnd
libibus
libnm
libpipewire
libpulse
libsm
libstdc++
libva
libvdpau
libx11
libxcomposite
libxdamage
libxext
libxfixes
libxi
libxinerama
libxkbcommon
libxrandr
libxrender
libxtst
lsof
mesa
nss
openal
pango
sdl2-compat
systemd-libs
tar
ttf-font
vulkan-driver
vulkan-icd-loader
xdg-user-dirs
xz
)
optdepends=(
'ntsync-autoload: for NTSync support'
'polkit: to setup SteamVR without root access'
'xdg-desktop-portal-impl: file & folder picker'
'xorg-fonts-misc: for non-latin locales'
)
depends+=(steam-devices)

cd "$pkgbase-launcher"
make DESTDIR="$pkgdir" install-docs install-icons install-desktop install-appdata

install -Dm755 "$srcdir/steam.sh" "$pkgdir/usr/bin/steam"
install -Dm644 "$srcdir/bootstraplinux_linuxarm64.tar.xz" -t "$pkgdir/usr/lib/steam"

install -d "$pkgdir/usr/share/licenses/$pkgname"
ln -s "../../doc/$pkgname/steam_subscriber_agreement.txt" "$pkgdir/usr/share/licenses/$pkgname/"
install -Dm644 debian/changelog -t "$pkgdir/usr/share/doc/$pkgname"
}

package_steam-devices() {
pkgdesc="List of devices Steam and SteamVR will want read/write permissions on"
license=(MIT)
depends=(udev)

cd "$srcdir/$pkgbase-launcher/subprojects/steam-devices"

install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dm644 60-steam-input.rules "$pkgdir/usr/lib/udev/rules.d/60-steam-input.rules"
install -Dm644 60-steam-vr.rules "$pkgdir/usr/lib/udev/rules.d/60-steam-vr.rules"
}
Loading
Loading