diff options
author | Connor Behan | 2015-06-08 15:02:34 -0400 |
---|---|---|
committer | Connor Behan | 2015-06-08 15:02:34 -0400 |
commit | d04206b0e634dee92892c986baa851ddc6461bfc (patch) | |
tree | 1096a2ccc317ef4caa8560afc54bbdc657b4d04c | |
download | aur-d04206b0e634dee92892c986baa851ddc6461bfc.tar.gz |
Initial import
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | PKGBUILD | 38 | ||||
-rw-r--r-- | aclocal-fixes.patch | 11 | ||||
-rw-r--r-- | gtk.install | 20 |
4 files changed, 88 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..e44d22667cc0 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,19 @@ +pkgbase = gtk + pkgdesc = A multi-platform toolkit (v1) + pkgver = 1.2.10 + pkgrel = 15 + url = http://www.gtk.org/ + install = gtk.install + arch = i686 + arch = x86_64 + license = LGPL + makedepends = libxt + depends = libxi + depends = glib + source = ftp://ftp.gnome.org/pub/gnome/sources/gtk+/1.2/gtk+-1.2.10.tar.gz + source = aclocal-fixes.patch + sha1sums = a5adcb909257da01ae4d4761e1d41081d06e4d7c + sha1sums = b034e33efb85d27f3f3fb082c404e3b6ea79259f + +pkgname = gtk + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..22d94cdb1497 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,38 @@ +# Maintainer: Connor Behan <connor.behan@gmail.com> +# Contributor: Eric BĂ©langer <eric@archlinux.org> + +pkgname=gtk +pkgver=1.2.10 +pkgrel=15 +pkgdesc="A multi-platform toolkit (v1)" +arch=('i686' 'x86_64') +url="http://www.gtk.org/" +license=('LGPL') +depends=('libxi' 'glib') +makedepends=('libxt') +install=gtk.install +source=(ftp://ftp.gnome.org/pub/gnome/sources/gtk+/1.2/gtk+-${pkgver}.tar.gz + aclocal-fixes.patch) +sha1sums=('a5adcb909257da01ae4d4761e1d41081d06e4d7c' + 'b034e33efb85d27f3f3fb082c404e3b6ea79259f') + +prepare() { + cd gtk+-${pkgver} + cp /usr/share/libtool/build-aux/config.guess . + cp /usr/share/libtool/build-aux/config.sub . + patch -p0 -i "${srcdir}/aclocal-fixes.patch" + sed -i "/ac_cpp=/s/\$CPPFLAGS/\$CPPFLAGS -O2/" configure +} + +build() { + cd gtk+-${pkgver} + ./configure --prefix=/usr --sysconfdir=/etc \ + --mandir=/usr/share/man --infodir=/usr/share/info \ + --with-xinput=xfree + make +} + +package() { + cd gtk+-${pkgver} + make DESTDIR="${pkgdir}" install +} diff --git a/aclocal-fixes.patch b/aclocal-fixes.patch new file mode 100644 index 000000000000..dd2ffbd442b1 --- /dev/null +++ b/aclocal-fixes.patch @@ -0,0 +1,11 @@ +--- gtk.m4.orig 2006-03-05 13:18:09.000000000 +0000 ++++ gtk.m4 2006-03-05 13:18:20.000000000 +0000 +@@ -4,7 +4,7 @@ + dnl AM_PATH_GTK([MINIMUM-VERSION, [ACTION-IF-FOUND [, ACTION-IF-NOT-FOUND [, MODULES]]]]) + dnl Test for GTK, and define GTK_CFLAGS and GTK_LIBS + dnl +-AC_DEFUN(AM_PATH_GTK, ++AC_DEFUN([AM_PATH_GTK], + [dnl + dnl Get the cflags and libraries from the gtk-config script + dnl diff --git a/gtk.install b/gtk.install new file mode 100644 index 000000000000..8758bebc337c --- /dev/null +++ b/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 +} |