aboutsummaryrefslogtreecommitdiffstats
path: root/community/mediainfo/APKBUILD
blob: 743021e893de84c779c353df0b50df66c6be0963 (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=17.10
pkgrel=0
pkgdesc="Supplies technical and tag information about a video or audio file (CLI)"
url="https://mediaarea.net/en/MediaInfo"
arch="all"
license="BSD"
makedepends="automake autoconf cmake libmediainfo-dev>=$pkgver libtool libzen-dev"
source="https://mediaarea.net/download/source/$pkgname/$pkgver/${pkgname}_$pkgver.tar.bz2"
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="1e0c81c4dc1c0653f4213c0bdac4ffdfce5e2fa2c4c304e3ebaae712a17c2e10eaf42cd86b510d461a9e631347b45d6235002b67e219f226db354dc15b20e725  mediainfo_17.10.tar.bz2"