From 1c82a3229c24732c55955637edec1cd4489b4fac Mon Sep 17 00:00:00 2001 From: Michael Gehring Date: Mon, 25 Jan 2016 00:22:28 +0100 Subject: [PATCH] New package: pysolfc-2.0 --- srcpkgs/pysolfc/template | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 srcpkgs/pysolfc/template diff --git a/srcpkgs/pysolfc/template b/srcpkgs/pysolfc/template new file mode 100644 index 0000000000..e73fe2cc28 --- /dev/null +++ b/srcpkgs/pysolfc/template @@ -0,0 +1,25 @@ +# Template file for 'pysolfc' +pkgname=pysolfc +version=2.0 +revision=1 +wrksrc="PySolFC-${version}" +build_style=python-module +pycompile_module=pysollib +noarch=yes +hostmakedepends="python" +depends="python python-tkinter" +short_desc="A Python solitaire game collection" +maintainer="Michael Gehring " +license="GPL-3" +homepage="http://pysolfc.sourceforge.net/" +distfiles="${SOURCEFORGE_SITE}/${pkgname}/PySolFC-${version}.tar.bz2" +checksum=dbcb8e7e6d0479c230745a2be91c0c9b9e8524407cd2075f2dae144e5d441b6c + +pre_build() { + sed -i "s|SOUND_MOD = 'auto'|SOUND_MOD = 'none'|g" pysollib/settings.py +} + +post_install() { + mv ${DESTDIR}/usr/bin/pysol{.py,} + sed -i "s|pysol.py|pysol|g" ${DESTDIR}/usr/share/applications/pysol.desktop +}