archrelease: copy trunk to community-x86_64
[ArchLinux/community.git] / kodi-addon-audioencoder-flac / trunk / PKGBUILD
blob2966861bebe18c3f48221b1889e4b128dfd302fd
1 # Maintainer: BlackEagle <ike.devolder@gmail.com>>
3 pkgname=kodi-addon-audioencoder-flac
4 epoch=1
5 pkgver=20.2.0
6 _codename=Nexus
7 pkgrel=4
8 pkgdesc="FLAC Audio Encoder add-on for Kodi"
9 arch=('x86_64')
10 url='https://github.com/xbmc/audioencoder.flac'
11 license=('GPL')
12 groups=('kodi-addons' 'kodi-addons-audioencoder')
13 makedepends=('cmake' 'kodi-dev')
14 options=(!lto)
15 source=("$pkgname-$pkgver.tar.gz::https://github.com/xbmc/audioencoder.flac/archive/$pkgver-$_codename.tar.gz")
16 sha512sums=('83e3a6cd0311af05c7f3ae456bbe3d5627e47bc5d8f163bdfe57f3e70f798db6e9728698c73b3dc9da6cca2204e6a07004edff012f9bbf2e2b062e3fb97d5338')
18 build() {
19     cd "audioencoder.flac-$pkgver-$_codename"
20     cmake \
21         -DCMAKE_INSTALL_PREFIX=/usr \
22         -DCMAKE_BUILD_TYPE=Release \
23         -DBUILD_SHARED_LIBS=1 \
24         -DUSE_LTO=1 \
25         .
26     make
29 package() {
30     depends=('kodi')
31     cd "audioencoder.flac-$pkgver-$_codename"
32     make DESTDIR="$pkgdir/" install