summaryrefslogtreecommitdiffstats
path: root/abs/extra/kodi-platform/PKGBUILD
blob: 23016245e94a19b83ab6f773c589d7a72d1b1537 (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
30
31
32
33
34
35
36
# $Id$
# Maintainer: BlackEagle <ike.devolder@gmail.com>>

pkgname=kodi-platform
_commit=36fb493
pkgver=20170306.36fb493
pkgrel=1
pkgdesc="platform library for external kodi addons"
arch=('x86_64')
url='https://github.com/xbmc/kodi-platform'
license=('GPL')
depends=('kodi' 'p8-platform')
makedepends=('git' 'cmake' 'kodi-dev')
source=("$pkgname::git://github.com/xbmc/kodi-platform.git#commit=$_commit")
sha256sums=('SKIP')

pkgver() {
	cd "$pkgname"
	git log -1 --date=short --format="%cd.%h" | tr -d '-'
}

build() {
	cd "$pkgname"
	cmake \
		-DCMAKE_INSTALL_PREFIX=/usr \
		-DCMAKE_BUILD_TYPE=Release \
		-DBUILD_SHARED_LIBS=1 \
		-DUSE_LTO=1
	make
}

package() {
	cd "$pkgname"
	make DESTDIR="$pkgdir/" install
}