aboutsummaryrefslogtreecommitdiffstats
path: root/gtk2/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'gtk2/PKGBUILD')
-rw-r--r--gtk2/PKGBUILD43
1 files changed, 43 insertions, 0 deletions
diff --git a/gtk2/PKGBUILD b/gtk2/PKGBUILD
new file mode 100644
index 0000000..6255dc5
--- /dev/null
+++ b/gtk2/PKGBUILD
@@ -0,0 +1,43 @@
+#Maintainer: Zee Eichel <zee@dracos-linux.org>
+pkgname=gtk2
+pkgver=2.24.32
+pkgrel=1
+pkgdesc="GObject-based multi-platform GUI toolkit (legacy)"
+arch=('x86_64')
+url="http://www.gtk.org/"
+license=('LGPL')
+depends=('atk' 'gdk-pixbuf' 'pango')
+optdepends=('gobject-introspection' 'cups')
+source=("https://download.gnome.org/sources/gtk+/${pkgver:0:4}/gtk+-${pkgver}.tar.xz"
+ "gtk-query-immodules-2.0.hook"
+ "gtkrc")
+sha256sums=('b6c8a93ddda5eabe3bfee1eb39636c9a03d2a56c7b62828b359bf197943c582e'
+ '3d53df9166f7e37c153eb4a3961a5785455e7328ae5a9320a62f48c76c7aea70'
+ 'bc968e3e4f57e818430130338e5f85a5025e21d7e31a3293b8f5a0e58362b805')
+
+prepare() {
+ cd "${srcdir}/gtk+-${pkgver}"
+
+ sed -i 's#l \(gtk-.*\).sgml#& -o \1#' docs/{faq,tutorial}/Makefile.in
+}
+
+build() {
+ cd "${srcdir}/gtk+-${pkgver}"
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --disable-man
+
+ make
+}
+
+package() {
+ cd "${srcdir}/gtk+-${pkgver}"
+
+ make install DESTDIR="${pkgdir}"
+
+ rm -rf "${pkgdir}/usr/bin/gtk-update-icon-cache" "${pkgdir}/usr/share/man/man1/gtk-update-icon-cache.1"
+
+ install -v -Dm644 "${srcdir}/gtkrc" "${pkgdir}/usr/share/gtk-2.0/gtkrc"
+ install -v -Dm644 "${srcdir}/gtk-query-immodules-2.0.hook" "${pkgdir}/usr/share/libalpm/hooks/gtk-query-immodules-2.0.hook"
+}