summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e98173c65f8a75628285f65e45568b1a82aefef0 (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
# Maintainer: carlosfritz <carlosfritz@posteo.net>

_gitname=peripheral.joystick
pkgname=kodi-addon-peripheral-joystick-git
pkgver=r912.2786720
pkgrel=1
pkgdesc="Joystick support for Kodi"
url='https://github.com/xbmc/peripheral.joystick'
license=('GPL2')
source=("${_gitname}::git+https://github.com/xbmc/peripheral.joystick.git")
sha256sums=('SKIP')
arch=('any')
depends=('kodi' 'p8-platform')
makedepends=('git' 'cmake' 'kodi-platform' 'kodi-dev')
conflicts=('kodi-addon-peripheral-joystick')
provides=('kodi-addon-peripheral-joystick')

pkgver() {
  cd "${srcdir}/${_gitname}"
  printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${srcdir}/${_gitname}"
  cmake \
    -DADDONS_TO_BUILD=peripheral.joystick \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=/usr/lib/kodi \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_MODULE_PATH=/usr/lib/kodi
}

package() {
  cd "${srcdir}/${_gitname}"
  make prefix=/usr DESTDIR="$pkgdir" install
}