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