2015-04-13 17:58:49 +02:00
|
|
|
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
|
|
|
|
|
|
|
|
pkgname=libplatform-git
|
2016-03-29 11:19:26 +02:00
|
|
|
pkgver=2.0.1.r2.g041a8c6
|
2015-04-13 17:58:49 +02:00
|
|
|
pkgrel=1
|
|
|
|
pkgdesc="Platform support library used by libCEC and binary add-ons for Kodi"
|
|
|
|
arch=('i686' 'x86_64')
|
|
|
|
url="https://github.com/Pulse-Eight/platform"
|
|
|
|
license=('GPL')
|
2020-04-06 14:44:14 +02:00
|
|
|
makedepends=('git' 'cmake')
|
2016-09-06 13:28:33 +02:00
|
|
|
provides=('libplatform' 'p8-platform')
|
|
|
|
conflicts=('libplatform' 'p8-platform')
|
2015-04-13 17:58:49 +02:00
|
|
|
source=('libplatform::git+https://github.com/Pulse-Eight/platform.git')
|
|
|
|
md5sums=('SKIP')
|
|
|
|
|
|
|
|
pkgver() {
|
|
|
|
cd "$srcdir"/libplatform
|
2016-03-29 11:19:26 +02:00
|
|
|
git describe --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g;s/p8\.platform\.//'
|
2015-04-13 17:58:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd "$srcdir"/libplatform
|
|
|
|
cmake . \
|
2015-05-18 13:54:07 +02:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DBUILD_SHARED_LIBS=1 \
|
2015-04-13 17:58:49 +02:00
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR=/usr/lib \
|
|
|
|
-DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib
|
|
|
|
make
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd "$srcdir"/libplatform
|
|
|
|
make DESTDIR="$pkgdir/" install
|
|
|
|
}
|
|
|
|
|
|
|
|
# vim:set ts=2 sw=2 et:
|