diff options
Diffstat (limited to 'main/vlc/APKBUILD')
-rw-r--r-- | main/vlc/APKBUILD | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/main/vlc/APKBUILD b/main/vlc/APKBUILD index 54d4f6440..3ed7310c1 100644 --- a/main/vlc/APKBUILD +++ b/main/vlc/APKBUILD @@ -1,11 +1,12 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=vlc pkgver=1.1.5 -pkgrel=1 +pkgrel=2 pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player" url="http://www.videolan.org/vlc/" license="GPL-2" -subpackages="$pkgname-dev $pkgname-doc" +triggers="$pkgname.trigger:/usr/lib/vlc/plugins" +subpackages="$pkgname-dev $pkgname-doc $pkgname-xorg" #depends="libnotify a52dec fluidsynth zvbi libdvbpsi lirc-utils libdca hal # libproxy sdl_image libdvdnav>=4.1.3 lua libxv libv4l libcddb smbclient # libmatroska taglib sysfsutils libmpcdec ffmpeg>=0.5 libshout libmad @@ -48,6 +49,7 @@ source="http://download.videolan.org/pub/videolan/$pkgname/$pkgver/$pkgname-$pkg uclibc3.patch uclibc-libcompat.patch uclibc-inhibit-spawn.patch + vlc.trigger " _builddir="$srcdir"/$pkgname-$pkgver @@ -118,7 +120,33 @@ package() { rm -rf "$pkgdir"/usr/lib/mozilla } +_mv() { + local dir=${1%/*} + mkdir -p "$subpkgdir"/$dir + mv "$1" "$subpkgdir"/$dir/ +} + +xorg() { + pkgdesc="Video LAN X.org support" + triggers= + # scan for elf files that directly or indirectly depends on + # libX* libraries + cd "$pkgdir" + for i in $(find -type f ); do + if ldd $i 2>/dev/null | grep -q libX; then + _mv "$i" || return 1 + fi + done + + mkdir -p "$subpkgdir"/usr/share/ + mv "$pkgdir"/usr/share/applications \ + "$pkgdir"/usr/share/kde4 \ + "$pkgdir"/usr/share/icons \ + "$subpkgdir"/usr/share/ +} + md5sums="fdc23693351ed57af9f4c85ea885b536 vlc-1.1.5.tar.bz2 4f74dcde9ce51c15d80c3876b85c05f2 uclibc3.patch d718e22a7de9f38579f276f720b2f36a uclibc-libcompat.patch -361d6ae9d7b846833ed31e8454074158 uclibc-inhibit-spawn.patch" +361d6ae9d7b846833ed31e8454074158 uclibc-inhibit-spawn.patch +ddbd40bd72fedc1449be45588aea5d66 vlc.trigger" |