blob: c8914a18c4df39ae7b93494cd0ab7333b1dc0bad (
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
|
# Contributor: Guillaume Horel <guillaume.horel@gmail.com>
pkgname=bcmatroska2-git
_pkgname=bcmatroska2
pkgver=5.2.1.r0.g4d125bf
pkgrel=1
pkgdesc="A C library for working with matroska files"
arch=('x86_64')
url="http://www.linphone.org/"
license=('GPL')
makedepends=('cmake')
depends=('glibc')
source=("git+https://gitlab.linphone.org/BC/public/$_pkgname.git")
sha256sums=('SKIP')
pkgver() {
cd "${_pkgname}"
git describe --long | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cmake -B build "$_pkgname" \
-DCMAKE_INSTALL_LIBDIR="/usr/lib" \
-DCMAKE_INSTALL_PREFIX="/usr" \
-DENABLE_STATIC=NO \
-DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS} -z muldefs" \
-Wno-dev
#-DCMAKE_C_FLAGS="${CFLAGS} -DFILE_EXPORTS -DDLLEXPORT=extern" \
make -C build
}
package() {
make -C build DESTDIR="${pkgdir}" install
}
|