wok annotate libv4l/receipt @ rev 8144
Fix aufs and aufs-utils again.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Jan 25 00:36:14 2011 +0000 (2011-01-25) |
parents | c7adce465b63 |
children | be13f25e790b |
rev | line source |
---|---|
jozee@4488 | 1 # SliTaz package receipt. |
jozee@4488 | 2 |
jozee@4488 | 3 PACKAGE="libv4l" |
slaxemulator@6498 | 4 VERSION="0.8.1" |
jozee@4488 | 5 CATEGORY="multimedia" |
jozee@4488 | 6 MAINTAINER="jozee@slitaz.org" |
jozee@4488 | 7 SHORT_DESC="Userspace library for Video 4 Linux (1 and 2)" |
jozee@4488 | 8 DEPENDS="glibc-base" |
slaxemulator@6498 | 9 WEB_SITE="http://freshmeat.net/projects/libv4l" |
slaxemulator@6498 | 10 SOURCE="v4l-utils" |
slaxemulator@6498 | 11 TARBALL="${SOURCE}-${VERSION}.tar.bz2" |
slaxemulator@6498 | 12 WGET_URL="http://linuxtv.org/downloads/v4l-utils/$TARBALL" |
jozee@4488 | 13 TAGS="webcam video" |
jozee@4488 | 14 |
jozee@4488 | 15 # Rules to configure and make the package. |
jozee@4488 | 16 |
jozee@4488 | 17 compile_rules() { |
slaxemulator@6498 | 18 src=$WOK/$PACKAGE/$SOURCE-$VERSION |
jozee@4488 | 19 cd $src |
jozee@4488 | 20 make && |
jozee@4488 | 21 make install PREFIX="/usr" DESTDIR="${PWD}/_pkg" |
jozee@4488 | 22 } |
jozee@4488 | 23 |
jozee@4488 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4488 | 25 genpkg_rules() |
jozee@4488 | 26 { |
slaxemulator@6498 | 27 _pkg=$WOK/$PACKAGE/$SOURCE-$VERSION/_pkg |
jozee@4488 | 28 mkdir -p $fs/usr/lib |
jozee@4488 | 29 cp -a $_pkg/usr/lib/*so* $fs/usr/lib/ |
jozee@4488 | 30 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib |
jozee@4488 | 31 |
jozee@4488 | 32 } |
jozee@4609 | 33 |
jozee@4609 | 34 post_install() |
jozee@4609 | 35 { |
jozee@4609 | 36 echo "export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so" >> $1/etc/profile |
jozee@4609 | 37 } |
jozee@4612 | 38 |
jozee@4612 | 39 post_remove() |
jozee@4612 | 40 { |
jozee@4612 | 41 sed -i 's/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/ /' $1/etc/profile |
jozee@4612 | 42 } |