wok-next annotate syasokoban/receipt @ rev 21129

Up tk (8.6.9.1), python, talloc (2.1.15)
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Jan 18 15:42:45 2019 +0200 (2019-01-18)
parents 7506b35e1c6f
children
rev   line source
al@20475 1 # SliTaz package receipt v2.
pascal@4071 2
pascal@4071 3 PACKAGE="syasokoban"
pascal@4071 4 VERSION="2.0.1"
pascal@4071 5 CATEGORY="games"
al@20475 6 SHORT_DESC="Sokoban clone"
pascal@4071 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15581 8 LICENSE="GPL2 BSD"
al@20909 9 WEB_SITE="https://grayskygames.com/sokoban.html"
al@20475 10
pascal@4071 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@4071 12 WGET_URL="http://grayskygames.com/sokoban/$TARBALL"
pascal@15581 13
al@21087 14 BUILD_DEPENDS="sdl-dev"
pascal@4071 15
al@20475 16 compile_rules() {
pascal@20137 17 sed -i 's|<stdlib.h>|&\n#include <unistd.h>|' src/Main.cpp
al@20475 18 make || return 1
al@20475 19
al@20475 20 mkdir -p $install/usr/share/syasokoban/
al@20475 21 cp -r $src/syasokoban $src/data $install/usr/share/syasokoban/
al@20475 22
al@20475 23 install -Dm644 $stuff/sokoban.desktop $install/usr/share/applications/sokoban.desktop
al@20475 24 install -Dm755 $stuff/syasokoban $install/usr/bin/syasokoban
pascal@4071 25 }
pascal@4071 26
al@20475 27 genpkg_rules() {
al@20475 28 copy @std
al@21087 29 DEPENDS="sdl gcc-lib-base glibc-base"
pascal@4071 30 }