2011-08-17 08:09:16 +08:00
|
|
|
pkgname=gammu
|
2016-08-18 05:44:27 +08:00
|
|
|
pkgver=1.37.4
|
2011-08-17 08:09:16 +08:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="GNU All Mobile Management Utilities"
|
2012-11-28 20:43:54 +08:00
|
|
|
arch=('x86_64')
|
2011-08-17 08:09:16 +08:00
|
|
|
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')
|
2012-03-16 22:51:37 +08:00
|
|
|
categories=('utils')
|
2011-08-17 08:09:16 +08:00
|
|
|
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
|
2016-08-18 05:44:27 +08:00
|
|
|
sha256sums=('b0fd316f09e862a732aa9ad6fd2f49f09ad69307fd05f50e58f40d33c15deea0')
|
2011-08-17 08:09:16 +08:00
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
2015-06-23 02:45:51 +08:00
|
|
|
# bash completion dir change
|
|
|
|
sed -i 's,DESTINATION "/etc/bash_completion.d",DESTINATION "/usr/share/bash-completion/completions",' contrib/CMakeLists.txt
|
2011-08-17 08:09:16 +08:00
|
|
|
cmake . -DCMAKE_INSTALL_PREFIX="/usr"
|
2015-06-23 02:45:51 +08:00
|
|
|
|
2011-08-17 08:09:16 +08:00
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
|
|
|
|
make DESTDIR="$pkgdir" install
|
2015-06-23 02:45:51 +08:00
|
|
|
mv $pkgdir/usr/lib64/* $pkgdir/usr/lib
|
|
|
|
rm -d $pkgdir/usr/lib64
|
2011-08-17 08:09:16 +08:00
|
|
|
}
|