wok annotate libv4l/receipt @ rev 6445
Up: icu, icu-dev to 4.4.1.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Sep 28 13:36:31 2010 +0000 (2010-09-28) |
parents | 4fcb5252b15b |
children | f4c57a9c37bf |
rev | line source |
---|---|
jozee@4488 | 1 # SliTaz package receipt. |
jozee@4488 | 2 |
jozee@4488 | 3 PACKAGE="libv4l" |
jozee@4488 | 4 VERSION="0.6.3" |
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" |
jozee@4488 | 9 WEB_SITE="http://hansdegoede.livejournal.com/3636.html" |
jozee@4488 | 10 TARBALL="${PACKAGE}-${VERSION}.tar.gz" |
jozee@4488 | 11 WGET_URL="http://people.fedoraproject.org/~jwrdegoede/$TARBALL" |
jozee@4488 | 12 TAGS="webcam video" |
jozee@4488 | 13 |
jozee@4488 | 14 # Rules to configure and make the package. |
jozee@4488 | 15 |
jozee@4488 | 16 compile_rules() { |
jozee@4488 | 17 cd $src |
jozee@4488 | 18 make && |
jozee@4488 | 19 make install PREFIX="/usr" DESTDIR="${PWD}/_pkg" |
jozee@4488 | 20 } |
jozee@4488 | 21 |
jozee@4488 | 22 # Rules to gen a SliTaz package suitable for Tazpkg. |
jozee@4488 | 23 genpkg_rules() |
jozee@4488 | 24 { |
jozee@4488 | 25 mkdir -p $fs/usr/lib |
jozee@4488 | 26 cp -a $_pkg/usr/lib/*so* $fs/usr/lib/ |
jozee@4488 | 27 cp -a $_pkg/usr/lib/$PACKAGE $fs/usr/lib |
jozee@4488 | 28 |
jozee@4488 | 29 } |
jozee@4609 | 30 |
jozee@4609 | 31 post_install() |
jozee@4609 | 32 { |
jozee@4609 | 33 echo "export LD_PRELOAD=/usr/lib/libv4l/v4l1compat.so" >> $1/etc/profile |
jozee@4609 | 34 } |
jozee@4612 | 35 |
jozee@4612 | 36 post_remove() |
jozee@4612 | 37 { |
jozee@4612 | 38 sed -i 's/export LD_PRELOAD=\/usr\/lib\/libv4l\/v4l1compat.so/ /' $1/etc/profile |
jozee@4612 | 39 } |