aboutsummaryrefslogblamecommitdiffstats
path: root/testing/kodi-audioencoder-flac/APKBUILD
blob: c2f0ce8d9f42400c018a2752225f4f3df1e42bfa (plain) (tree)




























                                                                                                                                                                                  
# Contributor: Damian Kurek <starfire24680@gmail.com>
# Maintainer: Damian Kurek <starfire24680@gmail.com>
pkgname=kodi-audioencoder-flac
pkgver=2.0.6
_realname=Leia
pkgrel=0
pkgdesc="Flac encoder addon for Kodi"
options="!check" # no test suite
url="https://github.com/xbmc/audioencoder.flac"
arch="x86 x86_64 aarch64" # kodi
license="GPL-2.0-only"
makedepends="cmake flac-dev kodi-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/xbmc/audioencoder.flac/archive/$pkgver-$_realname.tar.gz"
builddir="$srcdir/audioencoder.flac-$pkgver-$_realname"

build() {
	cmake -B build \
		-DCMAKE_BUILD_TYPE=None \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_MODULE_PATH=/usr/lib/cmake/kodi \
		-DUSE_LTO=1
	make -C build
}

package() {
	make -C build DESTDIR="$pkgdir" install
}

sha512sums="7de2b0f5b36b62bc1f066e5c99fba2aa61baac5f204a75556172aa95332999806a34babef08ac5e516e62a123b83d3befaee6654d3089ebd1a305335a40d88b5  kodi-audioencoder-flac-2.0.6.tar.gz"