diff options
Diffstat (limited to 'community/gnokii/PKGBUILD')
-rw-r--r-- | community/gnokii/PKGBUILD | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/community/gnokii/PKGBUILD b/community/gnokii/PKGBUILD new file mode 100644 index 000000000..3d6580406 --- /dev/null +++ b/community/gnokii/PKGBUILD @@ -0,0 +1,60 @@ +# $Id: PKGBUILD 95469 2013-08-12 20:27:17Z bgyorgy $ +# Maintainer: Balló György <ballogyor+arch at gmail dot com> +# Contributor: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Roman Kyrylych <roman@archlinux.org> +# Contributor: Aurelien Foret <orelien@chez.com> + +pkgname=gnokii +pkgver=0.6.31 +pkgrel=6 +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-libs' 'libical' 'sqlite') +makedepends=('gtk2' 'libmariadbclient' 'postgresql-libs' 'intltool') +optdepends=('dialog: sendsms tool' + 'gtk2: xgnokii GUI' + 'libmariadbclient: smsd mysql backend' + 'postgresql-libs: smsd postgresql backend') +backup=('etc/gnokiirc') +options=('!libtool') +install=$pkgname.install +source=("http://www.gnokii.org/download/$pkgname/$pkgname-$pkgver.tar.bz2" + 'gnokii-config.patch' + 'gnokii-lock.patch') +md5sums=('d9627f4a1152d3ea7806df4532850d5f' + 'b2961b52ac1f770c4704ccc50b64fde2' + '17b629db85a6bb2b98ca59941aa95295') + +build() { + cd $pkgname-$pkgver + + # Set bindir location + patch -Np1 -i "$srcdir/gnokii-config.patch" + + # Set lock path + patch -Np1 -i "$srcdir/gnokii-lock.patch" + + ./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \ + --disable-static --enable-security + make + pushd xgnokii + make + popd +} + +package() { + cd $pkgname-$pkgver + + make DESTDIR="$pkgdir" install + pushd xgnokii + make DESTDIR="$pkgdir" install + popd + + # Install inital config file + install -Dm644 Docs/sample/gnokiirc "$pkgdir/etc/gnokiirc" + + # Fix file permission + chmod 755 "$pkgdir/usr/bin/sendsms" +} |