diff options
author | Brian Bidulock | 2015-07-08 23:46:29 -0600 |
---|---|---|
committer | Brian Bidulock | 2015-07-08 23:46:29 -0600 |
commit | eb61dfc2bf4c59ffa04b904b62543e2edfb6e6aa (patch) | |
tree | b12cbd151dd748c8c82774f8df83a476c684ff70 | |
download | aur-eb61dfc2bf4c59ffa04b904b62543e2edfb6e6aa.tar.gz |
initial version
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 23 | ||||
-rw-r--r-- | fbxkb.patch | 39 |
3 files changed, 80 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..4462440a7a9d --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = fbxkb + pkgdesc = Keyboard indicator and switcher + pkgver = 0.6 + pkgrel = 2 + url = http://fbxkb.sourceforge.net/ + arch = i686 + arch = x86_64 + license = GPL + depends = gtk2 + depends = libx11 + depends = libxmu + source = http://download.sourceforge.net/fbxkb/fbxkb-0.6.tgz + source = fbxkb.patch + md5sums = fa768bbb07aac8a4ae590633499cce15 + md5sums = 33171c56c308eb68cb5035762fbb8aa0 + +pkgname = fbxkb + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..36dcc215f46b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,23 @@ +#Contributor: Jake VanderKolk <jakevanderkolk@gmail.com> +#Maintainer: Mihai Coman <mihai@m1x.ro> +pkgname=fbxkb +pkgver=0.6 +pkgrel=2 +pkgdesc="Keyboard indicator and switcher" +arch=('i686' 'x86_64') +url="http://fbxkb.sourceforge.net/" +depends=('gtk2' 'libx11' 'libxmu') +license=('GPL') +source=(http://download.sourceforge.net/fbxkb/${pkgname}-${pkgver}.tgz + fbxkb.patch) +md5sums=('fa768bbb07aac8a4ae590633499cce15' + '33171c56c308eb68cb5035762fbb8aa0') + +build() { + cd "${srcdir}/${pkgname}-${pkgver}" + unset LDFLAGS + patch -Np1 -i "${srcdir}/fbxkb.patch" || return 1 + ./configure --prefix=/usr + make || return 1 + make PREFIX="${pkgdir}/usr" install +} diff --git a/fbxkb.patch b/fbxkb.patch new file mode 100644 index 000000000000..3b4395ce48a2 --- /dev/null +++ b/fbxkb.patch @@ -0,0 +1,39 @@ +diff -rupN fbxkb-0.6/fbxkb.c fbxkb-0.6-new/fbxkb.c +--- fbxkb-0.6/fbxkb.c 2006-12-18 23:47:52.000000000 +0200 ++++ fbxkb-0.6-new/fbxkb.c 2012-01-15 22:27:30.571427088 +0200 +@@ -378,10 +378,11 @@ read_kbd_description() + g_assert((no >= 0) && (no < ngroups)); + if (group2info[no].sym != NULL) { + ERR("xkb group #%d is already defined\n", no); ++ } else { ++ group2info[no].sym = g_strdup(tok); ++ group2info[no].flag = sym2flag(tok); ++ group2info[no].name = XGetAtomName(dpy, kbd_desc_ptr->names->groups[no]); + } +- group2info[no].sym = g_strdup(tok); +- group2info[no].flag = sym2flag(tok); +- group2info[no].name = XGetAtomName(dpy, kbd_desc_ptr->names->groups[no]); + } + XFree(sym_name); + } +diff -rupN fbxkb-0.6/Makefile.common fbxkb-0.6-new/Makefile.common +--- fbxkb-0.6/Makefile.common 2004-10-16 01:18:59.000000000 +0300 ++++ fbxkb-0.6-new/Makefile.common 2012-01-15 23:20:02.081020564 +0200 +@@ -16,7 +16,7 @@ endif + endif + + CC = gcc +-LIBS = $(shell pkg-config --libs gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) -L/usr/X11R6/lib -lXmu ++LIBS = $(shell pkg-config --libs gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) -lX11 -L/usr/X11R6/lib -lXmu + INCS = $(shell pkg-config --cflags gtk+-2.0 gdk-pixbuf-2.0 gdk-pixbuf-xlib-2.0) + CFLAGS = -O2 # overwriten by command line or env. variable + CFLAGS += -Wall # always nice to have +@@ -24,9 +24,6 @@ ifneq (,$(DEVEL)) + CFLAGS := -g -Wall + endif + +-# -DGTK_DISABLE_DEPRECATED does not work yet +-CFLAGS += -g -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED +- + %.o: %.c + $(CC) $(CFLAGS) $(INCS) -c $< |