diff options
-rw-r--r-- | abs/core/gtk/PKGBUILD | 44 | ||||
-rw-r--r-- | abs/core/gtk/__changelog | 3 | ||||
-rw-r--r-- | abs/core/gtk/gtk.install | 20 |
3 files changed, 45 insertions, 22 deletions
diff --git a/abs/core/gtk/PKGBUILD b/abs/core/gtk/PKGBUILD index 48c4972..30fc520 100644 --- a/abs/core/gtk/PKGBUILD +++ b/abs/core/gtk/PKGBUILD @@ -1,6 +1,5 @@ -# $Id: PKGBUILD 356 2008-04-18 22:56:27Z aaron $ -# Maintainer: Eric Belanger <eric@archlinux.org> -# Contributor: Judd Vinet <jvinet@zeroflux.org> +# $Id: PKGBUILD 137905 2011-09-12 10:53:48Z eric $ +# Maintainer: Eric BĂ©langer <eric@archlinux.org> pkgname=gtk pkgver=1.2.10 @@ -9,24 +8,31 @@ pkgdesc="The GTK+ toolkit" arch=('i686' 'x86_64') url="http://www.gtk.org/" license=('LGPL') -depends=('libxi' 'glib') -options=('!libtool' '!emptydirs') -source=(ftp://ftp.gtk.org/pub/gtk/v1.2/gtk+-$pkgver.tar.gz \ - aclocal-fixes.patch) -md5sums=('4d5cb2fc7fb7830e4af9747a36bfce20' 'c59d4906602d99a7468f7334b6fc3b4e') -sha1sums=('a5adcb909257da01ae4d4761e1d41081d06e4d7c' 'b034e33efb85d27f3f3fb082c404e3b6ea79259f') +depends=('libxi' 'glib' 'sh') +makedepends=('libxt') +options=('!libtool') +install=gtk.install +source=("ftp://ftp.gtk.org/pub/gtk/v1.2/gtk+-${pkgver}.tar.gz" + 'aclocal-fixes.patch') +md5sums=('4d5cb2fc7fb7830e4af9747a36bfce20' + 'c59d4906602d99a7468f7334b6fc3b4e') 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 - make || return 1 - make DESTDIR=$startdir/pkg install - cd $startdir/pkg/usr/include - ln -s gtk-1.2/gtk gtk + patch -Np0 -i "${srcdir}/aclocal-fixes.patch" + + ./configure --prefix=/usr --sysconfdir=/etc \ + --mandir=/usr/share/man --infodir=/usr/share/info \ + --with-xinput=xfree + make +} + +package() { + cd "${srcdir}/gtk+-${pkgver}" + make DESTDIR="${pkgdir}" install } diff --git a/abs/core/gtk/__changelog b/abs/core/gtk/__changelog deleted file mode 100644 index 5d6d4d6..0000000 --- a/abs/core/gtk/__changelog +++ /dev/null @@ -1,3 +0,0 @@ -added !emptydir to options -!docs - diff --git a/abs/core/gtk/gtk.install b/abs/core/gtk/gtk.install new file mode 100644 index 0000000..8758beb --- /dev/null +++ b/abs/core/gtk/gtk.install @@ -0,0 +1,20 @@ +infodir=usr/share/info +filelist=(gdk.info.gz gtk.info.gz) + +post_install() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info $infodir/$file $infodir/dir 2> /dev/null + done +} + +post_upgrade() { + post_install $1 +} + +pre_remove() { + [ -x usr/bin/install-info ] || return 0 + for file in ${filelist[@]}; do + install-info --delete $infodir/$file $infodir/dir 2> /dev/null + done +} |