# Contributor: Carlo Landmeter # Maintainer: Corey Oliver # Bundled libraries used in the package: # # Name | License | Location # -------------+---------------+--------- # aes-gladman | custom / GPL | Source/ThirdParty/aes-gladman # base64 | unknown | Source/ThirdParty/base64 # hmac-gladman | custom / GPL | Source/ThirdParty/hmac-gladman # md5 | Public domain | Source/ThirdParty/md5 # sha1-gladman | custom / GPL | Source/ThirdParty/sha1-gladman # sha2-gladman | custom / GPL | Source/ThirdParty/sha2-gladman pkgname=libmediainfo pkgver=19.07 pkgrel=0 pkgdesc="Shared library for mediainfo" url="https://github.com/MediaArea/MediaInfoLib" arch="all" license="BSD-2-Clause" depends_dev="zlib-dev" makedepends="$depends_dev cmake curl-dev libmms-dev libzen-dev tinyxml2-dev" subpackages="$pkgname-dev" source="https://mediaarea.net/download/source/libmediainfo/$pkgver/${pkgname}_$pkgver.tar.xz" builddir="$srcdir/MediaInfoLib" _cmakedir="$builddir/Project/CMake" options="!check" # upstream does not provide tests prepare() { default_prepare cd "$builddir" rm -rf Project/MS* # Make sure that these bundled libs are not used. rm -R Project/zlib rm -R Source/ThirdParty/tinyxml2 } build() { cd "$_cmakedir" cmake \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DBUILD_SHARED_LIBS=ON make } package() { cd "$_cmakedir" make DESTDIR="$pkgdir" install } sha512sums="b16a161be548ae86e5e1fe54f86614f6f3b151b86afb657cf0ea96aa0278b0158309e0382dac0dd0ada5e5af7a2f58369e6fa97bfc7306a3bbc82792c0a29ecc libmediainfo_19.07.tar.xz"