wok-current rev 18852

Restore "apulse" && Workaround in "nvidia*" for "find-depends"
author Xander Ziiryanoff <psychomaniak@xakep.ru>
date Mon Jan 25 12:18:01 2016 +0100 (2016-01-25)
parents f6ecd4224bf8
children c765927c5087
files apulse/receipt get-skype/stuff/get-skype nvidia-173xx/receipt nvidia-96xx/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/apulse/receipt	Mon Jan 25 12:18:01 2016 +0100
     1.3 @@ -0,0 +1,29 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="apulse"
     1.7 +VERSION="0.1.5"
     1.8 +CATEGORY="multimedia"
     1.9 +SHORT_DESC="PulseAudio emulator for Alsa"
    1.10 +MAINTAINER="psychomaniak@xakep.ru"
    1.11 +LICENSE="MIT"
    1.12 +WEB_SITE="https://github.com/i-rinat/apulse"
    1.13 +TARBALL="v$VERSION.tar.gz"
    1.14 +WGET_URL="$WEB_SITE/archive/$TARBALL"
    1.15 +SUGGESTED="skype"
    1.16 +
    1.17 +DEPENDS="pcre alsa-lib glib"
    1.18 +BUILD_DEPENDS="cmake wget alsa-lib-dev glib-dev"
    1.19 +
    1.20 +# Rules to configure and make the package.
    1.21 +compile_rules()
    1.22 +{
    1.23 +        mv  $src/* ../
    1.24 +        cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release ..
    1.25 +        make && make install
    1.26 +}
    1.27 +
    1.28 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.29 +genpkg_rules()
    1.30 +{
    1.31 +        cp -a $install/* $fs
    1.32 +}
     2.1 --- a/get-skype/stuff/get-skype	Sun Jan 24 17:48:50 2016 +0100
     2.2 +++ b/get-skype/stuff/get-skype	Mon Jan 25 12:18:01 2016 +0100
     2.3 @@ -45,14 +45,19 @@
     2.4  mkdir -p skype-$VERSION/fs/usr/share/skype skype-$VERSION/fs/usr/bin
     2.5  mkdir -p skype-$VERSION/fs/etc skype-$VERSION/fs/usr/share/applications
     2.6  mkdir -p skype-$VERSION/fs/usr/share/pixmaps
     2.7 -mkdir -p skype-$VERSION/fs/usr/share/skype
     2.8 +mkdir -p skype-$VERSION/fs/usr/share/skype/lang
     2.9  mv LICENSE README skype-$VERSION/fs/usr/share/skype
    2.10 +mv lang/*_ru.* skype-$VERSION/fs/usr/share/skype/lang
    2.11  mv skype skype-$VERSION/fs/usr/bin
    2.12  mv icons skype-$VERSION/fs/usr/share/skype
    2.13  mv avatars skype-$VERSION/fs/usr/share/skype
    2.14  mv sounds skype-$VERSION/fs/usr/share/skype
    2.15  mv skype.conf skype-$VERSION/fs/etc
    2.16  mv skype.desktop skype-$VERSION/fs/usr/share/applications
    2.17 +cp skype.desktop skype-$VERSION/fs/usr/share/applications/skype.desktop
    2.18 +mv skype.desktop skype-$VERSION/fs/usr/share/applications/skype-pulse.desktop
    2.19 +sed 's|Exec=|TryExec=apulse\nExec=apulse |' -i skype-$VERSION/fs/usr/share/applications/skype.desktop
    2.20 +sed 's|Name=Skype|Name=Skype (PulseAudio)\nTryExec=pulseaudio|' -i skype-$VERSION/fs/usr/share/applications/skype-pulse.desktop
    2.21  cd skype-$VERSION/fs/usr/share/pixmaps/
    2.22  ln -s ../skype/icons/SkypeBlue_16x16.png skype.png ; cd -
    2.23  
    2.24 @@ -66,7 +71,7 @@
    2.25  WEB_SITE="$WEB_SITE"
    2.26  DEPENDS="libsigc++ xorg-libXv xorg-libXss libv4l bzip2 tiff \
    2.27  qt4-phonon libQtDBus libQtWebkit libQtGui libQtXml libQtCore \
    2.28 -gst-plugins-base"
    2.29 +gst-plugins-base apulse"
    2.30  CONFIG_FILES="/etc/skype.conf"
    2.31  
    2.32  post_install()
     3.1 --- a/nvidia-173xx/receipt	Sun Jan 24 17:48:50 2016 +0100
     3.2 +++ b/nvidia-173xx/receipt	Mon Jan 25 12:18:01 2016 +0100
     3.3 @@ -12,7 +12,7 @@
     3.4  WGET_URL="http://download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL"
     3.5  RUN_OPTS="--extract-only"
     3.6  TAGS="driver graphic video"
     3.7 -PROVIDE="nvidia"
     3.8 +PROVIDE="nvidia mesa"
     3.9  
    3.10  DEPENDS="linux xorg-server gtk+ cairo linux-agp xorg-libXv"
    3.11  BUILD_DEPENDS="linux-module-headers coreutils-file-summarize xz"
    3.12 @@ -61,6 +61,10 @@
    3.13  	ln -s libcuda.so.$VERSION $fs/usr/lib/libcuda.so.1
    3.14  	ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so
    3.15  	ln -s libGL.so.$VERSION $fs/usr/lib/libGL.so.1
    3.16 +	# exclude from files.list (for tazpkg's "find-depends")
    3.17 +        cd $fs/usr/lib
    3.18 +        for i in $(ls libGL.so*) ; do mv -f $i ${i//./-.-} ; done
    3.19 +
    3.20  	ln -s libGLcore.so.$VERSION $fs/usr/lib/libGLcore.so.1
    3.21  	ln -s libnvidia-cfg.so.$VERSION $fs/usr/lib/libnvidia-cfg.so
    3.22  	ln -s libnvidia-cfg.so.$VERSION $fs/usr/lib/libnvidia-cfg.so.1
    3.23 @@ -85,6 +89,10 @@
    3.24  
    3.25  post_install()
    3.26  {
    3.27 +	# Restore excluded from files.list (for tazpkg's "find-depends")
    3.28 +        cd $1/usr/lib
    3.29 +	for i in $(ls libGL.so*) ; do mv -f $i ${i//-.-/.} ; done
    3.30 +
    3.31  	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    3.32  
    3.33  	# correct .desktop file file
     4.1 --- a/nvidia-96xx/receipt	Sun Jan 24 17:48:50 2016 +0100
     4.2 +++ b/nvidia-96xx/receipt	Mon Jan 25 12:18:01 2016 +0100
     4.3 @@ -12,6 +12,7 @@
     4.4  WGET_URL="http://download.nvidia.com/XFree86/Linux-x86/$VERSION/$TARBALL"
     4.5  RUN_OPTS="--extract-only"
     4.6  TAGS="drivers graphic video"
     4.7 +PROVIDE="mesa"
     4.8  
     4.9  DEPENDS="linux xorg-server gtk+ cairo linux-agp linux-drm"
    4.10  BUILD_DEPENDS="linux-module-headers coreutils-file-summarize xz"
    4.11 @@ -57,6 +58,10 @@
    4.12  		ln -s $(basename $i) $(dirname $i)/$(basename ${i/so.${VERSION}/so/})
    4.13  		ln -s $(basename $i) $(dirname $i)/$(basename ${i/so.${VERSION}/so.1/})
    4.14  	done
    4.15 +	
    4.16 +	# exclude from files.list (for tazpkg's "find-depends")
    4.17 +	cd $fs/usr/lib
    4.18 +	for i in $(ls libGL.so*) ; do mv -f $i ${i//./-.-} ; done
    4.19  }
    4.20  
    4.21  pre_install()
    4.22 @@ -69,6 +74,10 @@
    4.23  
    4.24  post_install()
    4.25  {
    4.26 +	# Restore excluded from files.list (for tazpkg's "find-depends")
    4.27 +	cd $1/usr/lib
    4.28 +	for i in $(ls libGL.so*) ; do mv -f $i ${i//-.-/.} ; done
    4.29 +
    4.30  	newline
    4.31  	chroot "$1/" depmod -a ${EXTRAVERSION#_}-slitaz
    4.32