2015-09-03 01:54:40 +02:00
|
|
|
# Maintainer: Martchus <martchus@gmx.net>
|
|
|
|
# Contributor: Mladen Milinkovic <maxrd2@smoothware.net>
|
|
|
|
|
2016-03-25 21:43:59 +01:00
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
2016-05-06 21:28:05 +02:00
|
|
|
# you also find the URL of (another) binary repository (i686 and x86_64).
|
2016-03-25 21:43:59 +01:00
|
|
|
|
2021-12-23 01:40:08 +01:00
|
|
|
# Official arch linux binaries: https://subtitlecomposer.kde.org/download.html
|
|
|
|
|
2019-12-15 20:35:51 +01:00
|
|
|
pkgname=subtitlecomposer
|
2023-11-07 23:05:35 +01:00
|
|
|
pkgver=0.8.0
|
2024-05-10 11:39:34 +02:00
|
|
|
pkgrel=4
|
2021-10-13 12:32:25 +02:00
|
|
|
pkgdesc='Video subtitle editor'
|
2015-09-03 01:54:40 +02:00
|
|
|
arch=('i686' 'x86_64')
|
2023-12-12 17:52:55 +01:00
|
|
|
url="https://invent.kde.org/multimedia/${pkgname}"
|
2015-09-03 01:54:40 +02:00
|
|
|
license=('GPL')
|
2024-05-10 11:39:34 +02:00
|
|
|
depends=('qt6-declarative' 'qt6-5compat' 'kcoreaddons' 'ktextwidgets' 'kio' 'sonnet' 'kcodecs' 'kxmlgui' 'ki18n' 'ffmpeg' 'openal')
|
2024-05-22 22:54:20 +02:00
|
|
|
checkdepends=('xorg-server-xvfb')
|
|
|
|
makedepends=('extra-cmake-modules' 'jack' 'blas')
|
2016-05-10 17:21:14 +02:00
|
|
|
|
2021-12-23 01:40:08 +01:00
|
|
|
# Comment/uncomment the following dependency to disable/enable
|
|
|
|
# building the pocketsphinx plugin
|
2023-02-24 22:07:00 +01:00
|
|
|
# Currently commented-out by default as the library is not even detected as of the 5.0.0 release:
|
|
|
|
# ```
|
|
|
|
# -- Could NOT find PocketSphinx (missing: POCKETSPHINX_INCLUDE_DIR) (found suitable version "5.0.0", minimum required is "5")
|
|
|
|
# -- Have NOT Found PocketSphinx - Speech plugin will not be built
|
|
|
|
# ```
|
|
|
|
#makedepends+=('pocketsphinx')
|
2016-05-10 17:21:14 +02:00
|
|
|
|
|
|
|
# For consistency, also enable/disable the corresponding optdepends
|
2023-02-24 22:07:00 +01:00
|
|
|
# 'pocketsphinx: Pocketsphinx speech recognition backend'
|
|
|
|
optdepends=(
|
|
|
|
'ruby: scripting'
|
|
|
|
'python: scripting'
|
|
|
|
)
|
2016-05-10 17:21:14 +02:00
|
|
|
|
2021-12-23 01:40:08 +01:00
|
|
|
_tar=${pkgname}-${pkgver}
|
|
|
|
source=("https://download.kde.org/stable/${pkgname}/${_tar}.tar.xz"
|
2024-05-22 22:54:20 +02:00
|
|
|
"https://download.kde.org/stable/${pkgname}/${_tar}.tar.xz.sig"
|
|
|
|
https://invent.kde.org/multimedia/subtitlecomposer/-/commit/f8280dbcc0b23aed2e55d8db39c220ad900e7825.patch
|
|
|
|
https://invent.kde.org/multimedia/subtitlecomposer/-/commit/4ae795f0cabdf9236f144ac14202de9df39b8232.patch
|
|
|
|
https://invent.kde.org/multimedia/subtitlecomposer/-/commit/75882f06140ed76aa3e86c759f0fdcec11c6ee51.patch
|
|
|
|
https://invent.kde.org/multimedia/subtitlecomposer/-/commit/a5f82704da9e143ed29cccbe71b06bf0b507ec3b.patch)
|
2023-11-07 23:05:35 +01:00
|
|
|
sha256sums=('b1416bdf7223b1979a36620b913c117c1b6c933bf165e28491af476310d7c9f8'
|
2024-05-22 22:54:20 +02:00
|
|
|
'SKIP'
|
|
|
|
'7e6289d52b592d9e273bb9c36949b343a55e076343ea2cf36cc6e580555aaeff'
|
|
|
|
'c78d860ce150eac38b26a968390217a9ce7e3c673fdae24e38e67341a77f7f84'
|
|
|
|
'93b588697ee7a48a323644a96d5ba79a2077ae87be00e54fa4bf451692d95590'
|
|
|
|
'94ae52d263c95187a48e7c7282f5c32a652a90f5009317957b3ee5e13c512eaa')
|
2021-12-23 01:40:08 +01:00
|
|
|
validpgpkeys=('76F79007A54A4B68F1547928E2418746EF9D9B26')
|
2015-09-03 01:54:40 +02:00
|
|
|
|
2022-01-25 18:19:13 +01:00
|
|
|
prepare() {
|
|
|
|
cd "${srcdir}/${_tar}"
|
2024-05-22 22:54:20 +02:00
|
|
|
|
|
|
|
patch -p1 -i "$srcdir"/f8280dbcc0b23aed2e55d8db39c220ad900e7825.patch
|
|
|
|
patch -p1 -i "$srcdir"/4ae795f0cabdf9236f144ac14202de9df39b8232.patch
|
|
|
|
patch -p1 -i "$srcdir"/75882f06140ed76aa3e86c759f0fdcec11c6ee51.patch
|
|
|
|
patch -p1 -i "$srcdir"/a5f82704da9e143ed29cccbe71b06bf0b507ec3b.patch
|
2022-01-25 18:19:13 +01:00
|
|
|
}
|
|
|
|
|
2015-09-03 01:54:40 +02:00
|
|
|
build() {
|
2021-12-23 01:40:08 +01:00
|
|
|
cmake -S "${srcdir}/${_tar}" -B "${srcdir}/build" \
|
2016-03-15 13:22:24 +01:00
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DCMAKE_INSTALL_PREFIX=/usr \
|
2017-12-29 20:48:33 +01:00
|
|
|
-DKDE_INSTALL_LIBDIR=lib \
|
2024-05-10 11:39:34 +02:00
|
|
|
-DQT_MAJOR_VERSION=6 \
|
2021-12-23 01:40:08 +01:00
|
|
|
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON
|
|
|
|
cmake --build "${srcdir}/build"
|
|
|
|
}
|
|
|
|
|
|
|
|
check() {
|
|
|
|
export DISPLAY=:99
|
|
|
|
Xvfb :99 >& /dev/null &
|
|
|
|
trap "kill $! || true" EXIT
|
|
|
|
cmake --build "${srcdir}/build" --target test
|
2015-09-03 01:54:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
2021-12-23 01:40:08 +01:00
|
|
|
DESTDIR="${pkgdir}" cmake --install "${srcdir}/build"
|
2016-03-25 21:43:59 +01:00
|
|
|
}
|