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