# Maintainer: graysky <therealgraysky AT protonmail DOT com>

pkgname=kodi-standalone-service
pkgver=2.1
pkgrel=1
pkgdesc="Systemd services to run kodi in stand-alone mode without a DE"
# This is only for x86_64
# The kodi-rpi packages for ArchARM provide their own versions of this package
arch=(x86_64)
url="https://github.com/graysky2/kodi-standalone-service"
license=(MIT)
install=kodi-standalone-service.install
depends=(polkit kodi)
replaces=(kodi-standalone-x11-service kodi-standalone-gbm-service kodi-standalone-wayland-service)
backup=(etc/conf.d/kodi-standalone)
optdepends=(
  'cage: for kodi-wayland.service'
  'wayland: for kodi-wayland.service'
  'xorg-server: for kodi-x11.service'
  'xorg-xinit: for kodi-x11.service'
)
source=("$pkgname-v$pkgver.tar.gz::https://github.com/graysky2/$pkgname/archive/v$pkgver.tar.gz")
b2sums=('a1cbc6b85c7b601cbb8b0dd6782da35b5bb7124ad8a4610f2d5b54dc676d745ed725a5731a16213a51ba7ea59580206c5b4fc140093bc684b667259c73b537b2')

package() {
  cd "$pkgname-$pkgver"
  make
  make DESTDIR="$pkgdir" install
}

# vim:set ts=2 sw=2 et:
