2015-09-03 02:04:12 +02:00
|
|
|
# Maintainer: Mladen Milinkovic <maxrd2@smoothware.net>
|
2016-02-07 22:10:18 +01:00
|
|
|
# Contributor: Martchus <martchus@gmx.net>
|
2015-09-03 02:04:12 +02:00
|
|
|
|
2016-05-06 21:28:05 +02:00
|
|
|
# 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).
|
|
|
|
|
2023-10-20 11:01:41 +02:00
|
|
|
# Official arch linux binaries: https://subtitlecomposer.kde.org/download.html
|
|
|
|
|
2019-12-15 20:35:05 +01:00
|
|
|
_name=subtitlecomposer
|
|
|
|
pkgname=${_name}-git
|
2023-10-20 11:01:41 +02:00
|
|
|
pkgver=0.7.1+git298.fe1477b5
|
|
|
|
pkgrel=2
|
2019-06-27 20:59:45 +02:00
|
|
|
pkgdesc="A KDE subtitle editor (git version)"
|
2015-09-03 01:54:40 +02:00
|
|
|
arch=('i686' 'x86_64')
|
2023-10-20 11:01:41 +02:00
|
|
|
url="https://invent.kde.org/multimedia/${_name}"
|
2015-09-03 01:54:40 +02:00
|
|
|
license=('GPL')
|
2023-10-20 11:01:41 +02:00
|
|
|
depends=('kcoreaddons5' 'ktextwidgets5' 'kio5' 'sonnet5' 'kcodecs5' 'kxmlgui5' 'ki18n5' 'ffmpeg' 'openal')
|
|
|
|
makedepends=('extra-cmake-modules' 'jack' 'blas' 'xorg-server-xvfb')
|
2016-05-10 17:21:14 +02:00
|
|
|
|
2023-10-20 11:01:41 +02:00
|
|
|
# Comment/uncomment the following dependency to disable/enable
|
|
|
|
# building the speech recognition plugin
|
2016-05-10 17:21:14 +02:00
|
|
|
makedepends+=('pocketsphinx')
|
|
|
|
|
|
|
|
# For consistency, also enable/disable the corresponding optdepends
|
2023-10-20 11:01:41 +02:00
|
|
|
optdepends=('pocketsphinx: Pocketsphinx speech recognition backend')
|
2016-05-10 17:21:14 +02:00
|
|
|
|
2019-12-15 20:35:05 +01:00
|
|
|
conflicts=(${_name})
|
|
|
|
provides=(${_name})
|
2017-05-24 22:52:37 +02:00
|
|
|
|
2023-10-20 11:01:41 +02:00
|
|
|
# gitlab mirrors https://invent.kde.org/multimedia/subtitlecomposer.git#branch=master + i18n
|
|
|
|
source=("git+https://invent.kde.org/multimedia/${_name}.git")
|
2016-03-15 13:22:24 +01:00
|
|
|
sha256sums=('SKIP')
|
2015-09-03 01:54:40 +02:00
|
|
|
|
|
|
|
pkgver() {
|
2019-06-27 20:59:45 +02:00
|
|
|
cd ${srcdir}/${_name}
|
2023-10-20 11:01:41 +02:00
|
|
|
git describe --always --abbrev=8 | sed 's/-g/./;s/-/+git/;s/^v//g'
|
2015-09-03 01:54:40 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2023-10-20 11:01:41 +02:00
|
|
|
cmake -S "${srcdir}/${_name}" -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 \
|
2023-10-20 11:01:41 +02: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() {
|
2023-10-20 11:01:41 +02:00
|
|
|
DESTDIR="${pkgdir}" cmake --install "${srcdir}/build"
|
2015-09-03 01:54:40 +02:00
|
|
|
}
|