wok-next annotate kobodeluxe/receipt @ rev 21020
Cleaning is almost finished... I should proceed to upgrades.
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Nov 02 14:15:08 2018 +0200 (2018-11-02) |
parents | 23c3aed67cd9 |
children | 0f2575775b2d |
rev | line source |
---|---|
al@21020 | 1 # SliTaz package receipt v2. |
pascal@1136 | 2 |
pascal@1136 | 3 # TODO : Regularly check if the install script automatically |
pascal@1136 | 4 # installs the pixmap and the .desktop file. Then remove the |
pascal@1136 | 5 # part in genpkg_rules() where it's done manually. |
pascal@1136 | 6 |
pascal@1136 | 7 PACKAGE="kobodeluxe" |
pascal@1136 | 8 VERSION="0.5.1" |
pascal@1136 | 9 CATEGORY="games" |
al@21020 | 10 SHORT_DESC="Third person scrolling 2D shooter game" |
al@21020 | 11 MAINTAINER="devel@slitaz.org" |
pascal@15601 | 12 LICENSE="GPL2" |
al@21020 | 13 WEB_SITE="http://www.olofson.net/kobodl/" |
al@21020 | 14 |
al@21020 | 15 SOURCE="KoboDeluxe" |
pascal@1136 | 16 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pascal@1136 | 17 WGET_URL="http://www.olofson.net/kobodl/download/$TARBALL" |
pascal@15601 | 18 |
al@21020 | 19 BUILD_DEPENDS="libsdl-dev libsdl-image-dev" |
pascal@1136 | 20 |
al@21020 | 21 compile_rules() { |
pascal@4289 | 22 sed -i 's/pipe2/pipe_2/' enemy.cpp enemies.h |
pascal@4289 | 23 sed -i 's/strchr.txt/strchr((char *) txt/' graphics/window.cpp |
al@21020 | 24 |
pascal@1136 | 25 ./configure \ |
pascal@1136 | 26 --prefix=/usr \ |
pascal@1136 | 27 --mandir=/usr/share/man \ |
pascal@1136 | 28 --infodir=/usr/share/info \ |
mallory@1813 | 29 --sharedstatedir=/var/games \ |
pascal@4289 | 30 $CONFIGURE_ARGS && |
pascal@4289 | 31 make && |
al@21020 | 32 make DESTDIR=$install install |
pascal@1136 | 33 } |
pascal@1136 | 34 |
al@21020 | 35 genpkg_rules() { |
pascal@1136 | 36 # manually moving the pixmap and the .desktop |
pascal@15601 | 37 mkdir -p $install/usr/share/pixmaps |
pascal@15601 | 38 mkdir -p $install/usr/share/applications |
erjo@5170 | 39 tar xzf $src/icons.tar.gz -C $src |
pascal@15601 | 40 cp -a $src/icons/Ubuntu/*.xpm $install/usr/share/pixmaps |
pascal@15601 | 41 cp -a $src/icons/Ubuntu/*.desktop $install/usr/share/applications |
pascal@1136 | 42 |
pascal@1136 | 43 mkdir -p $fs/usr |
pascal@15601 | 44 cp -a $install/usr/bin $fs/usr |
pascal@15601 | 45 cp -a $install/usr/share $fs/usr/share |
mallory@1813 | 46 |
mallory@1813 | 47 mkdir -p $fs/var/games/kobo-deluxe/scores |
mallory@1813 | 48 chmod 667 $fs/var/games/kobo-deluxe/scores |
al@21020 | 49 DEPENDS="libsdl libsdl-image gcc-lib-base" |
al@21020 | 50 TAGS="shooting" |
pascal@1136 | 51 } |
mallory@1813 | 52 |
al@21020 | 53 pre_remove() { |
mallory@1813 | 54 rm -rf /var/games/kobo-deluxe/* |
mallory@1813 | 55 } |