blob: 1d6385722072a7ad8b4b7d0db7e4b9145fa51d32 (
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
|
# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=peek
pkgver=1.3.1
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
fix-parallel-build.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="cdf4190c555b0a40051862038c04dc7c164bf8bccf47202d0fcb74f527a8a7d5605bc2e112847e262e51a5a95c3d2b3497e4ec56834880564e8e4127869ad9df peek-1.3.1.tar.gz
bef691c81d25d4476976fa9db0f8e0946b40ccaf039dbd64f20eb31dc3a1bbc80b993b74a1e1d03e30900f3661e4c5ba35ad4b5b8e17ddf896bf4947d418e56c fix-parallel-build.patch"
|