PKGBUILD 911 Bytes
Newer Older
WillingMagic's avatar
WillingMagic committed
1
pkgname=gammu
gnastyle's avatar
gnastyle committed
2 3
pkgver=1.38.2
pkgrel=1
WillingMagic's avatar
WillingMagic committed
4
pkgdesc="GNU All Mobile Management Utilities"
Neophytos's avatar
Neophytos committed
5
arch=('x86_64')
WillingMagic's avatar
WillingMagic committed
6 7 8 9 10 11
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')
12
categories=('utils')
WillingMagic's avatar
WillingMagic committed
13
source=(http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.bz2)
gnastyle's avatar
gnastyle committed
14
sha256sums=('3e478dede2b819859e6d7265c3a0cbf5d9ffa4ca450a51c2beacf92b6434c2b7')
WillingMagic's avatar
WillingMagic committed
15 16 17 18

build() {
  cd "$srcdir/$pkgname-$pkgver"

gnastyle's avatar
gnastyle committed
19 20
  # bash completion dir change
  sed -i 's,DESTINATION "/etc/bash_completion.d",DESTINATION "/usr/share/bash-completion/completions",' contrib/CMakeLists.txt
WillingMagic's avatar
WillingMagic committed
21
  cmake . -DCMAKE_INSTALL_PREFIX="/usr"
gnastyle's avatar
gnastyle committed
22

WillingMagic's avatar
WillingMagic committed
23 24 25 26 27 28 29
  make
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  make DESTDIR="$pkgdir" install
gnastyle's avatar
gnastyle committed
30 31
  mv $pkgdir/usr/lib64/* $pkgdir/usr/lib
  rm -d $pkgdir/usr/lib64
WillingMagic's avatar
WillingMagic committed
32
}