115 lines
3.3 KiB
Bash
115 lines
3.3 KiB
Bash
# Maintainer: Christian Schendel <doppelhelix@gmail.com>
|
|
# Contributor: Martchus <martchus@gmx.net>
|
|
# Contributor: Mladen Milinkovic <maxrd2@smoothware.net>
|
|
|
|
# All my PKGBUILDs are managed at https://github.com/Martchus/PKGBUILDs where
|
|
# you also find the URL of (another) binary repository (i686 and x86_64).
|
|
|
|
# Official arch linux binaries: https://subtitlecomposer.kde.org/download.html
|
|
|
|
pkgname=subtitlecomposer
|
|
pkgver=0.8.2
|
|
pkgrel=3
|
|
epoch=1
|
|
pkgdesc="Video subtitle editor that supports basic and advanced editing operations"
|
|
arch=(
|
|
i686
|
|
x86_64
|
|
)
|
|
url="https://invent.kde.org/multimedia/${pkgname}"
|
|
license=(
|
|
GPL-2.0-only
|
|
)
|
|
depends=(
|
|
ffmpeg
|
|
gcc-libs
|
|
glibc
|
|
hicolor-icon-theme
|
|
icu
|
|
kcodecs
|
|
kcompletion
|
|
kconfig
|
|
kconfigwidgets
|
|
kcoreaddons
|
|
ki18n
|
|
kio
|
|
ktextwidgets
|
|
kwidgetsaddons
|
|
kxmlgui
|
|
openal
|
|
openssl
|
|
qt6-5compat
|
|
qt6-base
|
|
qt6-declarative
|
|
sonnet
|
|
)
|
|
checkdepends=(
|
|
xorg-server-xvfb
|
|
)
|
|
makedepends=(
|
|
appstream
|
|
blas
|
|
extra-cmake-modules
|
|
jack
|
|
vulkan-headers
|
|
)
|
|
|
|
# Comment/uncomment the following dependency to disable/enable
|
|
# building the pocketsphinx plugin
|
|
# 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')
|
|
|
|
# For consistency, also enable/disable the corresponding optdepends
|
|
# 'pocketsphinx: Pocketsphinx speech recognition backend'
|
|
optdepends=(
|
|
'ruby: scripting'
|
|
'python: scripting'
|
|
)
|
|
_tar=${pkgname}-${pkgver}
|
|
source=(
|
|
"https://download.kde.org/stable/${pkgname}/${_tar}.tar.xz"
|
|
"https://download.kde.org/stable/${pkgname}/${_tar}.tar.xz.sig"
|
|
"https://invent.kde.org/multimedia/subtitlecomposer/-/commit/0043f4434886c5aabe99705d40bd7f633b8b73e7.patch"
|
|
"https://invent.kde.org/multimedia/subtitlecomposer/-/commit/1e11d53565ab6df3ba8329072e7b4b12f9f88d72.patch"
|
|
)
|
|
b2sums=('faf87c9a7e47bb9facc3740d7ad53aee0b7971fd84a0b6cb0bb8b988e889e18b9201a57ad0261d736e26d3e34b06f494970b5d38337af3d8d6b40730401620cd'
|
|
'SKIP'
|
|
'313fc45608abc0e6f5dfb18be24df768d6762d385d8b2775ad42a7df6facd52991663f50eec6623c608f7989b8f5451dec8919e19a672b4398b95bcbbfb8663b'
|
|
'6e333c7d34e2605d693648cca10683f94fa704766204cbb3efe8f433391fb5537103a8f8bd47b831eebd0aa6250165ea88bbb594a24cc2aebd63a6826d3fb9a9')
|
|
validpgpkeys=('76F79007A54A4B68F1547928E2418746EF9D9B26') #Mladen Milinkovic <maxrd2@smoothware.net>
|
|
|
|
prepare() {
|
|
cd "${srcdir}/${_tar}"
|
|
patch -p1 -i ../0043f4434886c5aabe99705d40bd7f633b8b73e7.patch
|
|
patch -p1 -i ../1e11d53565ab6df3ba8329072e7b4b12f9f88d72.patch
|
|
}
|
|
|
|
build() {
|
|
local cmake_options=(
|
|
-B build
|
|
-D CMAKE_BUILD_TYPE=Release
|
|
-D CMAKE_INSTALL_PREFIX=/usr
|
|
-D KDE_INSTALL_LIBDIR=lib
|
|
-D QT_MAJOR_VERSION=6
|
|
-D KDE_INSTALL_USE_QT_SYS_PATHS=ON
|
|
-W no-dev
|
|
-S "${srcdir}/${_tar}"
|
|
)
|
|
cmake "${cmake_options[@]}"
|
|
cmake --build build
|
|
}
|
|
|
|
check() {
|
|
export DISPLAY=:99
|
|
Xvfb :99 >& /dev/null &
|
|
trap "kill $! || true" EXIT
|
|
cmake --build build --target test
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="${pkgdir}" cmake --install build
|
|
}
|