# Contributor: Rasmus Thomsen # Maintainer: Rasmus Thomsen pkgname=peek pkgver=1.4.0 pkgrel=0 pkgdesc="Simple animated GIF screen recorder with an easy to use interface" url="https://github.com/phw/peek" arch="all" license="GPL-3.0-or-later" depends="ffmpeg gst-plugins-good gst-plugins-bad" makedepends="cmake gtk+3.0-dev gettext-dev vala txt2man" subpackages="$pkgname-lang $pkgname-doc" source="$pkgname-$pkgver.tar.gz::https://github.com/phw/peek/archive/$pkgver.tar.gz CMakeLists.txt.patch" build() { if [ "$CBUILD" != "$CHOST" ]; then CMAKE_CROSSOPTS="-DCMAKE_SYSTEM_NAME=Linux -DCMAKE_HOST_SYSTEM_NAME=Linux" fi cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib \ -DBUILD_SHARED_LIBS=True \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_CXX_FLAGS="$CXXFLAGS" \ -DCMAKE_C_FLAGS="$CFLAGS" \ -DBUILD_TESTS=True \ ${CMAKE_CROSSOPTS} . make } check() { make test } package() { make DESTDIR="$pkgdir" install } sha512sums="ef1723f72d1c575493b2e9192cee6038807d37d875a797781169e5f4640635deda947362dcf2e1a9149fcfe88de532b8ea05c665b14b1befaa9aa8c982d9aa31 peek-1.4.0.tar.gz b85268fad2d9c2845da3d5f5eee827ef330fc284a4569c862abe9da1d27bb36d72c26d9018728fdb4d51b7288b772392c65d5a4d6674037a6b37b854a23dcf8b CMakeLists.txt.patch"