summaryrefslogtreecommitdiff
path: root/extra/gnokii
diff options
context:
space:
mode:
Diffstat (limited to 'extra/gnokii')
-rw-r--r--extra/gnokii/PKGBUILD45
-rw-r--r--extra/gnokii/gnokii.patch12
2 files changed, 57 insertions, 0 deletions
diff --git a/extra/gnokii/PKGBUILD b/extra/gnokii/PKGBUILD
new file mode 100644
index 000000000..ecd996b4d
--- /dev/null
+++ b/extra/gnokii/PKGBUILD
@@ -0,0 +1,45 @@
+# $Id: PKGBUILD 114760 2011-03-15 22:43:17Z andrea $
+# Maintainer: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: Roman Kyrylych <roman@archlinux.org>
+# Contributor: Aurelien Foret <orelien@chez.com>
+
+pkgname=gnokii
+pkgver=0.6.30
+pkgrel=1
+pkgdesc="Tools and user space driver for use with mobile phones"
+arch=('i686' 'x86_64')
+url="http://www.gnokii.org/"
+license=('GPL')
+depends=('libusb-compat' 'libxpm' 'bluez' 'libical' 'postgresql-libs')
+makedepends=('gtk2' 'libmysqlclient' 'intltool')
+optdepends=('gtk2: xgnokii GUI'
+ 'libmysqlclient: smsd mysql backend'
+ 'postgresql-libs: smsd postgresql backend')
+backup=('etc/gnokiirc')
+options=('!libtool' '!makeflags')
+source=(http://www.gnokii.org/download/$pkgname/$pkgname-${pkgver}.tar.bz2
+ 'gnokii.patch')
+md5sums=('c90137d403febbc16712d64f0eb196de'
+ '4d764727686ee34bc73489c8b1321c82')
+
+build() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+
+ # FS#13249
+ sed -i 's|cellphone|phone|' xgnokii/xgnokii.desktop.in
+
+ patch -Np1 -i "${srcdir}/gnokii.patch"
+
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --enable-security \
+ --disable-unix98test
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make DESTDIR="${pkgdir}" install
+
+ install -Dm644 Docs/sample/gnokiirc "${pkgdir}/etc/gnokiirc"
+}
diff --git a/extra/gnokii/gnokii.patch b/extra/gnokii/gnokii.patch
new file mode 100644
index 000000000..e64d81aa1
--- /dev/null
+++ b/extra/gnokii/gnokii.patch
@@ -0,0 +1,12 @@
+diff -ur gnokii-0.6.7-old/Docs/sample/gnokiirc gnokii-0.6.7/Docs/sample/gnokiirc
+--- gnokii-0.6.7-old/Docs/sample/gnokiirc 2005-05-16 20:55:13.000000000 +0200
++++ gnokii-0.6.7/Docs/sample/gnokiirc 2005-06-03 10:49:42.000000000 +0200
+@@ -112,7 +112,7 @@
+ # permissions 4750, owned by root, group gnokii. Ensure you
+ # are in the gnokii group and that the group exists...
+ [gnokiid]
+-bindir = /usr/local/sbin/
++bindir = /usr/sbin/
+
+ # Any entries in the following two sections will be set as environment
+ # variables when running the scripts.