summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 07ba26883a6ca3305af5e5a5f4565d83b6848598 (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
# Maintainer: Alexander Jacobsen

pkgname=sony-remote
gitname=SonyRemote
pkgver=r5.981b9cb
pkgrel=1
pkgdesc="Sony BRAVIA TV Remote using the builtin REST API"
arch=('any')
url="https://github.com/AlexBMJ/SonyRemote"
license=('GPL3')
depends=('python-requests')
source=("git+https://github.com/AlexBMJ/$gitname")
md5sums=('SKIP')

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

package() {
	cd "$gitname"
	install -dm0755 ~/.local/share/$pkgname
	install -Dm0755 sony-remote.py ~/.local/bin/$pkgname
	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}