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

dbus-python -> python-dbus
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Aug 22 09:09:15 2018 +0300 (2018-08-22)
parents
children d5aab818505e
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="http://sourceforge.net/projects/pysolfc"
11 TARBALL="PySolFC-Cardsets-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/pysolfc/$TARBALL"
14 BUILD_DEPENDS="gif2apng"
15 SPLIT="pysolfc-cardsets-extra"
17 COOKOPTS="!strip" # no executables to strip, loss of time to find it
19 compile_rules() {
20 mkdir -p $install/usr/share/PySolFC
21 cp -r * $install/usr/share/PySolFC
23 # Remove all the garbage
24 find $install -type d -name '.thumbnails' -exec rm -r '{}' \; 2>/dev/null
25 find $install -type d -name '.xvpics' -exec rm -r '{}' \; 2>/dev/null
26 find $install -type f -name '*.xcf' -delete
27 rm $install/usr/share/PySolFC/cardset-chitrashala-dashavatara/l
28 rm -r $install/usr/share/PySolFC/cardset-konqi-modern/png/
29 rm -r $install/usr/share/PySolFC/cardset-konqi-modern/t/
31 # Fix permissions
32 chmod 644 $install/usr/share/PySolFC/cardset-hannover-court/COPYRIGHT # was 755
33 chmod 644 $install/usr/share/PySolFC/cardset-hannover-hex/COPYRIGHT # was 755
36 # Original (mostly in gif, optimized though):
37 #-------------------------------------------------------------------------------
38 # # : Packed : Compressed : Files : Package name
39 #-------------------------------------------------------------------------------
40 # 1 : 6.2M : 1.5M : 1448 : pysolfc-cardsets-2.0-x86_64.tazpkg
41 # 2 : 73.5M : 25.3M : 14764 : pysolfc-cardsets-extra-2.0-x86_64.tazpkg
42 #===============================================================================
44 # Only cardset-greywyvern in png; convert all the gifs to pngs.
45 # Converting gif to png using `optipng` produces errors (and
46 # no output) on 30 files, so using gif2apng instead.
47 for i in $install/usr/share/PySolFC/*; do
48 cd $i
49 for j in ./*.gif; do
50 gif2apng $j >/dev/null
51 [ -f $j ] && rm $j
52 done
53 sed -i 's|\.gif|.png|g' $i/config.txt
54 done
56 # All the card sets in png:
57 #-------------------------------------------------------------------------------
58 # # : Packed : Compressed : Files : Package name
59 #-------------------------------------------------------------------------------
60 # 1 : 6.0M : 1.3M : 1448 : pysolfc-cardsets-2.0-x86_64.tazpkg
61 # 2 : 59.7M : 21.9M : 14764 : pysolfc-cardsets-extra-2.0-x86_64.tazpkg
62 #===============================================================================
63 }
65 genpkg_rules() {
66 case $PACKAGE in
67 pysolfc-cardsets)
68 copy cardset-2000/ cardset-crystal-mahjongg/ \
69 cardset-dashavatara-ganjifa/ cardset-dondorf/ \
70 cardset-gnome-mahjongg-1/ cardset-hexadeck/ cardset-kintengu/ \
71 cardset-matrix/ cardset-mughal-ganjifa/ cardset-oxymoron/ \
72 cardset-standard/ cardset-tuxedo/ cardset-vienna-2k/
73 DEPENDS=" "
74 ;;
75 pysolfc-cardsets-extra)
76 CAT="games|even more card sets"
77 copy @std @rm
78 DEPENDS=" "
79 ;;
80 esac
81 }