# Maintainer: Philipp Wolfer pkgname=peek pkgver=1.2.2 pkgrel=1 pkgdesc="Simple screen recorder with an easy to use interface" arch=('i686' 'x86_64') url="https://github.com/phw/peek" license=('GPL3') depends=(gtk3 libkeybinder3 ffmpeg) makedepends=(cmake vala gettext txt2man) optdepends=( 'gst-plugins-good: Recording under Gnome Shell' 'gst-plugins-ugly: MP4 output under Gnome Shell' 'gifski: High quality GIF animations with thousands of colors' ) source=(${pkgname}-${pkgver}.tar.gz::https://github.com/phw/${pkgname}/archive/${pkgver}.tar.gz) sha256sums=('8b4cdd64ce577a36dbe5e2ea25330e7006e4fbae136e9446d0347d563decb6b7') prepare() { mkdir -p build } build() { cd "build" cmake "${srcdir}/${pkgname}-${pkgver}" \ -DCMAKE_INSTALL_PREFIX=/usr \ -DBUILD_TESTS=ON \ -DCMAKE_BUILD_TYPE=Release \ -DGSETTINGS_COMPILE=OFF \ -DENABLE_FILECHOOSERNATIVE=OFF make } check() { cd "build" make test } package() { cd "build" make DESTDIR=${pkgdir} install }