summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 45fa2d0b319108701197b65827da647a7b67ab2e (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
# Maintainer: Jonas Heinrich <onny@project-insanity.org>
# Contributor: Jonas Heinrich <onny@project-insanity.org>

pkgname=owncloud-app-music-git
pkgver=0.3.4.12.g835b8dd
pkgrel=2
pkgdesc="An music application for owncloud"
arch=('any')
url="https://github.com/owncloud/music"
license=('AGPL')
depends=('owncloud')
makedepends=()
options=('!strip')
conflicts=('owncloud-app-music')
source=("$pkgname::git+https://github.com/owncloud/music.git")
sha512sums=("SKIP")

pkgver() {
  cd "$SRCDEST/$pkgname"
  git describe --always | sed 's|-|.|g' | cut -f2 -d"v"
}

package() {
  install -d "${pkgdir}/usr/share/webapps/owncloud/apps"
  rm -rf "${srcdir}/$pkgname/.git"
  cp -a "${srcdir}/$pkgname" "${pkgdir}/usr/share/webapps/owncloud/apps/music"
}