summaryrefslogtreecommitdiffstats
path: root/abs/core/gtk/PKGBUILD
blob: 30fc520a8bfb86eebcd59205cbbdb0a1aa62b7c7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# $Id: PKGBUILD 137905 2011-09-12 10:53:48Z eric $
# Maintainer: Eric BĂ©langer <eric@archlinux.org>

pkgname=gtk
pkgver=1.2.10
pkgrel=11
pkgdesc="The GTK+ toolkit"
arch=('i686' 'x86_64')
url="http://www.gtk.org/"
license=('LGPL')
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 "${srcdir}/gtk+-${pkgver}"
  if [ "${CARCH}" = "x86_64" ]; then
    rm config.guess 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 "${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
}