summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Grande2020-12-20 10:33:34 -0500
committerVincent Grande2020-12-20 10:33:34 -0500
commitac43abd961ac66f1203a9e8a084bfd0f1580c2d2 (patch)
treee076c6460c2cb3b71859ee9f075d5813ac4c247c
downloadaur-lib32-gtk2-minimal-git.tar.gz
initial upload
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD64
-rw-r--r--gtk2.install17
3 files changed, 108 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..e20e8dd0b3c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = lib32-gtk2-minimal-git
+ pkgdesc = GObject-based multi-platform GUI toolkit (legacy) (32-bit)
+ pkgver = 2.24.32
+ pkgrel = 1
+ url = https://www.gtk.org/
+ install = gtk2.install
+ arch = x86_64
+ license = LGPL
+ makedepends = python
+ depends = lib32-atk
+ depends = lib32-pango
+ depends = lib32-cairo
+ depends = lib32-gdk-pixbuf2
+ depends = lib32-libxcursor
+ depends = lib32-libxrandr
+ depends = lib32-libxi
+ depends = lib32-libxinerama
+ depends = lib32-libxcomposite
+ depends = lib32-libxdamage
+ depends = gtk2
+ provides = lib32-gtk2
+ conflicts = lib32-gtk2
+ source = git+https://gitlab.gnome.org/GNOME/gtk.git#branch=gtk-2-24
+ sha256sums = SKIP
+
+pkgname = lib32-gtk2-minimal-git
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..8ae2f19f9e3
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,64 @@
+# Maintainer: Vincent Grande <shoober420@gmail.com>
+# Contributor: Felix Yan <felixonmars@archlinux.org>
+# Contributor: Ionut Biru <ibiru@archlinux.org
+# Contributor: Pierre Schmitz <pierre@archlinux.de>
+# Contributor: Mikko Sepp\u00e4l\u00e4 <t-r-a-y@mbnet.fi>
+
+pkgname=lib32-gtk2-minimal-git
+pkgver=2.24.32
+pkgrel=1
+pkgdesc="GObject-based multi-platform GUI toolkit (legacy) (32-bit)"
+arch=('x86_64')
+url="https://www.gtk.org/"
+install=gtk2.install
+depends=(lib32-atk lib32-pango lib32-cairo lib32-gdk-pixbuf2 lib32-libxcursor lib32-libxrandr lib32-libxi lib32-libxinerama lib32-libxcomposite lib32-libxdamage gtk2)
+provides=(lib32-gtk2)
+conflicts=(lib32-gtk2)
+makedepends=('python')
+license=('LGPL')
+source=(git+https://gitlab.gnome.org/GNOME/gtk.git#branch=gtk-2-24)
+sha256sums=('SKIP')
+
+pkgver() {
+ cd gtk
+ git describe --tags | sed 's/-/+/g'
+}
+
+prepare() {
+ cd gtk
+
+ NOCONFIGURE=1 ./autogen.sh
+}
+
+build() {
+ export CC="gcc -m32"
+ export CXX="g++ -m32"
+ export PKG_CONFIG_PATH="/usr/lib32/pkgconfig"
+
+ cd gtk
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --libdir=/usr/lib32 \
+ --disable-cups \
+ --disable-papi \
+ --with-xinput=yes
+
+ #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
+ make DESTDIR="${pkgdir}" install
+ rm -rf "${pkgdir}"/etc
+ rm -rf "${pkgdir}"/usr/{include,share}
+
+ cd "${pkgdir}"/usr/bin
+ mv gtk-query-immodules-2.0 gtk-query-immodules-2.0-32
+ rm -f gtk-builder-convert gtk-demo gtk-update-icon-cache
+}
+
diff --git a/gtk2.install b/gtk2.install
new file mode 100644
index 00000000000..6315484831d
--- /dev/null
+++ b/gtk2.install
@@ -0,0 +1,17 @@
+post_install() {
+ GTK_PATH=/usr/lib32/gtk-2.0 usr/bin/gtk-query-immodules-2.0-32 --update-cache
+}
+
+pre_upgrade() {
+if (( $(vercmp $2 2.24.20) < 0 )); then
+ rm -f /etc/gtk-2.0/gtk.immodules-32
+fi
+}
+
+post_upgrade() {
+ post_install
+}
+
+pre_remove() {
+ rm -f /usr/lib32/gtk-2.0/2.10.0/immodules.cache
+}