#Packager: Dimitris Tzemos pkgname=pysolfc pkgver=3.0.0 pkgrel=1dj source=("https://downloads.sourceforge.net/$pkgname/PySolFC-$pkgver.tar.xz" "https://downloads.sourceforge.net/project/pysolfc/PySolFC-Cardsets/minimal/PySolFC-Cardsets--Minimal-2.2.0.tar.xz") docs=("contrib/*.asciidoc" "*.md" "NEWS.*" "COPYING" "docs/README") url="http://pysolfc.sourceforge.net/" slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "pysolfc (solitaire card game suite)" "PySolFC is a colection of more than 1000 solitaire card games. It is" "a fork of the no longer maintained PySol Solitaire. There are games" "that use the 52 card International Pattern deck, games for the 78 card" "Tarock deck, eight and ten suite Ganjifa games, Hanafuda games, Matrix" "games, Mahjongg games, and games for an original hexadecimal-based" "deck. PySolFC features a modern look and feel, multiple cardsets and" "backgrounds, sound, unlimited undo, player statistics, and much more." "PySolFC is distributed under the terms of the GNU GPL." ) build() { cd $startdir/src/PySolFC-$pkgver # do not use 'make install', it has no way to pass --root to setup.py. # "mo" creates the UI translations. "rules" and "all_games_html" make # the docs. setup.py will install the docs & translations if they # exist. make mo make rules make all_games_html python3 setup.py install --root $startdir/pkg # The minimal cardsets are now required, since the source tarball # has none. Extract directly to $PKG instead of extracting and copying. tar xvf $startdir/src/PySolFC-Cardsets--Minimal-2.2.0.tar.xz -C $startdir/pkg/usr/share/PySolFC/ --strip-components=1 }