aboutsummaryrefslogtreecommitdiffstats
path: root/community/mediainfo/APKBUILD
blob: 42c1aace33e3f68f0f3775548da45e2980e16da7 (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
# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=mediainfo
pkgver=19.09
pkgrel=0
pkgdesc="Supplies technical and tag information about media files (CLI)"
url="https://mediaarea.net/en/MediaInfo"
arch="all"
license="BSD-2-Clause"
makedepends="automake autoconf cmake libmediainfo-dev>=$pkgver libtool libzen-dev"
source="https://mediaarea.net/download/source/mediainfo/$pkgver/mediainfo_$pkgver.tar.xz"
builddir="$srcdir/MediaInfo"
_clidir="$builddir/Project/GNU/CLI"

prepare() {
	default_prepare

	rm -Rf "$builddir"/Project/MS*

	cd "$_clidir"
	./autogen.sh
}

build() {
	cd "$_clidir"

	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--libdir=/usr/lib \
		--sysconfdir=/etc \
		--enable-static=no
	make
}

check() {
	cd "$_clidir"
	./mediainfo --version
}

package() {
	cd "$_clidir"
	make DESTDIR="$pkgdir" install
}

sha512sums="ddcfa92d822a28fa804d5bddc0d29bdb8cff3779b924c2caef0e59b0f79f857a4140dc94bd2ed9158954f6400778572975ac63f45ee2b87664e3e3b5ed9327a0  mediainfo_19.09.tar.xz"