summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 20fd26bbaed75e9c066c43288cf607d6c9282416 (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
# Maintainer: nicknb <nicknb at posteo dot com>
# Contributor: TheCyberArcher <TheCyberArcher@protonmail.ch>
# Contributor: novenary
# Contributor: Daniel M. Capella
# Contributor: Dan Elkouby

pkgname=socos
pkgver=r215.7719b54
pkgrel=2
pkgdesc="Commandline tool for controlling Sonos devices"
arch=('any')
url="https://github.com/SoCo/socos"
license=('MIT')
depends=('python' 'python-setuptools' 'python-soco')
makedepends=('git')
options=(!emptydirs)
source=("git+https://github.com/SoCo/socos.git" "LICENSE")
sha256sums=('SKIP' 'd1767cf8f8caf414fa00c6e09f121c2a848570fe9261c735597647f20aa3b0d6')

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

prepare() {
    git -C "$srcdir/$pkgname" clean -fdx
}

package() {
    cd "$srcdir/$pkgname"
    python setup.py install --root="$pkgdir/" --optimize=1
    install -Dm644 $srcdir/LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}