aboutsummaryrefslogtreecommitdiffstats
path: root/community/libmediainfo/APKBUILD
blob: bc78c79cc645f0cc8fcc0ce622e6f7fcc687799e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
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=18.03
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/$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="32520d00ab720b8cef2b3d530aea7e6a82f89cfb4300ae97e65172aa22463089e94f2d1c7ad3e6ca6adcbb2c343bd34c2ced6f1ecb3ecc77d7e10637b012b87b  libmediainfo_18.03.tar.gz"