wok-current annotate avatar-factory/receipt @ rev 22330

updated zile (2.3.24 -> 2.4.14)
author Hans-G?nter Theisgen
date Fri Nov 15 11:30:01 2019 +0100 (2019-11-15)
parents fa5913a0fdf3
children 9af0e03b8ad0
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"
pascal@15379 8 LICENSE="PublicDomain"
al@14068 9 WEB_SITE="http://yuzem.blogspot.com/p/avatar-factory.html?m=1"
al@14068 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
al@14068 11 WGET_URL="https://launchpad.net/$PACKAGE/trunk/$VERSION/+download/$TARBALL"
al@14068 12
al@14068 13 DEPENDS="bash findutils imagemagick sed zenity"
al@14068 14 BUILD_DEPENDS="wget"
al@14068 15
al@14068 16 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14068 17 genpkg_rules()
al@14068 18 {
al@14068 19 mkdir -p $fs/usr/bin $fs/usr/share/applications
al@14068 20 sed -i 's|/usr/local|/usr|g' $src/avatar-factory
al@14068 21 cp -a $src/avatar-factory $fs/usr/bin
al@14068 22 cp -a $src/Avatar-Factory $fs/usr/share/avatar-factory
al@14068 23 sed -i 's|/usr/local|/usr|' $src/avatar-factory.desktop
al@14068 24 cp -a $src/avatar-factory.desktop $fs/usr/share/applications
al@14068 25
al@14068 26 # fix permissions
al@14068 27 find $fs -type d -exec chmod 755 {} \;
al@14068 28 find $fs -type f -exec chmod 644 {} \;
al@14068 29 for file in $(find $fs -type f); do
al@14068 30 [ $(head -n1 $file | grep '#!/bin/bash') ] && chmod 755 $file
al@14068 31 done
pascal@14070 32 chown -R root.root $fs # was pankso.100 ... why ?
al@14068 33 }