wok rev 14068

Add: avatar-factory
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 20 21:13:34 2013 +0000 (2013-02-20)
parents f76b5b1ad11c
children 8d1f3057da51
files avatar-factory/description.txt avatar-factory/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/avatar-factory/description.txt	Wed Feb 20 21:13:34 2013 +0000
     1.3 @@ -0,0 +1,7 @@
     1.4 +Avatar Factory is a bash script that creates shortcuts (Desktop Entry files)
     1.5 +with eye candy icons that represent music albums, photo albums, DVD films,
     1.6 +youtube videos, and more. When clicked the avatars can perform different
     1.7 +actions as launching a video, start playing some music (compatible with many
     1.8 +music players), open a folder, etc...
     1.9 +They can be viewed in Nautilus, Thunar or any application that support Desktop
    1.10 +Entry files.
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/avatar-factory/receipt	Wed Feb 20 21:13:34 2013 +0000
     2.3 @@ -0,0 +1,31 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="avatar-factory"
     2.7 +VERSION="0.8"
     2.8 +CATEGORY="utilities"
     2.9 +SHORT_DESC="A bash script that creates eye candy shortcuts for music albums, photo albums, movie files, and more..."
    2.10 +MAINTAINER="al.bobylev@gmail.com"
    2.11 +WEB_SITE="http://yuzem.blogspot.com/p/avatar-factory.html?m=1"
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2"
    2.13 +WGET_URL="https://launchpad.net/$PACKAGE/trunk/$VERSION/+download/$TARBALL"
    2.14 +
    2.15 +DEPENDS="bash findutils imagemagick sed zenity"
    2.16 +BUILD_DEPENDS="wget"
    2.17 +
    2.18 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.19 +genpkg_rules()
    2.20 +{
    2.21 +	mkdir -p $fs/usr/bin $fs/usr/share/applications
    2.22 +	sed -i 's|/usr/local|/usr|g' $src/avatar-factory
    2.23 +	cp -a $src/avatar-factory $fs/usr/bin
    2.24 +	cp -a $src/Avatar-Factory $fs/usr/share/avatar-factory
    2.25 +	sed -i 's|/usr/local|/usr|' $src/avatar-factory.desktop
    2.26 +	cp -a $src/avatar-factory.desktop $fs/usr/share/applications
    2.27 +
    2.28 +	# fix permissions
    2.29 +	find $fs -type d -exec chmod 755 {} \;
    2.30 +	find $fs -type f -exec chmod 644 {} \;
    2.31 +	for file in $(find $fs -type f); do
    2.32 +		[ $(head -n1 $file | grep '#!/bin/bash') ] && chmod 755 $file
    2.33 +	done
    2.34 +}