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

pkgname=owncloud-app-music-git
pkgver=0.3.7.2470.g22c20a53
pkgrel=1
pkgdesc="An music application for owncloud"
arch=('any')
url="https://github.com/owncloud/music"
license=('AGPL')
depends=('owncloud')
makedepends=('git')
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"
}