diff options
-rw-r--r-- | .SRCINFO | 7 | ||||
-rw-r--r-- | PKGBUILD | 31 |
2 files changed, 18 insertions, 20 deletions
@@ -1,14 +1,13 @@ pkgbase = bcmatroska2-git pkgdesc = A C library for working with matroska files - pkgver = 0.23.r11.gd2e052b + pkgver = 5.2.1.r0.g4d125bf pkgrel = 1 url = http://www.linphone.org/ - arch = i686 arch = x86_64 license = GPL makedepends = cmake - source = git://git.linphone.org/libmatroska-c.git + depends = glibc + source = git+https://gitlab.linphone.org/BC/public/bcmatroska2.git sha256sums = SKIP pkgname = bcmatroska2-git - @@ -1,34 +1,33 @@ -# $Id$ # Contributor: Guillaume Horel <guillaume.horel@gmail.com> pkgname=bcmatroska2-git -_pkgname=libmatroska-c -pkgver=0.23.r11.gd2e052b +_pkgname=bcmatroska2 +pkgver=5.2.1.r0.g4d125bf pkgrel=1 pkgdesc="A C library for working with matroska files" -arch=('i686' 'x86_64') +arch=('x86_64') url="http://www.linphone.org/" license=('GPL') makedepends=('cmake') -source=("git://git.linphone.org/$_pkgname.git") +depends=('glibc') +source=("git+https://gitlab.linphone.org/BC/public/$_pkgname.git") sha256sums=('SKIP') pkgver() { - cd "${srcdir}/${_pkgname}" + cd "${_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 + 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() { - cd "${srcdir}/build" - make DESTDIR="${pkgdir}" install + make -C build DESTDIR="${pkgdir}" install } |