PKGBUILDs/subtitlecomposer/git/PKGBUILD

63 lines
1.8 KiB
Bash
Raw Normal View History

# Maintainer: Mladen Milinkovic <maxrd2@smoothware.net>
2016-02-07 22:10:18 +01:00
# Contributor: Martchus <martchus@gmx.net>
# You can install/update Subtitle Composer from repository
# if you add following to /etc/pacman.conf (x86_64 only)
# [subtitlecomposer]
# # Subtitle Composer
# SigLevel = PackageRequired
# Server = http://smoothware.net/$repo/$arch
2015-09-03 01:54:40 +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).
2016-02-07 21:39:57 +01:00
_name=subtitlecomposer
pkgname=${_name}-git
pkgver=0.6.4
2015-09-03 01:54:40 +02:00
pkgrel=1
2016-08-09 01:55:11 +02:00
pkgdesc="A KDE subtitle editor"
2015-09-03 01:54:40 +02:00
arch=('i686' 'x86_64')
2016-02-07 21:39:57 +01:00
url="https://github.com/maxrd2/${_name}"
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' 'git')
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'
'ruby: scripting'
'python: scripting')
2016-02-07 21:39:57 +01:00
source=("git+https://github.com/maxrd2/${_name}.git")
2016-04-12 23:21:18 +02:00
#source=("git+https://github.com/Martchus/${_name}.git")
2016-03-15 13:22:24 +01:00
sha256sums=('SKIP')
2015-09-03 01:54:40 +02:00
pkgver() {
cd "${srcdir}/${_name}"
echo "$(git rev-list --count HEAD).$(git rev-parse --short HEAD)"
2015-09-03 01:54:40 +02:00
}
build() {
2016-02-07 21:39:57 +01:00
cd ${srcdir}/${_name}
2016-03-15 13:22:24 +01:00
cmake \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DLIB_INSTALL_DIR=lib \
-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}/${_name}
2015-12-24 16:50:30 +01:00
make DESTDIR=${pkgdir} install
2015-09-03 01:54:40 +02:00
}