wok annotate asunder/receipt @ rev 102
Fix asunder deps (cdparanoia-III)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jan 04 16:52:12 2008 +0100 (2008-01-04) |
parents | af77a06e0790 |
children | ff8d849faebc |
rev | line source |
---|---|
pankso@83 | 1 # SliTaz package receipt. |
pankso@83 | 2 |
pankso@83 | 3 PACKAGE="asunder" |
pankso@83 | 4 VERSION="1.0" |
pankso@83 | 5 CATEGORY="extra" |
pankso@83 | 6 SHORT_DESC="GTK light CD ripper." |
pankso@83 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@102 | 8 DEPENDS="gtk+ libcddb cdparanoia-III" |
pankso@83 | 9 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pankso@83 | 10 WEB_SITE="http://littlesvr.ca/asunder/" |
pankso@83 | 11 WGET_URL="http://littlesvr.ca/asunder/releases/$TARBALL" |
pankso@83 | 12 |
pankso@83 | 13 # Rules to configure and make the package. |
pankso@83 | 14 compile_rules() |
pankso@83 | 15 { |
pankso@83 | 16 cd $src |
pankso@83 | 17 ./configure \ |
pankso@83 | 18 --prefix=/usr \ |
pankso@83 | 19 $CONFIGURE_ARGS |
pankso@83 | 20 make |
pankso@83 | 21 make DESTDIR=$PWD/_pkg install |
pankso@83 | 22 } |
pankso@83 | 23 |
pankso@83 | 24 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@83 | 25 genpkg_rules() |
pankso@83 | 26 { |
pankso@83 | 27 mkdir -p $fs/usr/share/locale |
pankso@83 | 28 cp -a $_pkg/usr/bin $fs/usr |
pankso@83 | 29 cp -a $_pkg/usr/share/locale/fr $fs/usr/share/locale |
pankso@83 | 30 cp -a $_pkg/usr/share/pixmaps $fs/usr/share |
pankso@83 | 31 strip -s $fs/usr/bin/* |
pankso@83 | 32 } |
pankso@83 | 33 |
pankso@83 | 34 # Set permission on cdrom device to alown all users ripping |
pankso@83 | 35 post_install() |
pankso@83 | 36 { |
pankso@83 | 37 local root |
pankso@83 | 38 root=$1 |
pankso@83 | 39 DRIVE_NAME=`cat /proc/sys/dev/cdrom/info | grep "drive name" | cut -f 3` |
pankso@83 | 40 echo -n "Chmoding cdrom device..." |
pankso@83 | 41 chmod 0666 $root/dev/$DRIVE_NAME |
pankso@83 | 42 status |
pankso@83 | 43 } |