summaryrefslogtreecommitdiff
path: root/pcr/libosmocore/PKGBUILD
blob: c1de1d5a22efc2c687764ba3c41bc2a023b1d75c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Maintainer (AUR): Matt Johnson <matt9j@cs.washington.edu>
# Contributor (AUR): Dominik Heidler <dominik@heidler.eu>
# Contributor (AUR): Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>

# parabola changes and rationale:
# - Added libusb in makedepends, patch sent upstream, not reviewed yet

pkgname=libosmocore
pkgver=1.6.0
pkgrel=2
pkgdesc="core libs for osmocom"
arch=('armv7h' 'i686' 'x86_64')
url="http://bb.osmocom.org/trac/wiki/libosmocore"
license=('GPL')
groups=()
provides=()
depends=('pcsclite' 'lksctp-tools' 'talloc' 'gnutls')
optdepends=('libusb: libosmousb support')
makedepends=('autoconf' 'automake' 'make' 'gcc' 'libtool' 'git' 'pkg-config' 'libusb')

source=("git://git.osmocom.org/libosmocore.git#tag=$pkgver")
md5sums=('SKIP')

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

  autoreconf -i
  ./configure --prefix=/usr --exec-prefix=/usr --bindir=/usr/bin --sbindir=/usr/sbin --datadir=/usr/share \
              --libexecdir=/usr/lib --localstatedir=/var --docdir=/usr/share/doc/libosmocore --libdir=/usr/lib/
  make
}

package() {
  cd "$srcdir/$pkgname"
  make DESTDIR=$pkgdir install
}