wok-next diff avatar-factory/receipt @ rev 21042

Update Compiz Reloaded project
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sat Nov 10 17:21:54 2018 +0200 (2018-11-10)
parents 685f9eb83991
children 0cbe4b1f2230
line diff
     1.1 --- a/avatar-factory/receipt	Tue Oct 24 17:34:03 2017 +0300
     1.2 +++ b/avatar-factory/receipt	Sat Nov 10 17:21:54 2018 +0200
     1.3 @@ -1,33 +1,38 @@
     1.4 -# SliTaz package receipt.
     1.5 +# SliTaz package receipt v2.
     1.6  
     1.7  PACKAGE="avatar-factory"
     1.8  VERSION="0.8"
     1.9  CATEGORY="utilities"
    1.10 -SHORT_DESC="A bash script that creates eye candy shortcuts for music albums, photo albums, movie files, and more..."
    1.11 +SHORT_DESC="A bash script that creates eye candy shortcuts for music albums, \
    1.12 +photo albums, movie files, and more..."
    1.13  MAINTAINER="al.bobylev@gmail.com"
    1.14  LICENSE="PublicDomain"
    1.15  WEB_SITE="http://yuzem.blogspot.com/p/avatar-factory.html?m=1"
    1.16 +
    1.17  TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.18  WGET_URL="https://launchpad.net/$PACKAGE/trunk/$VERSION/+download/$TARBALL"
    1.19  
    1.20 -DEPENDS="bash findutils imagemagick sed zenity-gtk2"
    1.21 -BUILD_DEPENDS="wget"
    1.22 +compile_rules() {
    1.23 +	mkdir -p $install/usr/bin $install/usr/share/applications
    1.24  
    1.25 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.26 -genpkg_rules()
    1.27 -{
    1.28 -	mkdir -p $fs/usr/bin $fs/usr/share/applications
    1.29 -	sed -i 's|/usr/local|/usr|g' $src/avatar-factory
    1.30 -	cp -a $src/avatar-factory $fs/usr/bin
    1.31 -	cp -a $src/Avatar-Factory $fs/usr/share/avatar-factory
    1.32 -	sed -i 's|/usr/local|/usr|' $src/avatar-factory.desktop
    1.33 -	cp -a $src/avatar-factory.desktop $fs/usr/share/applications
    1.34 +	sed -i 's|/usr/local|/usr|g' avatar-factory
    1.35 +	cp avatar-factory $install/usr/bin
    1.36 +
    1.37 +	cp -r Avatar-Factory $install/usr/share/avatar-factory
    1.38 +
    1.39 +	sed -i 's|/usr/local|/usr|' avatar-factory.desktop
    1.40 +	cp avatar-factory.desktop $install/usr/share/applications
    1.41  
    1.42  	# fix permissions
    1.43 -	find $fs -type d -exec chmod 755 {} \;
    1.44 -	find $fs -type f -exec chmod 644 {} \;
    1.45 -	for file in $(find $fs -type f); do
    1.46 +	find $install -type d -exec chmod 755 {} \;
    1.47 +	find $install -type f -exec chmod 644 {} \;
    1.48 +	for file in $(find $install -type f); do
    1.49  		[ $(head -n1 $file | grep '#!/bin/bash') ] && chmod 755 $file
    1.50  	done
    1.51 -	chown -R root.root $fs	# was pankso.100 ... why ?
    1.52 +	chown -R root.root $install
    1.53  }
    1.54 +
    1.55 +genpkg_rules() {
    1.56 +	copy @std
    1.57 +	DEPENDS="bash findutils imagemagick sed zenity-gtk2"
    1.58 +}