From 3691f9a90c57dc73a15860259b88d6a8dd8d87b1 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Fri, 24 Sep 2010 12:22:44 +0000 Subject: testing/gnokii: new aport Tools and user space driver for use with mobile phones http://www.gnokii.org/ --- testing/gnokii/APKBUILD | 71 +++++++++++++++++++++++++++++++++++++++++++++ testing/gnokii/gnokii.patch | 12 ++++++++ 2 files changed, 83 insertions(+) create mode 100644 testing/gnokii/APKBUILD create mode 100644 testing/gnokii/gnokii.patch (limited to 'testing/gnokii') diff --git a/testing/gnokii/APKBUILD b/testing/gnokii/APKBUILD new file mode 100644 index 000000000..a0017e44f --- /dev/null +++ b/testing/gnokii/APKBUILD @@ -0,0 +1,71 @@ +# Maintainer: Natanael Copa +pkgname=gnokii +pkgver=0.6.29 +pkgrel=0 +pkgdesc="Tools and user space driver for use with mobile phones" +url="http://www.gnokii.org/" +license="GPL" +depends="" +subpackages="$pkgname-dev $pkgname-doc libgnokii xgnokii $pkgname-smsd + $pkgname-smsd-pgsql:pgsql $pkgname-smsd-mysql:mysql" + +makedepends="gtk+-dev mysql-dev intltool libusb-compat-dev libxpm-dev + bluez-dev libical-dev postgresql-dev" +source="http://www.gnokii.org/download/gnokii/gnokii-$pkgver.tar.bz2 + gnokii.patch" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + sed -i 's|cellphone|phone|' xgnokii/xgnokii.desktop.in + patch -Np1 -i "$srcdir/gnokii.patch" +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --enable-security \ + --disable-unix98test + make +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +libgnokii() { + pkgdesc="gnokii shared libraries" + mkdir -p "$subpkgdir"/usr/lib + mv "$pkgdir"/usr/lib/libgnokii.so.* "$subpkgdir"/usr/lib/ +} + +xgnokii() { + pkgdesk="Gtk+ gnokii application" + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/xgnokii "$subpkgdir"/usr/bin/ +} + +smsd() { + pkgdesc="SMS Daemon for mobile phones" + mkdir -p "$subpkgdir"/usr/bin/ + mv "$pkgdir"/usr/bin/smsd "$subpkgdir"/usr/bin/ +} + +pgsql() { + pkgdesc="SMSD plugin for PostgreSQL storage backend" + depends="gnokii-smsd" + mkdir -p "$subpkgdir"/usr/lib/smsd + mv "$pkgdir"/usr/lib/smsd/*pq.so "$subpkgdir"/usr/lib/smsd/ +} + +mysql() { + pkgdesc="SMSD plugin for MySQL storage backend" + depends="gnokii-smsd" + mkdir -p "$subpkgdir"/usr/lib/smsd + mv "$pkgdir"/usr/lib/smsd/*mysql.so "$subpkgdir"/usr/lib/smsd/ +} + +md5sums="6111e0158a1129062bda6420db67c313 gnokii-0.6.29.tar.bz2 +4d764727686ee34bc73489c8b1321c82 gnokii.patch" diff --git a/testing/gnokii/gnokii.patch b/testing/gnokii/gnokii.patch new file mode 100644 index 000000000..e64d81aa1 --- /dev/null +++ b/testing/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. -- cgit v1.2.3