wok-next diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/pysolfc-cardsets/receipt Wed Aug 22 09:09:15 2018 +0300 1.3 @@ -0,0 +1,81 @@ 1.4 +# SliTaz package receipt v2. 1.5 + 1.6 +PACKAGE="pysolfc-cardsets" 1.7 +VERSION="2.0" 1.8 +CATEGORY="games" 1.9 +SHORT_DESC="A collection of cardsets adapted for use with PySolFC" 1.10 +MAINTAINER="al.bobylev@gmail.com" 1.11 +LICENSE="GPL3" 1.12 +WEB_SITE="http://sourceforge.net/projects/pysolfc" 1.13 + 1.14 +TARBALL="PySolFC-Cardsets-$VERSION.tar.bz2" 1.15 +WGET_URL="$SF_MIRROR/pysolfc/$TARBALL" 1.16 + 1.17 +BUILD_DEPENDS="gif2apng" 1.18 +SPLIT="pysolfc-cardsets-extra" 1.19 + 1.20 +COOKOPTS="!strip" # no executables to strip, loss of time to find it 1.21 + 1.22 +compile_rules() { 1.23 + mkdir -p $install/usr/share/PySolFC 1.24 + cp -r * $install/usr/share/PySolFC 1.25 + 1.26 + # Remove all the garbage 1.27 + find $install -type d -name '.thumbnails' -exec rm -r '{}' \; 2>/dev/null 1.28 + find $install -type d -name '.xvpics' -exec rm -r '{}' \; 2>/dev/null 1.29 + find $install -type f -name '*.xcf' -delete 1.30 + rm $install/usr/share/PySolFC/cardset-chitrashala-dashavatara/l 1.31 + rm -r $install/usr/share/PySolFC/cardset-konqi-modern/png/ 1.32 + rm -r $install/usr/share/PySolFC/cardset-konqi-modern/t/ 1.33 + 1.34 + # Fix permissions 1.35 + chmod 644 $install/usr/share/PySolFC/cardset-hannover-court/COPYRIGHT # was 755 1.36 + chmod 644 $install/usr/share/PySolFC/cardset-hannover-hex/COPYRIGHT # was 755 1.37 + 1.38 + 1.39 + # Original (mostly in gif, optimized though): 1.40 + #------------------------------------------------------------------------------- 1.41 + # # : Packed : Compressed : Files : Package name 1.42 + #------------------------------------------------------------------------------- 1.43 + # 1 : 6.2M : 1.5M : 1448 : pysolfc-cardsets-2.0-x86_64.tazpkg 1.44 + # 2 : 73.5M : 25.3M : 14764 : pysolfc-cardsets-extra-2.0-x86_64.tazpkg 1.45 + #=============================================================================== 1.46 + 1.47 + # Only cardset-greywyvern in png; convert all the gifs to pngs. 1.48 + # Converting gif to png using `optipng` produces errors (and 1.49 + # no output) on 30 files, so using gif2apng instead. 1.50 + for i in $install/usr/share/PySolFC/*; do 1.51 + cd $i 1.52 + for j in ./*.gif; do 1.53 + gif2apng $j >/dev/null 1.54 + [ -f $j ] && rm $j 1.55 + done 1.56 + sed -i 's|\.gif|.png|g' $i/config.txt 1.57 + done 1.58 + 1.59 + # All the card sets in png: 1.60 + #------------------------------------------------------------------------------- 1.61 + # # : Packed : Compressed : Files : Package name 1.62 + #------------------------------------------------------------------------------- 1.63 + # 1 : 6.0M : 1.3M : 1448 : pysolfc-cardsets-2.0-x86_64.tazpkg 1.64 + # 2 : 59.7M : 21.9M : 14764 : pysolfc-cardsets-extra-2.0-x86_64.tazpkg 1.65 + #=============================================================================== 1.66 +} 1.67 + 1.68 +genpkg_rules() { 1.69 + case $PACKAGE in 1.70 + pysolfc-cardsets) 1.71 + copy cardset-2000/ cardset-crystal-mahjongg/ \ 1.72 + cardset-dashavatara-ganjifa/ cardset-dondorf/ \ 1.73 + cardset-gnome-mahjongg-1/ cardset-hexadeck/ cardset-kintengu/ \ 1.74 + cardset-matrix/ cardset-mughal-ganjifa/ cardset-oxymoron/ \ 1.75 + cardset-standard/ cardset-tuxedo/ cardset-vienna-2k/ 1.76 + DEPENDS=" " 1.77 + ;; 1.78 + pysolfc-cardsets-extra) 1.79 + CAT="games|even more card sets" 1.80 + copy @std @rm 1.81 + DEPENDS=" " 1.82 + ;; 1.83 + esac 1.84 +}