diff options
author | Michael Lass | 2015-07-25 11:01:05 +0200 |
---|---|---|
committer | Michael Lass | 2015-07-25 11:04:46 +0200 |
commit | a462e6ef553fa70d214decb9bbc0050eb3e42315 (patch) | |
tree | d25eb34ac59b52f63b9c3d6a00ba0a6a26da60ee | |
download | aur-a462e6ef553fa70d214decb9bbc0050eb3e42315.tar.gz |
Inital commit
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 41 |
2 files changed, 59 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..62f3a8fe59ba --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = kodi-platform-git + pkgdesc = Kodi platform support library + pkgver = r36.33b6390 + pkgrel = 1 + url = https://github.com/xbmc/kodi-platform + arch = i686 + arch = x86_64 + license = GPL + makedepends = cmake + makedepends = git + depends = kodi + provides = kodi-platform + conflicts = kodi-platform + source = kodi-platform-git::git+https://github.com/xbmc/kodi-platform.git + md5sums = SKIP + +pkgname = kodi-platform-git + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..37d99427749f --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,41 @@ +# Maintainer: Michael Lass <bevan@bi-co.net> + +# This PKGBUILD is maintained on github: +# https://github.com/michaellass/AUR + +pkgname=kodi-platform-git +pkgver=r36.33b6390 +pkgrel=1 +pkgdesc='Kodi platform support library' +arch=('i686' 'x86_64') +url="https://github.com/xbmc/kodi-platform" +license=('GPL') +makedepends=('cmake' 'git') +depends=('kodi') +provides=('kodi-platform') +conflicts=('kodi-platform') +source=("${pkgname}::git+https://github.com/xbmc/kodi-platform.git") +md5sums=('SKIP') + +pkgver() { + cd "$pkgname" + printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" +} + +build() { + mkdir -p "$pkgname/build" + cd "$pkgname/build" + + cmake \ + -DCMAKE_INSTALL_PREFIX=/usr \ + -DCMAKE_INSTALL_LIBDIR=/usr/lib \ + -DCMAKE_INSTALL_LIBDIR_NOARCH=/usr/lib \ + -DCMAKE_BUILD_TYPE=Release \ + .. + make +} + +package() { + cd "$pkgname/build" + make DESTDIR="$pkgdir" install +} |