[arch-commits] Commit in gtk/trunk (PKGBUILD gtk.install)

Jan de Groot jgc at archlinux.org
Wed Jun 3 06:25:25 EDT 2009


    Date: Wednesday, June 3, 2009 @ 06:25:24
  Author: jgc
Revision: 41339

upgpkg: gtk 1.2.10-9
    Fix dependencies
Add makedepend on libxt
Handle info files
Fix man/info path locations

Added:
  gtk/trunk/gtk.install
Modified:
  gtk/trunk/PKGBUILD

-------------+
 PKGBUILD    |   27 +++++++++++++++------------
 gtk.install |   19 +++++++++++++++++++
 2 files changed, 34 insertions(+), 12 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2009-06-03 10:23:08 UTC (rev 41338)
+++ PKGBUILD	2009-06-03 10:25:24 UTC (rev 41339)
@@ -4,29 +4,32 @@
 
 pkgname=gtk
 pkgver=1.2.10
-pkgrel=8
+pkgrel=9
 pkgdesc="The GTK+ toolkit"
 arch=('i686' 'x86_64')
 url="http://www.gtk.org/"
 license=('LGPL')
-depends=('libxi' 'glib')
+depends=('libxi' 'glib' 'sh' 'texinfo')
+makedepends=('libxt')
 options=('!libtool')
-source=(ftp://ftp.gtk.org/pub/gtk/v1.2/gtk+-$pkgver.tar.gz \
+install=gtk.install
+source=(ftp://ftp.gtk.org/pub/gtk/v1.2/gtk+-$pkgver.tar.gz
 	aclocal-fixes.patch)
 md5sums=('4d5cb2fc7fb7830e4af9747a36bfce20' 'c59d4906602d99a7468f7334b6fc3b4e')
 sha1sums=('a5adcb909257da01ae4d4761e1d41081d06e4d7c' 'b034e33efb85d27f3f3fb082c404e3b6ea79259f')
 
 build() {
-  cd $startdir/src/gtk+-$pkgver
-  if [ "$CARCH" == "x86_64" ]; then
+  cd "${srcdir}/gtk+-${pkgver}"
+  if [ "${CARCH}" = "x86_64" ]; then
     rm config.guess config.sub
-    ln -s /usr/share/libtool/config.guess config.guess
-    ln -s /usr/share/libtool/config.sub config.sub
+    ln -s /usr/share/libtool/config/config.guess config.guess
+    ln -s /usr/share/libtool/config/config.sub config.sub
   fi
-  patch -Np0 -i ${startdir}/src/aclocal-fixes.patch || return 1
-  ./configure --prefix=/usr --sysconfdir=/etc --with-xinput=xfree
+  patch -Np0 -i "${srcdir}/aclocal-fixes.patch" || return 1
+  ./configure --prefix=/usr --sysconfdir=/etc \
+    --mandir=/usr/share/man --infodir=/usr/share/info \
+    --with-xinput=xfree || return 1
   make || return 1
-  make DESTDIR=$startdir/pkg install
-  cd $startdir/pkg/usr/include
-  ln -s gtk-1.2/gtk gtk
+  make DESTDIR="${pkgdir}" install || return 1
+  rm -f "${pkgdir}/usr/share/info/dir"
 }

Added: gtk.install
===================================================================
--- gtk.install	                        (rev 0)
+++ gtk.install	2009-06-03 10:25:24 UTC (rev 41339)
@@ -0,0 +1,19 @@
+infofiles="gdk.info gtk.info gtk.info-1 gtk.info-2 gtk.info-3 gtk.info-4 gtk.info-5 gtk.info-6"
+
+info_dir=/usr/share/info
+
+post_install() {
+  for inf in ${infofiles}; do
+    install-info ${info_dir}/${inf} ${info_dir}/dir
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  for inf in ${infofiles}; do
+    install-info --delete ${info_dir}/${inf} ${info_dir}/dir
+  done
+}



More information about the arch-commits mailing list