diff --git a/bcmatroska2/.SRCINFO b/bcmatroska2/.SRCINFO new file mode 100644 index 0000000000..02832eeb99 --- /dev/null +++ b/bcmatroska2/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = bcmatroska2 + pkgdesc = A C library for working with matroska files + pkgver = 5.3.36 + pkgrel = 1 + url = http://www.linphone.org/ + arch = x86_64 + arch = powerpc64le + arch = powerpc64 + arch = powerpc + arch = riscv64 + license = GPL-2.0-or-later + makedepends = cmake + depends = bctoolbox + depends = glibc + source = https://gitlab.linphone.org/BC/public/bcmatroska2/-/archive/5.3.36/bcmatroska2-5.3.36.tar.gz + sha256sums = dc0be2a2252756f22c5f3b3d48497952462fe59104476b6f33d99b6b87e56b2e + +pkgname = bcmatroska2 diff --git a/bcmatroska2/PKGBUILD b/bcmatroska2/PKGBUILD new file mode 100644 index 0000000000..198d413940 --- /dev/null +++ b/bcmatroska2/PKGBUILD @@ -0,0 +1,29 @@ +# POWER Maintainer: Alexander Baldeck +# Contributor: Guillaume Horel + +pkgname=bcmatroska2 +_pkgname=bcmatroska2 +pkgver=5.3.36 +pkgrel=1 +pkgdesc="A C library for working with matroska files" +arch=(x86_64 powerpc64le powerpc64 powerpc riscv64) +url="http://www.linphone.org/" +license=('GPL-2.0-or-later') +makedepends=('cmake') +depends=('bctoolbox' 'glibc') +source=("https://gitlab.linphone.org/BC/public/bcmatroska2/-/archive/$pkgver/bcmatroska2-$pkgver.tar.gz") +sha256sums=('dc0be2a2252756f22c5f3b3d48497952462fe59104476b6f33d99b6b87e56b2e') + +build() { + cmake -B build -S "$_pkgname-$pkgver" \ + -DCMAKE_INSTALL_LIBDIR="/usr/lib" \ + -DCMAKE_INSTALL_PREFIX="/usr" \ + -DBUILD_SHARED_LIBS=YES \ + -DCMAKE_SHARED_LINKER_FLAGS="${LDFLAGS} -z muldefs" \ + -Wno-dev + make -C build +} + +package() { + make -C build DESTDIR="${pkgdir}" install +}