diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-07 09:34:11 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2012-03-07 10:53:54 +0000 |
commit | f408a132c937acaa0080e9f0ebbb2c85e596e109 (patch) | |
tree | 0deb7d7b2a34bd000e26a0f61b7d04f3a93d58a5 | |
parent | 081003d8b574f9f01acda47377637832e96591df (diff) | |
download | aports-f408a132c937acaa0080e9f0ebbb2c85e596e109.tar.bz2 aports-f408a132c937acaa0080e9f0ebbb2c85e596e109.tar.xz |
testing/vlc: split qt gui to vlc-qt subpackage
fixes #1013
-rw-r--r-- | testing/vlc/APKBUILD | 24 |
1 files changed, 21 insertions, 3 deletions
diff --git a/testing/vlc/APKBUILD b/testing/vlc/APKBUILD index d306d2d18b..b9e9dc8771 100644 --- a/testing/vlc/APKBUILD +++ b/testing/vlc/APKBUILD @@ -3,7 +3,7 @@ pkgname=vlc pkgver=2.0.0 _pkgver=${pkgver/_/-} -pkgrel=0 +pkgrel=1 pkgdesc="A multi-platform MPEG, VCD/DVD, and DivX player" pkgusers="vlc" pkggroups="vlc" @@ -11,7 +11,8 @@ url="http://www.videolan.org/vlc/" arch="all" license="GPL-2" triggers="$pkgname.trigger=/usr/lib/vlc/plugins" -subpackages="$pkgname-dev $pkgname-doc $pkgname-xorg $pkgname-daemon" +subpackages="$pkgname-dev $pkgname-doc $pkgname-qt $pkgname-xorg + $pkgname-daemon" #depends="fluidsynth zvbi lirc-utils libdca # libproxy libcddb smbclient # libmpcdec libmodplug" @@ -170,6 +171,23 @@ _mv() { mv "$1" "$subpkgdir"/$dir/ } +qt() { + pkgdesc="Qt frontend for VLC" + depends="vlc-xorg>=2.0.0-r1" + cd "$pkgdir" + # scan for elf files that directly or indirectly depends on + # libQt* libraries + cd "$pkgdir" + for i in $(find -type f ); do + if ldd $i 2>/dev/null | grep -q "libQt"; then + _mv "$i" || return 1 + fi + done + mkdir -p "$subpkgdir"/usr/bin + mv "$pkgdir"/usr/bin/qvlc \ + "$subpkgdir"/usr/bin/ +} + xorg() { pkgdesc="Video LAN X.org support" depends="xdg-utils vlc>=2.0.0_rc1-r4" @@ -184,7 +202,7 @@ xorg() { done mkdir -p "$subpkgdir"/usr/bin - mv "$pkgdir"/usr/bin/[qs]vlc \ + mv "$pkgdir"/usr/bin/svlc \ "$subpkgdir"/usr/bin mkdir -p "$subpkgdir"/usr/share/vlc |