aboutsummaryrefslogtreecommitdiffstats
path: root/testing/peek
diff options
context:
space:
mode:
authorRasmus Thomsen <oss@cogitri.dev>2019-06-20 12:41:38 +0200
committerLeo <thinkabit.ukim@gmail.com>2019-06-20 08:13:24 -0300
commitadec9d5314ba33289cea3473bb348f2a9a56ece6 (patch)
tree478b40e159d1339aaa7e0fb00d0b19ef64a6c4f2 /testing/peek
parent22167855cb4c705576d6a4897653c54e83160212 (diff)
downloadaports-adec9d5314ba33289cea3473bb348f2a9a56ece6.tar.bz2
aports-adec9d5314ba33289cea3473bb348f2a9a56ece6.tar.xz
testing/peek: new aport
Diffstat (limited to 'testing/peek')
-rw-r--r--testing/peek/APKBUILD41
-rw-r--r--testing/peek/fix-parallel-build.patch53
2 files changed, 94 insertions, 0 deletions
diff --git a/testing/peek/APKBUILD b/testing/peek/APKBUILD
new file mode 100644
index 0000000000..1d63857220
--- /dev/null
+++ b/testing/peek/APKBUILD
@@ -0,0 +1,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"
diff --git a/testing/peek/fix-parallel-build.patch b/testing/peek/fix-parallel-build.patch
new file mode 100644
index 0000000000..727eb4cf1e
--- /dev/null
+++ b/testing/peek/fix-parallel-build.patch
@@ -0,0 +1,53 @@
+From: Boyuan Yang <073plan@gmail.com>
+Date: Wed, 13 Jun 2018 18:07:42 +0800
+Subject: tests: Force build tests after main executable target
+
+---
+ tests/CMakeLists.txt | 16 ++++++++++++++++
+ 1 file changed, 16 insertions(+)
+
+diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
+index 23a4db3..087d0ca 100644
+--- a/tests/CMakeLists.txt
++++ b/tests/CMakeLists.txt
+@@ -17,6 +17,10 @@ add_test(
+ test-desktop-integration
+ ${PROJECT_NAME}-test-desktop-integration)
+
++add_dependencies(
++ ${PROJECT_NAME}-test-desktop-integration
++ ${PROJECT_NAME})
++
+ # /utils/
+ vala_precompile(VALA_TEST_UTILS_C
+ test-utils.vala
+@@ -34,6 +38,10 @@ add_test(
+ test-utils
+ ${PROJECT_NAME}-test-utils)
+
++add_dependencies(
++ ${PROJECT_NAME}-test-utils
++ ${PROJECT_NAME})
++
+ # /screen-recorder/recording-area/
+ vala_precompile(VALA_TEST_RECORDING_AREA_C
+ screen-recorder/test-recording-area.vala
+@@ -50,6 +58,10 @@ add_test(
+ screen-recorder-test-recording-area
+ ${PROJECT_NAME}-screen-recorder-test-recording-area)
+
++add_dependencies(
++ ${PROJECT_NAME}-screen-recorder-test-recording-area
++ ${PROJECT_NAME})
++
+ # /screen-recorder/cli-screen-recorder/
+ vala_precompile(VALA_TEST_COMMAND_LINE_SCREEN_RECORDER_C
+ screen-recorder/test-cli-screen-recorder.vala
+@@ -79,3 +91,7 @@ add_executable(
+ add_test(
+ test-screen-recorder-cli-screen-recorder
+ ${PROJECT_NAME}-test-screen-recorder-cli-screen-recorder)
++
++add_dependencies(
++ ${PROJECT_NAME}-test-screen-recorder-cli-screen-recorder
++ ${PROJECT_NAME})