Skip to content
Snippets Groups Projects
Commit 31497bde authored by Philip Müller's avatar Philip Müller
Browse files

[pkg-upd] 3.22.30-4

parents
No related branches found
No related tags found
No related merge requests found
PKGBUILD 0 → 100644
# Maintainer: Bernhard Landauer <oberon@manjaro.org>
# Maintainer: Tomasz Gąsior <tomaszgasior.pl>
_repo=gtk3-mushrooms
__arch_pkg_commit=a97a4614dfdb3a2f0c97ed58f94385ecc9b16b1e
_pkgname=lib32-gtk3
pkgname=$_pkgname-classic
pkgver=3.22.30
pkgrel=4
pkgdesc="GTK3 patched for classic desktops like MATE/XFCE (see README)."
url="https://github.com/TomaszGasior/gtk3-mushrooms"
_archgit=https://git.archlinux.org/svntogit/community.git/plain/trunk
conflicts=($_pkgname)
provides=($_pkgname=$pkgver)
arch=(x86_64)
license=(LGPL)
depends=(
adwaita-icon-theme
cantarell-fonts
gtk3-classic
lib32-at-spi2-atk
lib32-colord
lib32-dbus
lib32-dconf
lib32-gdk-pixbuf2
lib32-json-glib
lib32-libcanberra
lib32-libcups
lib32-libepoxy
lib32-librsvg
lib32-libxcomposite
lib32-libxcursor
lib32-libxdamage
lib32-libxinerama
lib32-libxkbcommon
lib32-libxrandr
lib32-mesa
lib32-pango
lib32-rest
lib32-wayland
)
makedepends=(
'git'
'gcc-multilib'
'gobject-introspection'
'gtk-doc'
'sassc'
)
source=(
# GTK source code.
"https://download.gnome.org/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.xz"
# Temporary. Will be removed with next GTK3 release.
"upstream_window_background.patch::https://github.com/GNOME/gtk/commit/2ce63a86ba689aa41eb47409c889c469497478b0.patch"
# ArchLinux hook.
"gtk-query-immodules-3.0-32.hook::$_archgit/gtk-query-immodules-3.0-32.hook?h=packages/$_pkgname&id=$__arch_pkg_commit"
# gtk3-mushrooms patches
"git+$url.git"
)
sha256sums=('a1a4a5c12703d4e1ccda28333b87ff462741dc365131fbc94c218ae81d9a6567'
'98b99ed14cc7545d1f30e244fe793ddd21a7db9d6f5e78b677113a89b621e459'
'4ac8112ac7e6fa879756e1eeb89b5efa0825ba00e5b05469913b256f86a37608'
'SKIP')
__patch_makefiles() {
__replace_string_in_file() {
sed -i".bak" "s/$1/$2/" "$3"
rm "$3.bak"
}
__replace_string_in_file \
"SRC_SUBDIRS = gdk gtk libgail-util modules demos tests testsuite examples" \
"SRC_SUBDIRS = gdk gtk libgail-util modules demos" \
"Makefile.am"
__replace_string_in_file \
"SUBDIRS = po po-properties \$(SRC_SUBDIRS) docs m4macros build" \
"SUBDIRS = po \$(SRC_SUBDIRS) m4macros build" \
"Makefile.am"
__replace_string_in_file \
"SUBDIRS = gtk-demo widget-factory icon-browser" \
"SUBDIRS = widget-factory" \
"demos/Makefile.am"
__replace_string_in_file \
"gtk-update-icon-cache" \
"" \
"gtk/Makefile.am"
}
__patch_gtk_code() {
for patch_file in $srcdir/$_repo/*.patch; do
patch -d "gtk" -p3 -i "$patch_file"
done
cat "$srcdir/$_repo/smaller-adwaita.css" | tee -a gtk/theme/Adwaita/gtk-contained{,-dark}.css > /dev/null
}
prepare() {
cd gtk3-mushrooms
sed -i 's/9589/9598/g' other__hide-insert-emoji.patch
cd "../gtk+-$pkgver"
# Make building faster by skipping tests, code examples and unused elements.
__patch_makefiles
# Apply patches to GTK code.
__patch_gtk_code
# Temporary patch. Will be removed with next GTK3 release.
patch -p1 -i "$srcdir/upstream_window_background.patch"
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "gtk+-$pkgver"
export CC='gcc -m32'
export CXX='/bin/false'
export PKG_CONFIG_PATH='/usr/lib32/pkgconfig'
CXX=/bin/false ./configure \
--prefix=/usr \
--libdir=/usr/lib32 \
--sysconfdir=/etc \
--localstatedir=/var \
--enable-x11-backend \
--enable-wayland-backend \
--disable-schemas-compile \
--disable-gtk-doc-html \
--disable-libcanberra
# https://bugzilla.gnome.org/show_bug.cgi?id=655517
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make
}
package() {
cd "gtk+-$pkgver"
make DESTDIR="$pkgdir" install
mv "${pkgdir}"/usr/bin/gtk-query-immodules-3.0{,-32}
mv "${pkgdir}"/usr/bin/gtk-query-settings{,-32}
rm "${pkgdir}"/usr/bin/{gtk-{builder-tool,encode-symbolic-svg,launch},gtk3-widget-factory}
rm -rf "${pkgdir}"/{etc,usr/{include,share}}
install -Dm 644 ../gtk-query-immodules-3.0-32.hook "${pkgdir}"/usr/share/libalpm/hooks/gtk-query-immodules-3.0-32.hook
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment