summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 0e33f070c58279072b9c51d5a161db18d95fdab2 (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
# Maintainer: jerry73204 <jerry73204@gmail.com>
pkgname=spice-html5-git
pkgver=spice.html5.0.1.7.r0.36b8ad3
_pkgver=0.1.7
pkgrel=1
pkgdesc='A HTML5 client for the Spice protocol'
arch=('any')
url='https://www.spice-space.org/spice-html5.html'
license=('GPL')
depends=()
optdepends=()
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("${pkgname%-git}"::"git+https://gitlab.freedesktop.org/spice/spice-html5.git#tag=spice-html5-${_pkgver}")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/${pkgname%-git}"
  printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}

build() {
  cd "${srcdir}/${pkgname%-git}"
  make
}

package() {
  cd "${srcdir}/${pkgname%-git}"
  make DESTDIR="${pkgdir}" install
}