summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ec1dc0fcbb9078fa1553f1d37ec8e654c8c7bfe3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# Submitter: Steffen Weber <boenki-gmx-de>
# Maintainer: Roland Suchan <snrd at arcor dot de>

pkgname=ffdiaporama
_pkgdir="ffDiaporama"
pkgver=2.1
pkgrel=3
pkgdesc='application for creating video sequences consisting of photos, movies, music'
arch=(x86_64)
url=http://ffdiaporama.tuxfamily.org
license=(GPL2)
depends=('ffmpeg2.1' 'sdl' 'sdl_mixer' 'qt5-base' 'qt5-tools' 'qt5-svg' 'sqlite' 'qt5-imageformats' 'exiv2' 'taglib')
provides=(

)
makedepends=(
  gcc
)
source=('http://download.tuxfamily.org/ffdiaporama/Packages/Stable/ffdiaporama_bin_2.1.2014.0209.tar.gz'
        'patchfile.patch'
        'exiv2_0-28_fix.patch'
        )
md5sums=('f9f46277153cf49f6947973778516adb'
         '6269400e6c9805f57ddb0202035cc7c7'
         'SKIP'
         )

options=('debug')

prepare() {
  #cd "$pkgname-pkgver"
  cd "$_pkgdir"
  patch --forward --strip=1 --input="${srcdir}/patchfile.patch"
  patch --forward --strip=1 --input="${srcdir}/exiv2_0-28_fix.patch"
  #patch ${srcdir}/ffDiaporama/src/ffDiaporama/wgt_QMultimediaBrowser/QCustomFolderTable.cpp ${startdir}/patchfile.patch
}

build() {
  LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/lib/ffmpeg2.1:/opt/lib
  export LD_LIBRARY_PATH
  cd "$_pkgdir"
  sed -i 's@GTK;GNOME;Qt;KDE;AudioVideo;@AudioVideo;Player;X-Red-Hat-Base;@g' ffDiaporama.desktop
  qmake-qt5 'QMAKE_CFLAGS_ISYSTEM=-I' 'INCLUDEPATH += /opt/include/ffmpeg2.1 /opt/include' 'LIBPATH += /opt/lib/ffmpeg2.1 /opt/lib' ffDiaporama.pro PREFIX=/usr
  
  make "-j$(nproc)" || return 1
}

package() {
  cd "$_pkgdir"
  make INSTALL_ROOT="$pkgdir" install
}