summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: c89aaef73b07bed8590e0d3e4b977585d26fd042 (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: Maarten Baert <maarten-baert@hotmail.com>

pkgname=simplescreenrecorder-git
pkgver=0.3.8.r89.g2edb032
pkgrel=1
pkgdesc="A feature-rich screen recorder that supports X11 and OpenGL. (Git version)"
arch=("i686" "x86_64")
url="http://www.maartenbaert.be/simplescreenrecorder/"
license=("GPL3")
source=("git+https://github.com/MaartenBaert/ssr.git")
md5sums=("SKIP")
depends=("qt4" "ffmpeg" "alsa-lib" "libpulse" "jack" "libgl" "glu" "libx11" "libxfixes" "libxext" "libxi")
if test "$CARCH" == x86_64; then
	optdepends=("lib32-simplescreenrecorder-git: OpenGL recording of 32-bit applications")
fi
makedepends=("git" "cmake")
conflicts=("simplescreenrecorder")
provides=("simplescreenrecorder")
install=simplescreenrecorder-git.install

pkgver() {
	cd "${srcdir}/ssr"
	# Use the tag of the last commit
	git describe --long | sed -E 's/([^-]*-g)/r\1/;s/-/./g'
}
build() {
	cd "${srcdir}/ssr"
	cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_INSTALL_LIBDIR="/usr/lib" -DCMAKE_BUILD_TYPE=Release .
	make
}
package() {
	cd "${srcdir}/ssr"
	make DESTDIR="${pkgdir}" install
}