SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "libv4l"

# SliTaz package receipt.

PACKAGE="libv4l"
VERSION="0.8.1"
CATEGORY="multimedia"
MAINTAINER="jozee@slitaz.org"
SHORT_DESC="Userspace library for Video 4 Linux (1 and 2)"
DEPENDS="glibc-base"
WEB_SITE="http://freshmeat.net/projects/libv4l"
SOURCE="v4l-utils"
TARBALL="${SOURCE}-${VERSION}.tar.bz2"
WGET_URL="http://linuxtv.org/downloads/v4l-utils/$TARBALL"
TAGS="webcam video"

# Rules to configure and make the package.

compile_rules() {
  cd $src
  make &&
  make install PREFIX="/usr" DESTDIR="${PWD}/_pkg" 
}
    
# Rules to gen a SliTaz package suitable for Tazpkg.
genpkg_rules()
{
    mkdir -p $fs/usr/lib
    cp -a $_pkg/usr/lib/*so* $fs/usr/lib/
    cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib
    
}

post_install()
{
  echo "export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so" >> $1/etc/profile
}

post_remove()
{
  sed -i 's/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/ /' $1/etc/profile    
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)