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