summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorValère Monseur2015-06-08 20:24:31 +0200
committerValère Monseur2015-06-08 20:24:31 +0200
commita8624b791cc3808682e41c7732bac68cd82396df (patch)
tree1311b79f3bce2866fe1ae57fc442811b5f252e2a
downloadaur-a8624b791cc3808682e41c7732bac68cd82396df.tar.gz
Initial import
-rw-r--r--.AURINFO22
-rw-r--r--.SRCINFO27
-rw-r--r--PKGBUILD47
-rw-r--r--gtkam1.patch11
-rw-r--r--gtkam2.patch11
-rw-r--r--gtkam3.patch75
-rw-r--r--gtkam4.patch11
7 files changed, 204 insertions, 0 deletions
diff --git a/.AURINFO b/.AURINFO
new file mode 100644
index 00000000000..749abf030e9
--- /dev/null
+++ b/.AURINFO
@@ -0,0 +1,22 @@
+pkgbase = gtkam
+ pkgdesc = A graphical GTK front-end to gphoto2
+ pkgver = 0.2.0
+ pkgrel = 2
+ url = http://gphoto.sourceforge.net/proj/gtkam/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = gimp
+ makedepends = intltool
+ depends = libgphoto2>=2.5.0
+ depends = libexif-gtk
+ depends = gdk-pixbuf2
+ depends = libpng
+ source = http://downloads.sourceforge.net/sourceforge/gphoto/gtkam-0.2.0.tar.gz
+ source = gtkam1.patch
+ source = gtkam2.patch
+ source = gtkam3.patch
+ source = gtkam4.patch
+
+pkgname = gtkam
+
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..3f13ed6a17b
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,27 @@
+pkgbase = gtkam
+ pkgdesc = A graphical GTK front-end to gphoto2
+ pkgver = 0.2.0
+ pkgrel = 2
+ url = http://gphoto.sourceforge.net/proj/gtkam/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = gimp
+ makedepends = intltool
+ depends = libgphoto2>=2.5.0
+ depends = libexif-gtk
+ depends = gdk-pixbuf2
+ depends = libpng
+ source = http://downloads.sourceforge.net/sourceforge/gphoto/gtkam-0.2.0.tar.gz
+ source = gtkam1.patch
+ source = gtkam2.patch
+ source = gtkam3.patch
+ source = gtkam4.patch
+ md5sums = cbec9eb6ac36b9bedaa5762392ee54bc
+ md5sums = eef28ce7fceb27f92c08d5c59a75331d
+ md5sums = 7c28b263ec83e70b2a96c3b110483727
+ md5sums = d703b0fabdd4d7d81a4fcd294d937c34
+ md5sums = 1bd50bdaa806ff74435781745b55962d
+
+pkgname = gtkam
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..79c0d98c62f
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,47 @@
+# Contributor: Eduardo Romero <eduardo@archlinux.org>
+# Maintainer: Valère Monseur <valere dot monseur at ymail dot com>
+
+pkgname=gtkam
+pkgver=0.2.0
+pkgrel=2
+pkgdesc="A graphical GTK front-end to gphoto2"
+url="http://gphoto.sourceforge.net/proj/gtkam/"
+arch=('i686' 'x86_64')
+depends=('libgphoto2>=2.5.0' 'libexif-gtk' 'gdk-pixbuf2' 'libpng')
+makedepends=('gimp' 'intltool')
+license=('GPL')
+source=(http://downloads.sourceforge.net/sourceforge/gphoto/${pkgname}-${pkgver}.tar.gz
+ gtkam1.patch
+ gtkam2.patch
+ gtkam3.patch
+ gtkam4.patch)
+md5sums=('cbec9eb6ac36b9bedaa5762392ee54bc'
+ 'eef28ce7fceb27f92c08d5c59a75331d'
+ '7c28b263ec83e70b2a96c3b110483727'
+ 'd703b0fabdd4d7d81a4fcd294d937c34'
+ '1bd50bdaa806ff74435781745b55962d')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ patch -p1 -i "${srcdir}/gtkam1.patch"
+ patch -p1 -i "${srcdir}/gtkam2.patch"
+ patch -p1 -i "${srcdir}/gtkam3.patch"
+ patch -p1 -i "${srcdir}/gtkam4.patch"
+
+ # needed as patches modify the autotools files
+ autoreconf
+
+ ./configure --prefix=/usr --sysconfdir=/etc \
+ --without-bonobo --without-gnome \
+ --disable-scrollkeeper
+
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ make DESTDIR="${pkgdir}" install
+ sed -i -e 's/^_//' "${pkgdir}/usr/share/applications/gtkam.desktop"
+}
diff --git a/gtkam1.patch b/gtkam1.patch
new file mode 100644
index 00000000000..b7f68e5af46
--- /dev/null
+++ b/gtkam1.patch
@@ -0,0 +1,11 @@
+--- a/src/Makefile.am 2009-10-10 11:10:26.000000000 +0200
++++ b/src/Makefile.am 2011-12-22 09:50:00.793860213 +0100
+@@ -51,7 +51,7 @@ gtkam_LDADD = \
+ $(LIBEXIF_LIBS) \
+ $(LIBEXIF_GTK_LIBS) \
+ $(LIBGPHOTO2_LIBS) \
+- $(GTKAM_LIBS) \
++ $(GTK_LIBS) \
+ $(BONOBO_LIBS) \
+ $(GNOME_LIBS) \
+ $(INTLLIBS)
diff --git a/gtkam2.patch b/gtkam2.patch
new file mode 100644
index 00000000000..79fd805024d
--- /dev/null
+++ b/gtkam2.patch
@@ -0,0 +1,11 @@
+diff -aurpN gtkam-0.1.18-old/configure.ac gtkam-0.1.18/configure.ac
+--- gtkam-0.1.18-old/configure.ac 2011-12-29 00:04:37.298593338 +0100
++++ gtkam-0.1.18/configure.ac 2011-12-29 00:05:11.678595916 +0100
+@@ -86,9 +86,7 @@ AC_CHECK_FUNC(gp_port_info_get_name,
+ )
+ LIBS="$save_LIBS"
+
+-PKG_CHECK_MODULES([GTK], [gtk+-2.0])
+-AC_SUBST([GTK_CFLAGS])
+-AC_SUBST([GTK_LIBS])
++GP_CHECK_LIBRARY([GTK], [gtk+-2.0])
diff --git a/gtkam3.patch b/gtkam3.patch
new file mode 100644
index 00000000000..ef748f09212
--- /dev/null
+++ b/gtkam3.patch
@@ -0,0 +1,75 @@
+diff -aurpN gtkam-0.1.18/configure.ac gtkam-0.1.18.new/configure.ac
+--- gtkam-0.1.18/configure.ac 2012-05-25 18:16:12.132473203 +0200
++++ gtkam-0.1.18.new/configure.ac 2012-05-25 18:15:26.042469751 +0200
+@@ -86,7 +86,7 @@ AC_CHECK_FUNC(gp_port_info_get_name,
+ )
+ LIBS="$save_LIBS"
+
+-GP_CHECK_LIBRARY([GTK], [gtk+-2.0])
++GP_CHECK_LIBRARY([GTK2], [gtk+-2.0])
+
+
+ dnl ---------------------------------------------------------------------------
+diff -aurpN gtkam-0.1.18/src/Makefile.am gtkam-0.1.18.new/src/Makefile.am
+--- gtkam-0.1.18/src/Makefile.am 2012-05-25 18:16:12.129139870 +0200
++++ gtkam-0.1.18.new/src/Makefile.am 2012-05-25 18:15:26.042469751 +0200
+@@ -6,7 +6,7 @@ MY_CPPFLAGS = \
+ $(LIBEXIF_GTK_CFLAGS) \
+ $(LIBGPHOTO2_CFLAGS) \
+ $(GNOME_CFLAGS) \
+- $(GTK_CFLAGS) \
++ $(GTK2_CFLAGS) \
+ $(BONOBO_CFLAGS) \
+ $(GTKAM_GIMP_CFLAGS)
+
+@@ -46,14 +46,14 @@ gtkam_SOURCES = \
+ gtkam-exif.c gtkam-exif.h \
+ gtkam-main.c gtkam-main.h \
+ i18n.h main.c
+-gtkam_LDADD = \
+- libgtkam.a \
+- $(LIBEXIF_LIBS) \
+- $(LIBEXIF_GTK_LIBS) \
++gtkam_LDADD = \
++ libgtkam.a \
++ $(LIBEXIF_LIBS) \
++ $(LIBEXIF_GTK_LIBS) \
+ $(LIBGPHOTO2_LIBS) \
+- $(GTK_LIBS) \
+- $(BONOBO_LIBS) \
+- $(GNOME_LIBS) \
++ $(GTK2_LIBS) \
++ $(BONOBO_LIBS) \
++ $(GNOME_LIBS) \
+ $(INTLLIBS)
+
+ if HAVE_GIMP
+@@ -69,6 +69,7 @@ gtkam_gimp_LDADD = \
+ $(LIBEXIF_LIBS) \
+ $(LIBEXIF_GTK_LIBS) \
+ $(LIBGPHOTO2_LIBS) \
++ $(GTK2_LIBS) \
+ $(BONOBO_LIBS) \
+ $(GNOME_LIBS) \
+ $(INTLLIBS)
+diff -aurpN gtkam-0.1.18/test/Makefile.am gtkam-0.1.18.new/test/Makefile.am
+--- gtkam-0.1.18/test/Makefile.am 2009-10-10 11:10:25.000000000 +0200
++++ gtkam-0.1.18.new/test/Makefile.am 2012-05-25 18:15:25.559136406 +0200
+@@ -4,7 +4,7 @@ MY_CPPFLAGS = \
+ $(LIBEXIF_GTK_CFLAGS) \
+ $(LIBGPHOTO2_CFLAGS) \
+ $(GNOME_CFLAGS) \
+- $(GTK_CFLAGS) \
++ $(GTK2_CFLAGS) \
+ $(BONOBO_CFLAGS) \
+ $(GTKAM_GIMP_CFLAGS)
+
+@@ -13,7 +13,7 @@ MY_LIBS = \
+ $(LIBEXIF_LIBS) \
+ $(LIBEXIF_GTK_LIBS) \
+ $(LIBGPHOTO2_LIBS) \
+- $(GTK_LIBS) \
++ $(GTK2_LIBS) \
+ $(BONOBO_LIBS) \
+ $(INTLLIBS)
+
diff --git a/gtkam4.patch b/gtkam4.patch
new file mode 100644
index 00000000000..d1eea3974d5
--- /dev/null
+++ b/gtkam4.patch
@@ -0,0 +1,11 @@
+diff -aurpN gtkam-0.2.0-a/configure.ac gtkam-0.2.0-b/configure.ac
+--- gtkam-0.2.0-a/configure.ac 2012-07-10 09:50:52.000000000 +0200
++++ gtkam-0.2.0-b/configure.ac 2013-01-20 14:48:23.657405520 +0100
+@@ -32,7 +32,6 @@ dnl ------------------------------------
+ dnl Some programs we need
+ dnl ---------------------------------------------------------------------------
+ AC_PROG_CC
+-AM_PROG_CC_STDC
+ AC_HEADER_STDC
+ AM_PROG_LIBTOOL
+ AC_PROG_INSTALL