# SliTaz package receipt. PACKAGE="ninvaders" VERSION="0.1.2" CATEGORY="games" TAGS="shooting" SHORT_DESC="Space Invaders clone." MAINTAINER="pankso@slitaz.org" LICENSE="GPL2" WEB_SITE="https://ninvaders.sourceforge.net/" TARBALL="$PACKAGE-$VERSION.tar.gz" WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" WGET_URL="https://github.com/sf-refugees/$PACKAGE/archive/refs/tags/v$VERSION.tar.gz" DEPENDS="ncurses" BUILD_DEPENDS="cmake libtinfo ncurses-dev" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/ninvaders/files/ninvaders/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/ninvaders/||;s|/.*||;q' } # Rules to configure and make the package. compile_rules() { mkdir _build && cd _build && cmake .. \ -D CMAKE_INSTALL_PREFIX=/usr && make && make install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/games mkdir -p $fs/usr/share/pixmaps cp -a $install/usr/bin/ninvaders $fs/usr/games/nInvaders cp -a $stuff/ninvader.png $fs/usr/share/pixmaps }