summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: baa31efd1b8579068fc7157b030834e433342920 (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
37
# Maintainer: Arne Beer <arne@twobeer.de>

_gitname=mediaqbot
pkgname=${_gitname}-git
pkgver='r35.7e0799d'
pkgrel=1
arch=('any')
pkgdesc='A media scheduler mpv'
license=('MIT')
depends=('mpv')
conflicts=('mediaqbot')
makedepends=('git' 'python-setuptools')
provides=('mediaqbot')
url='https://github.com/raffomania/mediaqbot'
source=(
    "git+https://github.com/raffomania/mediaqbot.git"
    "git+https://github.com/hatzel/python-mpv.git"
)
sha256sums=('SKIP' 'SKIP')

prepare() {
    cd "${_gitname}"

    git submodule init
    git config submodule."client/mediaqclient/mpv".url ${srcdir}/mpv
}

package() {
  cd "${_gitname}/client"
  # Install
  python setup.py install --optimize=1 --root="${pkgdir}"

  cd ../

  # Install MIT License
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}