blob: a0f776d74ed1cb0bb89d9f64be3271ceb2e554ad (
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=92583ef
pkgver=20160131.92583ef
pkgrel=2
pkgdesc="platform library for external kodi addons"
arch=('i686' 'x86_64')
url='https://github.com/xbmc/kodi-platform'
license=('GPL')
depends=('kodi' 'p8-platform')
makedepends=('git' 'cmake')
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
}
|