blob: 762e18d0d9209947821289ab653eb1fd3cfdd86d (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
|
# Maintainer : Özgür Sarıer <echo b3pndXJzYXJpZXIxMDExNjAxMTE1QGdtYWlsLmNvbQo= | base64 -d>
_compile=0 # Default 0
# 0=Use prebuilt debian vlc-plugin-fluidsynth package
# 1=Download vlc stable git source and compile vlc fluidsynth plugin standalone.
pkgname=vlc-plugin-fluidsynth
pkgver=2.2.2
pkgrel=4
pkgrel_status=
pkgdesc="FluidSynth plugin for VLC"
arch=('i686' 'x86_64')
url="http://www.videolan.org/vlc/"
license=('LGPL2.1')
depends=('vlc<3.0.0' 'fluidsynth')
makedepends=()
optdepends=("soundfont-fluid: FluidR3_GM soundfont")
conflicts=("${pkgname}-git")
provides=("${pkgname}=${pkgver}")
replaces=("${pkgname}-git")
install="notes.install"
if [ "${_compile}" -eq 0 ]; then
source_i686=("${pkgname}_${pkgver}-${pkgrel}${pkgrel_status}_i386.deb::http://ftp.us.debian.org/debian/pool/main/v/vlc/${pkgname}_${pkgver}-${pkgrel}${pkgrel_status}_i386.deb")
source_x86_64=("${pkgname}_${pkgver}-${pkgrel}${pkgrel_status}_amd64.deb::http://ftp.us.debian.org/debian/pool/main/v/vlc/${pkgname}_${pkgver}-${pkgrel}${pkgrel_status}_amd64.deb")
md5sums_i686=('af34df4542bb8da3e03010ca09553b60')
md5sums_x86_64=('aa1ba3de8dc10b9c3cf6ed60e10ae76d')
else
options=("!libtool" "!emptydirs")
source+=("git://git.videolan.org/${pkgname%%-*}/${pkgname%%-*}-${pkgver:0:3}.git")
md5sums+=('SKIP')
fi
if [ "${_compile}" -ne 0 ]; then
pkgver() {
cd "${srcdir}/${pkgname%%-*}-${pkgver:0:3}"
conf_ver=`sed -n 's/)$//g;s/^AC_INIT(vlc, //p' configure.ac`
echo "${conf_ver:0:5}"
}
fi
prepare() {
if [ "${_compile}" -eq 0 ]; then
cd "${srcdir}/"
mkdir -p "${srcdir}/data/"
tar -xf data.tar.xz -C "${srcdir}/data/"
else
cd "${srcdir}/${pkgname%%-*}-${pkgver:0:3}"
# Patch
sed -i -e 's:truetype/freefont:TTF:g' modules/text_renderer/freetype.c
sed -i -e 's:truetype/ttf-dejavu:TTF:g' modules/visualization/projectm.cpp
sed -i -e 's:5.6.0:5.7.0:g;s:5.5.0:5.6.0:g' configure.ac
fi
}
if [ "${_compile}" -ne 0 ]; then
build() {
cd "${srcdir}/${pkgname%%-*}-${pkgver:0:3}"
msg 'Generating necessary files...'
./bootstrap
msg 'Done. Configuring VLC...'
# Config
./configure --prefix=/usr \
--sysconfdir=/etc \
--disable-rpath \
--enable-faad \
--enable-nls \
--enable-lirc \
--enable-ncurses \
--enable-realrtsp \
--enable-aa \
--enable-vcdx \
--enable-upnp \
--enable-opus \
--enable-sftp \
--enable-fluidsynth \
RCC=/usr/bin/rcc-qt4
msg 'Done. Starting make...'
cd "${srcdir}/${pkgname%%-*}-${pkgver:0:3}/compat/"
make libcompat.la
cd "${srcdir}/${pkgname%%-*}-${pkgver:0:3}/src/"
make libvlccore.la
cd "${srcdir}/${pkgname%%-*}-${pkgver:0:3}/modules/"
make top_builddir="${srcdir}/${pkgname%%-*}-${pkgver:0:3}" codec/libfluidsynth_plugin_la-fluidsynth.lo libfluidsynth_plugin.la
}
fi
package() {
if [ "${_compile}" -eq 0 ]; then
cd "${srcdir}/"
install -Dm0755 "${srcdir}/data/usr/lib/vlc/plugins/codec/libfluidsynth_plugin.so" "$pkgdir/usr/lib/vlc/plugins/codec/libfluidsynth_plugin.so"
else
cd "${srcdir}/${pkgname%%-*}-${pkgver:0:3}/modules/"
make DESTDIR="${pkgdir}" codec_LTLIBRARIES="libfluidsynth_plugin.la" install-codecLTLIBRARIES
fi
}
|