updated on Wed Jan 18 08:00:29 UTC 2012
[aur-mirror.git] / jahplayer / PKGBUILD
blobe003a3df3c91fc0abbf226052c46f093189081a8
1 # Contributor: Darwin Bautista <djclue917@gmail.com>
3 pkgname=jahplayer
4 pkgver=0.2.2
5 pkgrel=1
6 pkgdesc="A professional grade media player capable of playing uncompressed video and image sequences"
7 arch=('i686' 'x86_64')
8 url="http://www.jahshaka.org/"
9 license=('GPL')
10 depends=('openlibraries>=0.4.0-2' 'python>=2.5' 'qt')
11 makedepends=('rpmextract')
12 source=(http://dl.sourceforge.net/sourceforge/jahshaka/jahplayer-${pkgver}-1.src.rpm \
13         jahplayer.desktop \
14         jahplayer.sh \
15         encoder.sh \
16         olib_pkg-config.patch \
17         python25.patch)
18 md5sums=('6eb762636a9d311445ea8497af6da184'
19          'a144a556c737c6fa2c15e331d5b3f1e4'
20          'f23e3f1f87a61cff5b8e9b5163bd99a0'
21          '317556270999fba7f9c12861b19c09ed'
22          'd2bc37726b43810c298e9bb0429a5711'
23          '62ffb385aaacc93eac2cb016d98198a6')
25 build() {
26   # Extract source tarball from RPM
27   rpmextract.sh jahplayer-${pkgver}-1.src.rpm
28   tar -xf jahplayer-${pkgver}.tar.gz
30   cd ${startdir}/src/jahplayer-${pkgver}/
32   patch -Np1 -i ../olib_pkg-config.patch || return 1
33   patch -Np1 -i ../python25.patch || return 1
35   # Source the QT profile
36   [ -f /etc/profile.d/qt.sh ] && source /etc/profile.d/qt.sh
38   make LDFLAGS="-Wl,--rpath=/usr/lib/openlibraries-0.4.0" -C jahwidgets || return 1
40   install -D -m644 jahwidgets/src/qt3/python/libwrapper_py.so* ${startdir}/pkg/usr/lib/python2.5/site-packages/jahwidgets.so
42   install -D -m644 jahwidgets/src/qt3/wrapper/libwrapper.so ${startdir}/pkg/usr/lib/libwrapper.so
43   install -m644 jahwidgets/src/qt3/widgets/libwidgets.so* ${startdir}/pkg/usr/lib/libwidgets.so
44   install -D -m644 jahwidgets/src/qt3/themes/libthemes.so* ${startdir}/pkg/opt/qt/plugins/styles/libthemes.so
46   install -d ${startdir}/pkg/usr/share/jah{player,tools}
48   install -m644 jahplayer/*.{py,ui,png,jpg} ${startdir}/pkg/usr/share/jahplayer/
49   chmod 755 ${startdir}/pkg/usr/share/jahplayer/jahplayer.py
51   install -m644 jahtools/encoder/*.{py,ui,png} ${startdir}/pkg/usr/share/jahtools/encoder/
52   chmod 755 ${startdir}/pkg/usr/share/jahtools/encoder/encoder.py
54   install -D -m755 ../jahplayer.sh ${startdir}/pkg/usr/bin/jahplayer
55   install -D -m755 ../encoder.sh ${startdir}/pkg/usr/bin/encoder
57   install -D -m644 ../jahplayer.desktop ${startdir}/pkg/usr/share/applications/jahplayer.desktop