#Packager: Dimitris Tzemos (djemos@slackel.gr) pkgname=vlc pkgver=2.2.2 pkgrel=1dj source=("http://download.videolan.org/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz" 'lua53_compat.patch' 'vlc-gcc5-sse-target-workaround.patch') sourcetemplate=http://people.salixos.org/djemos/$pkgname docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=http://www.videolan.org/vlc/ slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "$pkgname - a multimedia player" "VLC (initially VideoLAN Client) is a highly portable multimedia player" "for various A/V formats (MPEG-1, MPEG-2, MPEG-4, DivX, mp3, ogg,...)" "as well as DVDs, VCDs, and various streaming protocols. It can also be" "used as a server to stream in unicast or multicast in IPv4 or IPv6 on" "a high-bandwidth network." ) build() { cd "${SRC}/${pkgname}-${pkgver}" patch -p1 < "${SRC}/vlc-gcc5-sse-target-workaround.patch" || return 1 patch -p1 -i "${SRC}/lua53_compat.patch" || return 1 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 #sh bootstrap NCURSES_CFLAGS="$(ncursesw5-config --cflags) -I/usr/include" \ NCURSES_LIBS="$(ncursesw5-config --libs)" \ ./configure --prefix=/usr --libdir=/usr/lib${LIBDIRSUFFIX} \ --localstatedir=/var --sysconfdir=/etc \ --disable-rpath \ --enable-faad \ --enable-nls \ --enable-lirc \ --enable-ncurses \ --enable-realrtsp \ --enable-aa \ --enable-vcdx \ --enable-upnp \ --disable-gnomevfs make -j $numjobs || return 1 make install DESTDIR=$PKG for res in 16 32 48 128; do install -D -m644 "${SRC}/vlc-${pkgver}/share/icons/${res}x${res}/vlc.png" \ "${PKG}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png" done }