summaryrefslogtreecommitdiff
path: root/community/xkbsel
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/xkbsel
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/xkbsel')
-rw-r--r--community/xkbsel/PKGBUILD31
-rw-r--r--community/xkbsel/build-fix.patch24
2 files changed, 55 insertions, 0 deletions
diff --git a/community/xkbsel/PKGBUILD b/community/xkbsel/PKGBUILD
new file mode 100644
index 000000000..e6114985f
--- /dev/null
+++ b/community/xkbsel/PKGBUILD
@@ -0,0 +1,31 @@
+# $Id: PKGBUILD 59722 2011-11-29 13:35:50Z stephane $
+# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+
+pkgname=xkbsel
+pkgver=0.13
+pkgrel=5
+pkgdesc="framework for defining, selecting and indicating XKB keyboard mappings"
+arch=('i686' 'x86_64')
+url="http://www.meduna.org/sw_xkbsel_en.html"
+license=('GPL')
+depends=('gdbm' 'libxaw')
+makedepends=('patch' 'xkeyboard-config')
+source=(http://www.meduna.org/code/$pkgname-$pkgver.tar.gz
+ build-fix.patch)
+md5sums=('c82196344ef920a072f413df85b9dc00'
+ 'dee0f7de8618d9eff073942f0e08f030')
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ patch -Np1 <../build-fix.patch
+ export CFLAGS="$CFLAGS -I/usr/include/gdbm -DHAVE_NDBM_H"
+ export LDFLAGS="-lgdbm -lgdbm_compat"
+
+ ./configure --prefix=/usr --localstatedir=/var/lib --sysconfdir=/etc/xkbsel \
+ --build=`uname -m` --host=`uname -m` --target=`uname -m` \
+ --mandir=/usr/share/man
+ make
+ make DESTDIR=$pkgdir install
+}
diff --git a/community/xkbsel/build-fix.patch b/community/xkbsel/build-fix.patch
new file mode 100644
index 000000000..02021db47
--- /dev/null
+++ b/community/xkbsel/build-fix.patch
@@ -0,0 +1,24 @@
+diff -wbBur xkbsel-0.13/configure xkbsel-0.13.my/configure
+--- xkbsel-0.13/configure 2000-04-09 13:37:02.000000000 +0400
++++ xkbsel-0.13.my/configure 2006-07-24 17:13:10.000000000 +0400
+@@ -6118,7 +6118,7 @@
+ { echo "configure: error: "Cannot find library containing dbm_open"" 1>&2; exit 1; }
+ fi
+
+-x11xkbdir=$ac_x_libraries/X11/xkb
++x11xkbdir=/usr/share/X11/xkb
+ test -d $x11xkbdir || { echo "configure: error: "Directory $x11xkbdir does not exist"" 1>&2; exit 1; }
+
+
+diff -wbBur xkbsel-0.13/libs/Makefile.in xkbsel-0.13.my/libs/Makefile.in
+--- xkbsel-0.13/libs/Makefile.in 2000-04-09 13:51:01.000000000 +0400
++++ xkbsel-0.13.my/libs/Makefile.in 2006-07-24 17:11:52.000000000 +0400
+@@ -452,7 +452,7 @@
+
+
+ install-data-local:
+- $(mkinstalldirs) ${sysxkmdir}
++ $(mkinstalldirs) $(DESTDIR)${sysxkmdir}
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
+ # Otherwise a system limit (for SysV at least) may be exceeded.