PKGBUILDs/extra/gtk/PKGBUILD
2009-11-26 22:21:46 -08:00

33 lines
1,023 B
Bash

# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: Judd Vinet <jvinet@zeroflux.org>
pkgname=gtk
pkgver=1.2.10
pkgrel=9
pkgdesc="The GTK+ toolkit"
arch=('arm')
url="http://www.gtk.org/"
license=('LGPL')
depends=('libxi' 'glib' 'sh' 'texinfo')
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" || 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="${pkgdir}" install || return 1
rm -f "${pkgdir}/usr/share/info/dir"
}