new PKGBUILD : libplatform-git (required for libcec-git)

This commit is contained in:
Cedric Girard 2015-04-13 17:58:49 +02:00
commit e4fb4fb4cf
2 changed files with 51 additions and 0 deletions

16
.SRCINFO Normal file
View file

@ -0,0 +1,16 @@
pkgbase = libplatform-git
pkgdesc = Platform support library used by libCEC and binary add-ons for Kodi
pkgver = 1.0.1
pkgrel = 1
url = https://github.com/Pulse-Eight/platform
arch = i686
arch = x86_64
license = GPL
makedepends = git
provides = libplatform
conflicts = libplatform
source = libplatform::git+https://github.com/Pulse-Eight/platform.git
md5sums = SKIP
pkgname = libplatform-git

35
PKGBUILD Normal file
View file

@ -0,0 +1,35 @@
# Maintainer: Cedric Girard <girard.cedric@gmail.com>
pkgname=libplatform-git
pkgver=1.0.1
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')
makedepends=('git')
provides=('libplatform')
conflicts=('libplatform')
source=('libplatform::git+https://github.com/Pulse-Eight/platform.git')
md5sums=('SKIP')
pkgver() {
cd "$srcdir"/libplatform
git describe --tags
}
build() {
cd "$srcdir"/libplatform
cmake . \
-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: