desktop/gammu/PKGBUILD
2015-08-27 19:52:01 +02:00

33 lines
975 B
Bash

pkgname=gammu
pkgver=1.36.5
pkgrel=1
pkgdesc="GNU All Mobile Management Utilities"
arch=('x86_64')
url="http://wammu.eu/"
license=('GPL')
depends=('bluez' 'curl' 'libmysqlclient'
'postgresql-libs' 'python2' 'libusb' 'gnutls')
makedepends=('cmake' 'doxygen' 'mysql')
optdepends=('dialog: support for the gammu-config script')
categories=('utils')
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
sha512sums=('464459db9f097dcbcf72064b413e74a9459554335ee997f355bf821c75e8ca8dcb8b8a96319e8487e36827282747131a9edda86012ed1627714bfb0636eb7068')
build() {
cd "$srcdir/$pkgname-$pkgver"
# bash completion dir change
sed -i 's,DESTINATION "/etc/bash_completion.d",DESTINATION "/usr/share/bash-completion/completions",' contrib/CMakeLists.txt
cmake . -DCMAKE_INSTALL_PREFIX="/usr"
make
}
package() {
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
mv $pkgdir/usr/lib64/* $pkgdir/usr/lib
rm -d $pkgdir/usr/lib64
}