mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-08 22:45:43 +00:00
extra/vlc to 2.2.3-3
This commit is contained in:
parent
3ff5cdc602
commit
a50d2e1a30
3 changed files with 20 additions and 18 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
pkgname=vlc
|
||||
pkgver=2.2.3
|
||||
pkgrel=2
|
||||
pkgrel=3
|
||||
pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player"
|
||||
arch=('i686' 'x86_64')
|
||||
url="http://www.videolan.org/vlc/"
|
||||
|
@ -60,16 +60,16 @@ replaces=('vlc-plugin')
|
|||
backup=('usr/share/vlc/lua/http/.hosts'
|
||||
'usr/share/vlc/lua/http/dialogs/.hosts')
|
||||
options=('!emptydirs')
|
||||
install=vlc.install
|
||||
source=("http://download.videolan.org/${pkgname}/${pkgver}/${pkgname}-${pkgver}.tar.xz"{,.asc}
|
||||
"lua53_compat.patch")
|
||||
update-vlc-plugin-cache.hook "lua53_compat.patch")
|
||||
validpgpkeys=(65F7C6B4206BD057A7EB73787180713BE58D1ADC) # VideoLAN Release Signing Key
|
||||
md5sums=('ecbc65be549e5cc83e4cbe0129e66dcd'
|
||||
'SKIP'
|
||||
'6fdaca3aa56c0676e9c88049b8650324'
|
||||
'96d3b346d9149ffb1b430066dfb6249a')
|
||||
|
||||
prepare() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
cd "${pkgname}-${pkgver}"
|
||||
|
||||
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
|
||||
|
@ -78,10 +78,10 @@ prepare() {
|
|||
}
|
||||
|
||||
build() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
cd "${pkgname}-${pkgver}"
|
||||
|
||||
PKG_CONFIG_PATH="/usr/lib/ffmpeg2.8/pkgconfig" \
|
||||
CFLAGS+=" -I/usr/include/samba-4.0" CPPFLAGS+=" -I/usr/include/samba-4.0" \
|
||||
CFLAGS+=" -I/usr/include/samba-4.0" CPPFLAGS+=" -I/usr/include/samba-4.0" CXXFLAGS+=" -std=gnu++98" \
|
||||
./configure --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--disable-rpath \
|
||||
|
@ -103,7 +103,7 @@ build() {
|
|||
}
|
||||
|
||||
package() {
|
||||
cd "${srcdir}/${pkgname}-${pkgver}"
|
||||
cd "${pkgname}-${pkgver}"
|
||||
|
||||
make DESTDIR="${pkgdir}" install
|
||||
|
||||
|
@ -111,4 +111,6 @@ package() {
|
|||
install -D -m644 "${srcdir}/vlc-${pkgver}/share/icons/${res}x${res}/vlc.png" \
|
||||
"${pkgdir}/usr/share/icons/hicolor/${res}x${res}/apps/vlc.png"
|
||||
done
|
||||
|
||||
install -Dm644 "$srcdir"/update-vlc-plugin-cache.hook "$pkgdir"/usr/share/libalpm/hooks/update-vlc-plugin-cache.hook
|
||||
}
|
||||
|
|
11
extra/vlc/update-vlc-plugin-cache.hook
Normal file
11
extra/vlc/update-vlc-plugin-cache.hook
Normal file
|
@ -0,0 +1,11 @@
|
|||
[Trigger]
|
||||
Type = File
|
||||
Operation = Install
|
||||
Operation = Upgrade
|
||||
Operation = Remove
|
||||
Target = usr/lib/vlc/plugins/*
|
||||
|
||||
[Action]
|
||||
Description = Updating the vlc plugin cache...
|
||||
When = PostTransaction
|
||||
Exec = /usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
|
|
@ -1,11 +0,0 @@
|
|||
post_install() {
|
||||
usr/lib/vlc/vlc-cache-gen -f /usr/lib/vlc/plugins
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
pre_remove() {
|
||||
rm -f usr/lib/vlc/plugins/plugins-*.dat
|
||||
}
|
Loading…
Reference in a new issue