wok-next view pysolfc-cardsets/receipt @ rev 21469

updated tinc (1.0.25 -> 1.0.36)
author Hans-G?nter Theisgen
date Wed May 13 07:41:00 2020 +0100 (2020-05-13)
parents d457c4e37c1b
children
line source
1 # SliTaz package receipt v2.
3 PACKAGE="pysolfc-cardsets"
4 VERSION="2.0"
5 CATEGORY="games"
6 SHORT_DESC="A collection of cardsets adapted for use with PySolFC"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL3"
9 WEB_SITE="https://sourceforge.net/projects/pysolfc/"
10 HOST_ARCH="any"
12 TARBALL="PySolFC-Cardsets-$VERSION.tar.bz2"
13 WGET_URL="$SF_MIRROR/pysolfc/$TARBALL"
15 BUILD_DEPENDS="gif2apng"
16 SPLIT="$PACKAGE-extra"
18 COOKOPTS="!strip" # no executables to strip, loss of time to find it
20 compile_rules() {
21 mkdir -p $install/usr/share/PySolFC
22 cp -r * $install/usr/share/PySolFC
24 # Remove all the garbage
25 find $install -type d -name '.thumbnails' -exec rm -r '{}' \; 2>/dev/null
26 find $install -type d -name '.xvpics' -exec rm -r '{}' \; 2>/dev/null
27 find $install -type f -name '*.xcf' -delete
28 rm $install/usr/share/PySolFC/cardset-chitrashala-dashavatara/l
29 rm -r $install/usr/share/PySolFC/cardset-konqi-modern/png/
30 rm -r $install/usr/share/PySolFC/cardset-konqi-modern/t/
32 # Fix permissions
33 chmod 644 $install/usr/share/PySolFC/cardset-hannover-court/COPYRIGHT # was 755
34 chmod 644 $install/usr/share/PySolFC/cardset-hannover-hex/COPYRIGHT # was 755
37 # Original (mostly in gif, optimized though):
38 #-------------------------------------------------------------------------------
39 # # : Packed : Compressed : Files : Package name
40 #-------------------------------------------------------------------------------
41 # 1 : 6.2M : 1.5M : 1448 : pysolfc-cardsets-2.0-x86_64.tazpkg
42 # 2 : 73.5M : 25.3M : 14764 : pysolfc-cardsets-extra-2.0-x86_64.tazpkg
43 #===============================================================================
45 # Only cardset-greywyvern in png; convert all the gifs to pngs.
46 # Converting gif to png using `optipng` produces errors (and
47 # no output) on 30 files, so using gif2apng instead.
48 for i in $install/usr/share/PySolFC/*; do
49 cd $i
50 for j in ./*.gif; do
51 gif2apng $j >/dev/null
52 [ -f $j ] && rm $j
53 done
54 sed -i 's|\.gif|.png|g' $i/config.txt
55 done
57 # All the card sets in png:
58 #-------------------------------------------------------------------------------
59 # # : Packed : Compressed : Files : Package name
60 #-------------------------------------------------------------------------------
61 # 1 : 6.0M : 1.3M : 1448 : pysolfc-cardsets-2.0-x86_64.tazpkg
62 # 2 : 59.7M : 21.9M : 14764 : pysolfc-cardsets-extra-2.0-x86_64.tazpkg
63 #===============================================================================
64 }
66 genpkg_rules() {
67 case $PACKAGE in
68 pysolfc-cardsets)
69 copy cardset-2000/ cardset-crystal-mahjongg/ \
70 cardset-dashavatara-ganjifa/ cardset-dondorf/ \
71 cardset-gnome-mahjongg-1/ cardset-hexadeck/ cardset-kintengu/ \
72 cardset-matrix/ cardset-mughal-ganjifa/ cardset-oxymoron/ \
73 cardset-standard/ cardset-tuxedo/ cardset-vienna-2k/
74 DEPENDS=" "
75 ;;
76 pysolfc-cardsets-extra)
77 CAT="games|even more card sets"
78 copy @std @rm
79 DEPENDS=" "
80 ;;
81 esac
82 }