summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ea3e5ce3e0f5132ab2b152ca57cc56a624cbd381 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Contributor: Alfredo Ramos <alfredo dot ramos at yandex dot com>
# Contributor: Arthur Țițeică arthur.titeica/gmail/com
# Contributor: Thomas Laube <tomx3@tomtomtom.org>

_pkgname=vokoscreenNG
pkgname=vokoscreen-git
pkgver=2.9.6.beta.39.g30f4f22
pkgrel=1
pkgdesc='An easy to use screencast creator. Development version.'
arch=('i686' 'x86_64')
url='http://linuxecke.volkoh.de/vokoscreen/vokoscreen.html'
license=('GPL2')
depends=('qt5-x11extras' 'qt5-multimedia' 'qt-gstreamer'
	'gst-plugins-good' 'gst-plugins-bad' 'pulseaudio')
makedepends=('git' 'qt5-tools' 'libxrandr')
optdepends=('gst-plugins-ugly: for x264 video codec')
provides=("${_pkgname%NG}=${pkgver}")
conflicts=("${_pkgname%NG}")
source=("git+https://github.com/vkohaupt/${_pkgname}.git"
	'install.pri')
sha512sums=('SKIP'
	    '0a5e0523adaa9e7f9b46cbbc8f7d8d0167787b67f11cfb7895785e3f93ab8836526c1b0891f4bf3362f4e8bc44885ffcf99670b86558aa667bd4f4ac7df56f11')

pkgver() {
  cd ${_pkgname}
  git describe --long --tags 2>/dev/null | sed -r 's/-/./g'
}

prepare() {
  cd ${_pkgname}

  # Add install instructions
  cp ../install.pri src/
  echo 'include(install.pri)' >> src/${_pkgname}.pro
  
  # Create build directory
  mkdir -p "${srcdir}"/build
}

build() {
  cd build
  qmake-qt5 ../${_pkgname}/src/${_pkgname}.pro \
	    QMAKE_CFLAGS="${CFLAGS}" \
	    QMAKE_CXXFLAGS="${CXXFLAGS}" \
	    CONFIG+=release \
	    CONFIG+=c++14 
  make
}

package() {
  cd build
  make INSTALL_ROOT="${pkgdir}" install
}