summaryrefslogtreecommitdiff
path: root/testing/kodi-audioencoder-lame/APKBUILD
blob: 348f4e4bc97b287ed7e5fa498dff3e331f3389b8 (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
# Contributor: Damian Kurek <starfire24680@gmail.com>
# Maintainer: Damian Kurek <starfire24680@gmail.com>
pkgname=kodi-audioencoder-lame
pkgver=2.0.4
_realname=Leia
pkgrel=0
pkgdesc="Lame MP3 encoder addon for Kodi"
options="!check" # no test suite
url="https://github.com/xbmc/audioencoder.lame"
arch="x86 x86_64 aarch64" # kodi
license="GPL-2.0-only"
makedepends="cmake lame-dev kodi-dev"
source="$pkgname-$pkgver.tar.gz::https://github.com/xbmc/audioencoder.lame/archive/$pkgver-$_realname.tar.gz"
builddir="$srcdir/audioencoder.lame-$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="8b57d20c2d02ec7148a83ab7af78eaf92b600a40faa666c4f26b5acb59838ade54f026dc3869b23fc79511fc5901acca5322d2f04336fc8d4f545f5d7c04cb2c  kodi-audioencoder-lame-2.0.4.tar.gz"