aboutsummaryrefslogtreecommitdiffstats
path: root/community/libzen/APKBUILD
blob: f5e7f4dfc2a1c08dd90303baf1bc1b2d93ecb7cb (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=3
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="3b5bec79470bec054cfa759e753e3925fbd9f27e508c692c0b100fcf1599696bff462d92c08799646e6ffc74c176e7cc7509ae0754c4710d527494f59d95d12b  libzen_0.4.37.tar.bz2"