wok view avatar-factory/receipt @ rev 15265
Up cookutils (3.1.7)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Sep 25 09:50:51 2013 +0000 (2013-09-25) |
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 }