wok annotate avatar-factory/receipt @ rev 25076

Up marlin (886)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 14 08:17:07 2022 +0000 (2022-06-14)
parents 2a5cc8208d36
children
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
pascal@24373 16 # What is the latest version available today?
pascal@24373 17 current_version()
pascal@24373 18 {
pascal@24373 19 wget -O - https://launchpad.net/avatar-factory/+download 2>/dev/null | \
pascal@24373 20 sed "/latest/d;/$PACKAGE-/!d;/bz2/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24373 21 }
pascal@24373 22
al@14068 23 # Rules to gen a SliTaz package suitable for Tazpkg.
al@14068 24 genpkg_rules()
al@14068 25 {
al@14068 26 mkdir -p $fs/usr/bin $fs/usr/share/applications
al@14068 27 sed -i 's|/usr/local|/usr|g' $src/avatar-factory
al@14068 28 cp -a $src/avatar-factory $fs/usr/bin
al@14068 29 cp -a $src/Avatar-Factory $fs/usr/share/avatar-factory
al@14068 30 sed -i 's|/usr/local|/usr|' $src/avatar-factory.desktop
al@14068 31 cp -a $src/avatar-factory.desktop $fs/usr/share/applications
al@14068 32
al@14068 33 # fix permissions
al@14068 34 find $fs -type d -exec chmod 755 {} \;
al@14068 35 find $fs -type f -exec chmod 644 {} \;
al@14068 36 for file in $(find $fs -type f); do
al@14068 37 [ $(head -n1 $file | grep '#!/bin/bash') ] && chmod 755 $file
al@14068 38 done
pascal@14070 39 chown -R root.root $fs # was pankso.100 ... why ?
al@14068 40 }