Skip to content
Snippets Groups Projects
Commit cbef342b authored by Philip Müller's avatar Philip Müller
Browse files
parents 36626f50 b15b3c50
No related branches found
No related tags found
No related merge requests found
gtk/*
gtk+*
*.xz
*.hook
gtk3-mushrooms/*
......
......@@ -2,13 +2,13 @@
# Maintainer: Tomasz Gąsior <tomaszgasior.pl>
_repo=gtk3-mushrooms
__arch_pkg_commit=a97a4614dfdb3a2f0c97ed58f94385ecc9b16b1e
__arch_pkg_commit=20100f065f461df74606b63ea2fd60f1ed114c8a
_pkgname=lib32-gtk3
pkgname=$_pkgname-classic
pkgver=3.22.30
pkgrel=5
pkgdesc="GTK3 patched for classic desktops like MATE/XFCE (see README)."
pkgver=3.24.1
pkgrel=2
pkgdesc="\"gtk3-mushrooms\"; GTK3 patched for classic desktops. See README."
url="https://github.com/TomaszGasior/gtk3-mushrooms"
_archgit=https://git.archlinux.org/svntogit/community.git/plain/trunk
conflicts=($_pkgname)
......@@ -18,7 +18,7 @@ license=(LGPL)
depends=(
adwaita-icon-theme
cantarell-fonts
gtk3-classic
"gtk3-classic>=${pkgver}"
lib32-at-spi2-atk
lib32-colord
lib32-dbus
......@@ -50,17 +50,11 @@ makedepends=(
source=(
# GTK source code.
"https://download.gnome.org/sources/gtk+/${pkgver%.*}/gtk+-$pkgver.tar.xz"
# Temporary. Will be removed with next GTK3 release.
"upstream_transparent_window_bg_1._patch::https://github.com/GNOME/gtk/commit/2ce63a86ba689aa41eb47409c889c469497478b0.patch"
"upstream_transparent_window_bg_2._patch::https://github.com/GNOME/gtk/commit/01d1bc3c75fd0eff5665f5b9c690c5e1e6c65f13.patch"
"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'
'ceb95c0952ccd3ded84cd55a2386a33edac91597052b077d12fa4a3cc62a1612'
'68e3ea59140ee565a146fff2db2d2e2ed99536bbad8ba818bee124325d516e01'
sha256sums=('SKIP'
'4ac8112ac7e6fa879756e1eeb89b5efa0825ba00e5b05469913b256f86a37608'
'SKIP')
......@@ -93,17 +87,14 @@ __patch_makefiles() {
__patch_gtk_code() {
for patch_file in $srcdir/$_repo/*.patch; do
patch -d "gtk" -p3 -i "$patch_file"
patch -p 2 -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"
cd "$srcdir/gtk+-$pkgver"
# Make building faster by skipping tests, code examples and unused elements.
__patch_makefiles
......@@ -111,15 +102,11 @@ prepare() {
# Apply patches to GTK code.
__patch_gtk_code
# Temporary. Will be removed with next GTK3 release.
patch -p 1 -i "$srcdir/upstream_transparent_window_bg_1._patch"
patch -p 1 -i "$srcdir/upstream_transparent_window_bg_2._patch"
NOCONFIGURE=1 ./autogen.sh
}
build() {
cd "gtk+-$pkgver"
cd "$srcdir/gtk+-$pkgver"
export CC='gcc -m32'
export CXX='/bin/false'
......@@ -142,7 +129,7 @@ build() {
}
package() {
cd "gtk+-$pkgver"
cd "$srcdir/gtk+-$pkgver"
make DESTDIR="$pkgdir" install
......
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