summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 64885f2ccbdfcf40d5ad19be0e6aff2155fb0c1d (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
pkgname=owncloud-app-notes-git
pkgver=0.5.855.gf8bbe283
pkgrel=1
pkgdesc="Owncloud notes app"
arch=('any')
url="https://github.com/owncloud/notes"
license=('AGPL')
depends=('owncloud')
makedepends=('git')
options=('!strip')
conflicts=('owncloud-app-notes')
source=("$pkgname::git+https://github.com/owncloud/notes.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/notes"
}