wok-6.x diff avatar-factory/receipt @ 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 | |
children | 8d1f3057da51 |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/avatar-factory/receipt Wed Feb 20 21:13:34 2013 +0000 1.3 @@ -0,0 +1,31 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="avatar-factory" 1.7 +VERSION="0.8" 1.8 +CATEGORY="utilities" 1.9 +SHORT_DESC="A bash script that creates eye candy shortcuts for music albums, photo albums, movie files, and more..." 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +WEB_SITE="http://yuzem.blogspot.com/p/avatar-factory.html?m=1" 1.12 +TARBALL="$PACKAGE-$VERSION.tar.bz2" 1.13 +WGET_URL="https://launchpad.net/$PACKAGE/trunk/$VERSION/+download/$TARBALL" 1.14 + 1.15 +DEPENDS="bash findutils imagemagick sed zenity" 1.16 +BUILD_DEPENDS="wget" 1.17 + 1.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.19 +genpkg_rules() 1.20 +{ 1.21 + mkdir -p $fs/usr/bin $fs/usr/share/applications 1.22 + sed -i 's|/usr/local|/usr|g' $src/avatar-factory 1.23 + cp -a $src/avatar-factory $fs/usr/bin 1.24 + cp -a $src/Avatar-Factory $fs/usr/share/avatar-factory 1.25 + sed -i 's|/usr/local|/usr|' $src/avatar-factory.desktop 1.26 + cp -a $src/avatar-factory.desktop $fs/usr/share/applications 1.27 + 1.28 + # fix permissions 1.29 + find $fs -type d -exec chmod 755 {} \; 1.30 + find $fs -type f -exec chmod 644 {} \; 1.31 + for file in $(find $fs -type f); do 1.32 + [ $(head -n1 $file | grep '#!/bin/bash') ] && chmod 755 $file 1.33 + done 1.34 +}