summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 88263251722ce07acaf2dd27979d0c1b067acd2f (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
# Maintainer: atrax <***** at prtn dot email where ***** is atrax> 

pkgname=cmus-syncthing
pkgver=0.7.0
pkgrel=1
pkgdesc="Sync utility for cmus playlists using Syncthing"
arch=('any')
url="https://github.com/atrax-dev/cmus-syncthing"
license=('custom:0BSD')
depends=(python-pyxdg python-setuptools)
optdepends=("cmus: playlist creation"
	    "syncthing: syncing")
install="${pkgname}.install"
source=("https://github.com/atrax-dev/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('b5692e257b0af39c8e65bd9db35a78b99021cfa24eb7b1d14690755c29d1e472')

build() {
  cd "$srcdir"/${pkgname}-${pkgver}
  python setup.py build
}

package() {
  cd "$srcdir"/${pkgname}-${pkgver}
  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
  install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
  install -Dm644 share/cmus-syncthing.service -t "$pkgdir"/usr/lib/systemd/user
  install -Dm644 share/cmus-syncthing.timer -t "$pkgdir"/usr/lib/systemd/user
  python setup.py install --root="$pkgdir"
}