hasufell-repository/packages/games-board/pysolfc/pysolfc-2.4.0.exheres-0

49 lines
1.1 KiB
Bash
Raw Permalink Normal View History

2018-09-16 06:18:31 +00:00
# Copyright 2016-2018 Julian Ospald <hasufell@posteo.de>
# Distributed under the terms of the GNU General Public License v2
MY_PN=PySolFC
require desktop-utils
require setup-py [ import=distutils multibuild=false blacklist=3 python_opts="[tk]" ]
2018-03-23 17:28:52 +00:00
require sourceforge [ project=pysolfc pnv=${MY_PN}-${PV} suffix=tar.xz ]
SUMMARY="An exciting collection of more than 1000 solitaire card games"
2018-02-02 00:02:48 +00:00
DOWNLOADS+=" mirror://sourceforge/${PN}/${MY_PN}-Cardsets-2.0.tar.bz2"
LICENCES="GPL-3"
SLOT="0"
PLATFORMS="~amd64 ~x86"
MYOPTIONS=""
DEPENDENCIES="
run:
dev-python/Pillow[python_abis:*(-)?]
dev-python/pygame[python_abis:*(-)?]
2018-02-02 00:02:48 +00:00
dev-python/random2[python_abis:*(-)?]
dev-tcl/tktable
"
WORK=${WORKBASE}/${MY_PN}-${PV}
src_prepare() {
2016-02-28 23:05:15 +00:00
setup-py_src_prepare
2016-02-28 23:05:15 +00:00
edo sed -i \
-e "/pysol.desktop/d" \
-e "s:share/icons:share/pixmaps:" \
setup.py
}
src_install() {
setup-py_src_install
2018-09-16 06:18:31 +00:00
insinto /usr/share/${MY_PN}/cardsets
2018-02-02 00:02:48 +00:00
doins -r "${WORKBASE}"/${MY_PN}-Cardsets-2.0/*
2016-02-28 23:05:15 +00:00
doman docs/*.6
install_desktop_entry "Name=PySol Fan Club Edition" \
"Exec=pysol.py" "Icon=pysol02"
}