summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 4f63f337b4aeec98420963606d6bea1d10094281 (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
# $Id$
# Contributor: Guillaume Horel <guillaume.horel@gmail.com>

pkgname=bcmatroska2-git
_pkgname=libmatroska-c
pkgver=0.23.r11.gd2e052b
pkgrel=1
pkgdesc="A C library for working with matroska files"
arch=('i686' 'x86_64')
url="http://www.linphone.org/"
license=('GPL')
makedepends=('cmake')
source=("git://git.linphone.org/$_pkgname.git")
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}/${_pkgname}"
    git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  mkdir -p build
  cd build
  cmake -DCMAKE_INSTALL_LIBDIR="/usr/lib" \
      -DCMAKE_INSTALL_PREFIX="/usr" \
      -DENABLE_STATIC=NO \
      ../$_pkgname
  make
}

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