PKGBUILDs/subtitlecomposer/default/PKGBUILD

57 lines
1.8 KiB
Bash
Raw Normal View History

2015-09-03 01:54:40 +02:00
# Maintainer: Martchus <martchus@gmx.net>
# Contributor: Mladen Milinkovic <maxrd2@smoothware.net>
# You can install/update Subtitle Composer from repository
# if you add following to /etc/pacman.conf (x86_64 only)
2015-09-03 01:54:40 +02:00
# [subtitlecomposer]
# # Subtitle Composer
# SigLevel = PackageRequired
# Server = http://smoothware.net/$repo/$arch
# 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).
2015-09-03 01:54:40 +02:00
pkgname=subtitlecomposer
pkgver=0.6.5
pkgrel=2
2015-09-03 01:54:40 +02:00
pkgdesc="A KDE subtitle editor"
arch=('i686' 'x86_64')
2016-02-07 21:39:57 +01:00
url="https://github.com/maxrd2/${pkgname}"
2015-09-03 01:54:40 +02:00
license=('GPL')
2016-03-15 13:22:24 +01:00
depends=('kcoreaddons' 'sonnet' 'kcodecs' 'kross' 'kxmlgui' 'ki18n' 'gstreamer')
2016-02-07 21:39:57 +01:00
makedepends=('extra-cmake-modules')
2016-03-15 13:22:24 +01:00
# Comment/uncomment the following dependencies to disable/enable
# building the plugins for MPV and Xine player backends and pocketsphinx
2016-03-15 13:22:24 +01:00
makedepends+=('xine-lib')
makedepends+=('mpv')
makedepends+=('pocketsphinx')
# For consistency, also enable/disable the corresponding optdepends
optdepends=('mplayer: MPlayer backend'
'mpv: MPV backend'
'xine-lib: Xine backend'
'pocketsphinx: speech recognition'
2017-08-31 16:17:55 +02:00
'kross-interpreters: for ruby and python scripting support'
'ruby: scripting'
'python: scripting')
2016-02-07 21:39:57 +01:00
source=("https://github.com/maxrd2/${pkgname}/archive/v${pkgver}.tar.gz")
sha256sums=('26503c5f7ede37f482bd2da6b4acc8df83c0e5c18f38df011ce0f567a1422563')
2015-09-03 01:54:40 +02:00
build() {
2016-02-07 21:39:57 +01:00
cd ${srcdir}/${pkgname}-${pkgver}
2016-03-15 13:22:24 +01:00
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DKDE_INSTALL_LIBDIR=lib \
2016-03-15 13:22:24 +01:00
-DKDE_INSTALL_USE_QT_SYS_PATHS=ON \
-DBUILD_TESTING=OFF
2015-12-24 16:50:30 +01:00
make
2015-09-03 01:54:40 +02:00
}
package() {
2016-02-07 21:39:57 +01:00
cd ${srcdir}/${pkgname}-${pkgver}
2015-12-24 16:50:30 +01:00
make DESTDIR=${pkgdir} install
}