blob: b890724b0e89d985acec135d3812b751551af20b (
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
|
# Contributor: Róbert Nagy <vrnagy@gmail.com>
# Maintainer: Róbert Nagy <vrnagy@gmail.com>
pkgname=p8-platform
pkgver=2.1.0.1
pkgrel=2
pkgdesc="Platform support library used by libCEC and binary add-ons for Kodi"
url="https://github.com/Pulse-Eight/platform"
arch="all"
license="GPL"
depends=""
depends_dev=""
makedepends="$depends_dev cmake"
install=""
subpackages="$pkgname-dev"
source="https://github.com/Pulse-Eight/platform/archive/p8-platform-$pkgver.tar.gz"
builddir="$srcdir"/platform-p8-platform-$pkgver
build() {
mkdir "$builddir/build"
cd "$builddir/build"
cmake -DCMAKE_BUILD_TYPE=None -DBUILD_SHARED_LIBS=1 -DCMAKE_INSTALL_PREFIX=/usr .. || return 1
make || return 1
}
package() {
cd "$builddir/build"
make DESTDIR="$pkgdir" install || return 1
}
dev() {
default_dev
mkdir -p "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/p8-platform "$subpkgdir"/usr/lib/
}
sha512sums="76e6f1ac64b61e4def7d99965708d0f05698379e0f3e846317174f0bc12a9654b3341afc84bd8a3a70f101ecab6c692dea96b57d7e000dfabf6cedee2b8dcd8a p8-platform-2.1.0.1.tar.gz"
|