CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
gtklepin: initial import (verified compilation)
authorJose V Beneyto <sepen@crux.nu>
Fri, 29 Oct 2010 15:48:52 +0000 (17:48 +0200)
committerJose V Beneyto <sepen@crux.nu>
Fri, 29 Oct 2010 15:48:52 +0000 (17:48 +0200)
gtklepin/.footprint [new file with mode: 0644]
gtklepin/.md5sum [new file with mode: 0644]
gtklepin/Pkgfile [new file with mode: 0644]

diff --git a/gtklepin/.footprint b/gtklepin/.footprint
new file mode 100644 (file)
index 0000000..6b5b723
--- /dev/null
@@ -0,0 +1,6 @@
+drwxr-xr-x     root/root       usr/
+drwxr-xr-x     root/root       usr/bin/
+-rwxr-xr-x     root/root       usr/bin/gtklepin
+drwxr-xr-x     root/root       usr/man/
+drwxr-xr-x     root/root       usr/man/man1/
+-rw-r--r--     root/root       usr/man/man1/gtklepin.1.gz
diff --git a/gtklepin/.md5sum b/gtklepin/.md5sum
new file mode 100644 (file)
index 0000000..8c25970
--- /dev/null
@@ -0,0 +1 @@
+15eeae2d287dee6df6f6505aa2f4a2a8  gtklepin-0.3.tar.bz2
diff --git a/gtklepin/Pkgfile b/gtklepin/Pkgfile
new file mode 100644 (file)
index 0000000..5ff88eb
--- /dev/null
@@ -0,0 +1,38 @@
+# Description: GTK based notebook which has similar functionality to the Psion Revo PDA.
+# URL: http://ordiluc.net/gtklepin/
+# Packager: Jose V Beneyto, sepen at crux dot nu
+# Maintainer: Jose V Beneyto, sepen at crux dot nu
+# Arch Maintainer: CRUX-ARM System Team, devel at crux-arm dot nu
+# Depends on: gtk
+
+name=gtklepin
+version=0.3
+release=1
+source=(http://ordiluc.net/$name/$name-$version.tar.bz2)
+
+build() {
+  cd $name-$version
+
+  export GTK_LIBS=" -L$CLFS/usr/lib -pthread -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lgdk_pixbuf-2.0 -lpangocairo-1.0 -lcairo -lpango-1.0 -lfreetype -lfontconfig -lgobject-2.0 -lgmodule-2.0 -lgthread-2.0 -lrt -lglib-2.0"
+  export GTK_CFLAGS="-I$CLFS/usr/include -pthread -I$CLFS/usr/include/gtk-2.0 -I$CLFS/usr/lib/gtk-2.0/include -I$CLFS/usr/include/atk-1.0 -I$CLFS/usr/include/cairo -I$CLFS/usr/include/pango-1.0 -I$CLFS/usr/include/glib-2.0 -I$CLFS/usr/lib/glib-2.0/include -I$CLFS/usr/include/pixman-1 -I$CLFS/usr/include/freetype2 -I$CLFS/usr/include/libpng12"
+
+  sed -i configure \
+      -e "s|GTK_LIBS=.*|GTK_LIBS=\"$GTK_LIBS\"|g" \
+      -e "s|GTK_CFLAGS=.*|GTK_CFLAGS=\"$GTK_CFLAGS\"|g" \
+      -e 's|no_gtk=yes|no_gtk=|g'
+
+  ./configure --build=$CHOST \
+              --host=$CTARGET \
+              --prefix=/usr \
+              --disable-nls \
+              --disable-debug \
+              --disable-glibtest \
+              --disable-gtktest \
+              --without-zlib
+
+  # fix previous declaration of 'getline'
+  sed -i src/* -e 's|getline|gstring_getline|g'
+
+  make
+  make DESTDIR=$PKG install
+}