desktop/gammu/PKGBUILD
2015-06-22 18:45:51 +00:00

33 lines
975 B
Bash

pkgname=gammu
pkgver=1.36.2
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=('23d71425efa526a637c60b265bfa010bc42dc0f9199692b9cd02a919eba48dd0e3430bc2ed6f29e6cb4435c801c4317a75fb5c49d31673267c6f05d78e201307')
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
}