diff options
-rw-r--r-- | .SRCINFO | 20 | ||||
-rw-r--r-- | PKGBUILD | 35 | ||||
-rwxr-xr-x | gbdfed.desktop | 10 | ||||
-rw-r--r-- | num_signals.patch | 22 |
4 files changed, 87 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..28a753278f15 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,20 @@ +pkgbase = gbdfed + pkgdesc = A GTK2 bitmap font editor + pkgver = 1.6 + pkgrel = 3 + url = http://www.math.nmsu.edu/~mleisher/Software/gbdfed/ + arch = i686 + arch = x86_64 + license = MIT + depends = gtk2 + source = http://www.math.nmsu.edu/~mleisher/Software/gbdfed/gbdfed-1.6.tbz2 + source = http://www.math.nmsu.edu/~mleisher/Software/gbdfed/gbdfed48x48.png + source = gbdfed.desktop + source = num_signals.patch + md5sums = 2a2e1cbfe8566db6d302f0b9ab79b8dd + md5sums = 3681abf22f23a62c48acfca417655dd0 + md5sums = 9e4dd5cb12245e7ea51f53085a714360 + md5sums = 0034b837f9217ebdf5a271d2e242d635 + +pkgname = gbdfed + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..83c585e3ad17 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,35 @@ +# Contributor: Olivier Duclos <olivier.duclos@gmail.com> +# Maintainer: Dan Panzarella <alsoelp@gmail.com> + +pkgname=gbdfed +pkgver=1.6 +pkgrel=3 +pkgdesc="A GTK2 bitmap font editor" +arch=(i686 x86_64) +url="http://www.math.nmsu.edu/~mleisher/Software/gbdfed/" +license=('MIT') +depends=(gtk2) +source=(http://www.math.nmsu.edu/~mleisher/Software/gbdfed/$pkgname-$pkgver.tbz2 \ + http://www.math.nmsu.edu/~mleisher/Software/gbdfed/gbdfed48x48.png \ + gbdfed.desktop \ + num_signals.patch) +md5sums=('2a2e1cbfe8566db6d302f0b9ab79b8dd' + '3681abf22f23a62c48acfca417655dd0' + '9e4dd5cb12245e7ea51f53085a714360' + '0034b837f9217ebdf5a271d2e242d635') + +build() { + cd $srcdir/$pkgname-$pkgver + sed -i 's/-D.*_DEPRECATED\s*\\*//' Makefile.in + patch -p1 < ../num_signals.patch + ./configure --prefix=/usr + make +} + +package() { + cd $srcdir/$pkgname-$pkgver + make DESTDIR=$pkgdir install + install -d $pkgdir/usr/share/{applications,pixmaps} + install -m644 ../gbdfed.desktop $pkgdir/usr/share/applications/ + install -m644 ../gbdfed48x48.png $pkgdir/usr/share/pixmaps/gbdfed.png +} diff --git a/gbdfed.desktop b/gbdfed.desktop new file mode 100755 index 000000000000..bb68d35b06cd --- /dev/null +++ b/gbdfed.desktop @@ -0,0 +1,10 @@ +[Desktop Entry] +Version=1.0 +Encoding=UTF-8 +Type=Application +Name=gbdfed +Comment=Bitmap font editor +TryExec=gbdfed +Exec=gbdfed %f +Icon=gbdfed +Categories=Graphics;2DGraphics;RasterGraphics;GTK; diff --git a/num_signals.patch b/num_signals.patch new file mode 100644 index 000000000000..420d5f5089ba --- /dev/null +++ b/num_signals.patch @@ -0,0 +1,22 @@ +diff -Nur gbdfed-1.6.orig/glyphedit.c gbdfed-1.6/glyphedit.c +--- gbdfed-1.6.orig/glyphedit.c 2010-04-16 16:39:04.000000000 +0200 ++++ gbdfed-1.6/glyphedit.c 2011-11-23 21:30:25.479413052 +0100 +@@ -104,7 +104,8 @@ + GLYPH_MODIFIED = 0, + POINTER_MOVED, + OPERATION_CHANGE, +- COLOR_CHANGE ++ COLOR_CHANGE, ++ NUM_SIGNALS + }; + + /************************************************************************** +@@ -114,7 +115,7 @@ + **************************************************************************/ + + static GtkWidgetClass *parent_class = 0; +-static guint glyphedit_signals[OPERATION_CHANGE + 1]; ++static guint glyphedit_signals[NUM_SIGNALS]; + + /************************************************************************** + * |