core/gnokii/PKGBUILD

56 lines
1.5 KiB
Bash
Raw Normal View History

#
2017-12-30 05:47:59 +08:00
# Chakra Packages for Chakra, part of chakralinux.org
#
2013-07-15 05:11:48 +08:00
# maintainer: Fabian Kosmale <inkane@chakra-project.org>
2010-03-14 23:48:48 +08:00
pkgname=gnokii
2013-07-15 05:11:48 +08:00
pkgver=0.6.31
2017-12-30 05:47:59 +08:00
pkgrel=2
2010-03-14 23:48:48 +08:00
pkgdesc="Tools and user space driver for use with mobile phones"
2015-01-06 07:47:27 +08:00
arch=('x86_64')
2010-03-14 23:48:48 +08:00
url="http://www.gnokii.org/"
license=('GPL')
2015-01-06 07:47:27 +08:00
depends=('libusb-compat' 'libxpm' 'bluez' 'libical' 'sqlite3')
makedepends=('libmariadbclient' 'postgresql-libs' 'intltool')
optdepends=('dialog: sendsms tool'
'libmariadbclient: smsd mysql backend'
2010-03-14 23:48:48 +08:00
'postgresql-libs: smsd postgresql backend')
backup=('etc/gnokiirc')
2015-01-06 07:47:27 +08:00
install=$pkgname.install
source=("http://www.gnokii.org/download/$pkgname/$pkgname-$pkgver.tar.bz2"
'gnokii-config.patch'
'gnokii-lock.patch')
md5sums=('d9627f4a1152d3ea7806df4532850d5f'
'b2961b52ac1f770c4704ccc50b64fde2'
'17b629db85a6bb2b98ca59941aa95295')
prepare() {
cd $pkgname-$pkgver
# Set bindir location
patch -Np1 -i "$srcdir/gnokii-config.patch"
# Set lock path
patch -Np1 -i "$srcdir/gnokii-lock.patch"
}
2010-03-14 23:48:48 +08:00
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
2010-03-14 23:48:48 +08:00
# FS#13249
2011-09-03 04:25:31 +08:00
sed -i 's|cellphone|phone|' xgnokii/xgnokii.desktop.in
2010-03-14 23:48:48 +08:00
2015-01-06 07:47:27 +08:00
./configure --prefix=/usr --sysconfdir=/etc --sbindir=/usr/bin \
--disable-static --enable-security --disable-gtk2
make
2011-09-03 04:25:31 +08:00
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
2015-01-06 07:47:27 +08:00
make DESTDIR="$pkgdir" install
2010-03-14 23:48:48 +08:00
2011-09-03 04:25:31 +08:00
install -Dm644 Docs/sample/gnokiirc "${pkgdir}/etc/gnokiirc"
2015-01-06 07:47:27 +08:00
# Fix file permission
chmod 755 "$pkgdir/usr/bin/sendsms"
2010-03-14 23:48:48 +08:00
}