wok-current view avatar-factory/receipt @ rev 14542

firefox-langpack-id: Up to 17.0.6esr
author Dominique Corbex <domcox@slitaz.org>
date Wed May 22 21:56:58 2013 +0200 (2013-05-22)
parents 8d1f3057da51
children 2a5cc8208d36
line source
1 # SliTaz package receipt.
3 PACKAGE="avatar-factory"
4 VERSION="0.8"
5 CATEGORY="utilities"
6 SHORT_DESC="A bash script that creates eye candy shortcuts for music albums, photo albums, movie files, and more..."
7 MAINTAINER="al.bobylev@gmail.com"
8 WEB_SITE="http://yuzem.blogspot.com/p/avatar-factory.html?m=1"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WGET_URL="https://launchpad.net/$PACKAGE/trunk/$VERSION/+download/$TARBALL"
12 DEPENDS="bash findutils imagemagick sed zenity"
13 BUILD_DEPENDS="wget"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 genpkg_rules()
17 {
18 mkdir -p $fs/usr/bin $fs/usr/share/applications
19 sed -i 's|/usr/local|/usr|g' $src/avatar-factory
20 cp -a $src/avatar-factory $fs/usr/bin
21 cp -a $src/Avatar-Factory $fs/usr/share/avatar-factory
22 sed -i 's|/usr/local|/usr|' $src/avatar-factory.desktop
23 cp -a $src/avatar-factory.desktop $fs/usr/share/applications
25 # fix permissions
26 find $fs -type d -exec chmod 755 {} \;
27 find $fs -type f -exec chmod 644 {} \;
28 for file in $(find $fs -type f); do
29 [ $(head -n1 $file | grep '#!/bin/bash') ] && chmod 755 $file
30 done
31 chown -R root.root $fs # was pankso.100 ... why ?
32 }