summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 17e6c84b1e0b0de2d222d815933ce0d16bb1a374 (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
32
33
34
# Maintainer: Mladen Milinkovic <maxrd2@smoothware.net>

_name=divvydroid
pkgname=${_name}-git
pkgver=1.0
pkgrel=1
pkgdesc="Application to screencast and remote control Android devices (git version)"
arch=('i686' 'x86_64')
url="https://github.com/maxrd2/${_name}"
license=('GPL')
depends=('qt5-base' 'ffmpeg' 'android-tools')
makedepends=('cmake' 'git')
conflicts=(${_name})
source=("git+https://github.com/maxrd2/${_name}.git")
sha256sums=('SKIP')

pkgver() {
  cd ${srcdir}/${_name}
  git describe --always | sed 's|-|.|g' | sed -e 's/^v//g'
}

build() {
  cd ${srcdir}/${_name}
  cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
	-DAPP_VERSION=${pkgver}
  make
}

package() {
  cd ${srcdir}/${_name}
  make DESTDIR=${pkgdir} install
}