# SliTaz package receipt. PACKAGE="p4wn" VERSION="2.01" CATEGORY="games" SHORT_DESC="Chess game in javascript." MAINTAINER="pascal.bellard@slitaz.org" LICENSE="PublicDomain" WEB_SITE="https://sourceforge.net/projects/p4wn/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/p4wn/files/ 2>/dev/null | \ sed '/scope="row/!d;/tar/!d;s|.*/p4wn-||;s|.tar.*||;q' } # Rules to configure and make the package. compile_rules() { cd src sed -i '/background-image/d' *.css sed -i 's|title>.*Chess $fs/usr/share/applications/p4wn.desktop <