# Contributor: Bart Ribbers # Maintainer: Bart Ribbers pkgname=subtitlecomposer pkgver=0.7.1 pkgrel=8 # armhf blocked by extra-cmake-modules # s390x, armv7, riscv64 and aarch64 blocked by OpenGLES # x86 fails to build, "call of overloaded 'createIndex(const int&, int, long long unsigned int)' is ambiguous" arch="all !armhf !s390x !armv7 !aarch64 !riscv64 !x86" url="https://subtitlecomposer.kde.org/" pkgdesc="The open source text-based subtitle editor" license="GPL-2.0-only" makedepends=" extra-cmake-modules ffmpeg-dev kauth-dev kcodecs-dev kconfig-dev kconfigwidgets-dev kcoreaddons-dev ki18n-dev kio-dev kross-dev ktextwidgets-dev kwidgetsaddons-dev kxmlgui-dev openal-soft-dev qt5-qtbase-dev samurai sonnet-dev " checkdepends="xvfb-run" source="https://download.kde.org/stable/subtitlecomposer/subtitlecomposer-$pkgver.tar.xz $pkgname-0001-Fix-invalid-memory-read.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/2ec9412ddf297ec7b64e780f3c107ec1678ef703.patch $pkgname-0002-Fixed-crash-when-closing-subtitle.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/3fe2fb49c613641da78ac1d176415387af1573ff.patch $pkgname-0003-Fix-crashes-on-empty-lines-list.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/17811ce518f2db3db4ecb15c81ed774593715713.patch $pkgname-0004-Removed-QSharedData-instances-from-stack.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/fa7b2dd651fc568c15e215633eacc7094fd4c052.patch $pkgname-0005-Fixed-memory-leaks.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/911b94b36b1536083e09d427f858baa421acf86b.patch $pkgname-0006-LinesItemDelegate-fix-inline-rich-editor-crash.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/82f907f4e468857c8e5b1e7fbf967cdd3a18a128.patch $pkgname-0007-Fix-compilation-with-ffmpeg5-63.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/4f4f560e40ba0b760cf688eb024be3cc734ca347.patch $pkgname-0008-VideoPlayer-Fix-usage-of-deprecated-removed-AVCodec-.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/d8f9797d9c0d45fa9f4402f79c539544b74d2cc7.patch $pkgname-0009-Replaced-Kross-with-QJSEngine.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/4a8df2a16c929f179fe69f1c3e867c03780874c5.patch $pkgname-0010-Organized-Tools-menu-scripts.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/2ac561d176aadc465ed030666fe11020577281c5.patch $pkgname-0011-Improved-script-manager.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/328b5994957b17941238cc2d47c3795dc15518f9.patch $pkgname-0012-SciptManager-fixed-wrong-filename-title-use.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/1af1bfd7552fe14c4c5e972ade6592f03ce0b969.patch $pkgname-0013-newer-ffmpeg.patch::https://invent.kde.org/multimedia/subtitlecomposer/-/commit/12f4d7f49d0b1a7fc02b0836521a285e7b6bac9d.patch " subpackages="$pkgname-lang" build() { cmake -B build -G Ninja \ -DCMAKE_BUILD_TYPE=MinSizeRel \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_INSTALL_LIBDIR=lib cmake --build build } check() { cd build CTEST_OUTPUT_ON_FAILURE=TRUE xvfb-run ctest } package() { DESTDIR="$pkgdir" cmake --install build } sha512sums=" b486a1be8b414409af4ec2d2ccc86a7e9f34040f114b0efbbf817b5157d85b5f9a37d80272b468a389128f10c12316bf028dd86e2a7434a2b001bfd185208b92 subtitlecomposer-0.7.1.tar.xz 0320f193a664055051b6b55ea3f8fcaf4a44a19807a5b261c1f4f272eef659a8f31fe9349ad7f87abbef7a77a6ca8fa10c093bef6e2e1daf3a1a155101a7b5bc subtitlecomposer-0001-Fix-invalid-memory-read.patch e4f6830aa65fbecf0f8c6e8b28123f8812f553830bdd40e60f8fe1849cf5c07b323dad562395abc0df47173e25116b4b60e04c8055b447fda4ef420721ca8eb6 subtitlecomposer-0002-Fixed-crash-when-closing-subtitle.patch 6b69438f5b11878d4407458755260319ff8cce89c703a9eebfb641690aebaeb3174cba587e5ee1c84c164f2c07012124093c23e52d8f549482412579baf74591 subtitlecomposer-0003-Fix-crashes-on-empty-lines-list.patch 8042327f8bfacd95d5d4bee919288ee4d58c5068404ce3fc1285dc4e70ee015f6bf6a3d0810b1acc18318b0deb0ec8eed1b2c4dc3b0d8da6ec172e869275686e subtitlecomposer-0004-Removed-QSharedData-instances-from-stack.patch a507a8252ab1dff34527af16fd0878dbc70c37cd9ce43330ccca5c7dddab6e835dd523b24ef81cbfe3b793365f845dd4297196764493aa8268a5f7b618a3ff32 subtitlecomposer-0005-Fixed-memory-leaks.patch afaad6dd11a08f8917e2257c85f768013fd17d6c71148bf5d0601549036f926f1b08e3238e7146ba0a9262edf84806cea1e70ab878039459cdc1dad9178bc129 subtitlecomposer-0006-LinesItemDelegate-fix-inline-rich-editor-crash.patch 457dbeefeb3a9867836e980592c52b120aa4dd9205f317e13d35e8bcd9ca81ae843b77bb6fe097030ac88d3c4c61f38cac02533e5137e6c54a2339fdd60f0fc1 subtitlecomposer-0007-Fix-compilation-with-ffmpeg5-63.patch 35fe30d123aafef39f6684407bd9bbe86e85f9a9fcabf9cd91971dbd7b51acd9f48f1f2d2242f062cc02ba516f15aa8903beb210e74b7a465f45feaa5f0a4a6d subtitlecomposer-0008-VideoPlayer-Fix-usage-of-deprecated-removed-AVCodec-.patch 214c0a2df5e3ef807021c747d861aaa384d3ad51ebe2307d0cf66b1d36603f4ade86c2743ce913ae026a26da28ce602fe5534d8984e72a9b5e2169495a844976 subtitlecomposer-0009-Replaced-Kross-with-QJSEngine.patch 6808653af712bb2ed12b414f4fbdfde4564d7fd9d242e7d236a76e2426b4bb1a8813f275007294a749b09252208174fdda44575a96d90bec7722280e27912d39 subtitlecomposer-0010-Organized-Tools-menu-scripts.patch 641978930a52cc0fa6e3edd97f1e2f3f9d5a033cdb070b73c2b56c0b5010f5df519bf93f7aad59253e900015b69820b0d71a1188ae8a43494c7afa1b0f612a2f subtitlecomposer-0011-Improved-script-manager.patch f7bb65288bd625e69737b1a9cc8db14ac75e50a5acdf06ec50c98e21898911b3a7ee9729e20ff8578f5306da143c1bf31015b2f7df08c94989235c9e475b3c76 subtitlecomposer-0012-SciptManager-fixed-wrong-filename-title-use.patch e79cfd5aadd9117dc3d1c03ddd2f8ce2083cc279868abf63285b7248b0010eef1c7b8b717584750a148c8aee41378a7349ebfe29eaa93438b053fe40eb6e7a87 subtitlecomposer-0013-newer-ffmpeg.patch "