diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-10-23 22:19:42 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-10-23 22:20:40 +0200 |
commit | 3fcee098f5f254feb0de84c216e6fb4820fa0566 (patch) | |
tree | ef8d68eda761aceabd343c1fdb8e15e381489b4b /community/libmediainfo | |
parent | 6452e803ff6a531c170bdd657f45e06a63ff224f (diff) | |
download | aports-3fcee098f5f254feb0de84c216e6fb4820fa0566.tar.bz2 aports-3fcee098f5f254feb0de84c216e6fb4820fa0566.tar.xz |
community/libmediainfo: move from testing
Diffstat (limited to 'community/libmediainfo')
-rw-r--r-- | community/libmediainfo/APKBUILD | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/community/libmediainfo/APKBUILD b/community/libmediainfo/APKBUILD new file mode 100644 index 0000000000..27feb1a00b --- /dev/null +++ b/community/libmediainfo/APKBUILD @@ -0,0 +1,58 @@ +# Contributor: Carlo Landmeter <clandmeter@gmail.com> +# Maintainer: Corey Oliver <corey.jon.oliver@gmail.com> + +# 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=0.7.99 +pkgrel=1 +pkgdesc="A shared library for mediainfo" +url="https://github.com/MediaArea/MediaInfoLib" +arch="all" +license="BSD custom" +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/$pkgname/$pkgver/${pkgname}_$pkgver.tar.gz" +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="03da832068d633c4186f0049d84aa0a442c6a82e371b7bddb5b632a5799fcd0be265cf53232cc18d1aa165707618fb03d49dea76627e15c07f9b2310bbcf30c7 libmediainfo_0.7.99.tar.gz" |