wok-current view avatar-factory/receipt @ rev 25312
updated smartmontools (7.2 -> 7.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Jul 20 17:27:26 2022 +0100 (2022-07-20) |
parents | 2a5cc8208d36 |
children |
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 LICENSE="PublicDomain"
9 WEB_SITE="http://yuzem.blogspot.com/p/avatar-factory.html?m=1"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WGET_URL="https://launchpad.net/$PACKAGE/trunk/$VERSION/+download/$TARBALL"
13 DEPENDS="bash findutils imagemagick sed zenity"
14 BUILD_DEPENDS="wget"
16 # What is the latest version available today?
17 current_version()
18 {
19 wget -O - https://launchpad.net/avatar-factory/+download 2>/dev/null | \
20 sed "/latest/d;/$PACKAGE-/!d;/bz2/!d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
21 }
23 # Rules to gen a SliTaz package suitable for Tazpkg.
24 genpkg_rules()
25 {
26 mkdir -p $fs/usr/bin $fs/usr/share/applications
27 sed -i 's|/usr/local|/usr|g' $src/avatar-factory
28 cp -a $src/avatar-factory $fs/usr/bin
29 cp -a $src/Avatar-Factory $fs/usr/share/avatar-factory
30 sed -i 's|/usr/local|/usr|' $src/avatar-factory.desktop
31 cp -a $src/avatar-factory.desktop $fs/usr/share/applications
33 # fix permissions
34 find $fs -type d -exec chmod 755 {} \;
35 find $fs -type f -exec chmod 644 {} \;
36 for file in $(find $fs -type f); do
37 [ $(head -n1 $file | grep '#!/bin/bash') ] && chmod 755 $file
38 done
39 chown -R root.root $fs # was pankso.100 ... why ?
40 }