* add bcmatroska2

This commit is contained in:
Alexander Baldeck 2024-10-17 22:16:19 +02:00
parent de89ed4126
commit 74e7b02cd5
2 changed files with 47 additions and 0 deletions

18
bcmatroska2/.SRCINFO Normal file
View File

@ -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

29
bcmatroska2/PKGBUILD Normal file
View File

@ -0,0 +1,29 @@
# POWER Maintainer: Alexander Baldeck <alex.bldck@gmail.com>
# Contributor: Guillaume Horel <guillaume.horel@gmail.com>
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
}