aboutsummaryrefslogtreecommitdiffstats
path: root/community/libzen/APKBUILD
blob: 8bd8872ce2d72adac96cfe9c3c056bd132b2f66d (plain) (blame)
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
# Contributor: Carlo Landmeter <clandmeter@gmail.com>
# Maintainer: Corey Oliver <corey.jon.oliver@gmail.com>
pkgname=libzen
pkgver=0.4.37
pkgrel=4
pkgdesc="A shared library for libmediainfo and mediainfo"
url="https://github.com/MediaArea/ZenLib"
arch="all"
license="BSD"
makedepends="cmake"
subpackages="$pkgname-dev"
source="https://mediaarea.net/download/source/$pkgname/$pkgver/${pkgname}_$pkgver.tar.bz2"
builddir="$srcdir/ZenLib"
options="!check"  # upstream does not provide tests
_cmakedir="$builddir/Project/CMake"

build() {
	cd "$_cmakedir"

	cmake \
		-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DLIB_INSTALL_DIR=/usr/lib \
		-DCMAKE_VERBOSE_MAKEFILE=ON
	make
}

package() {
	cd "$_cmakedir"

	make DESTDIR="$pkgdir" install
}

sha512sums="efeb520ce2eceacedd567afdd085bee67a598f24e8949b4704d839ae94322b9c9f1da6e1564498aad4f0ead148b74cec08f85c0189cbc611b2a06f218b5a22df  libzen_0.4.37.tar.bz2"