wok-current annotate opentyrian-classic/receipt @ rev 5554
opentyrian-classic, pidgin-facebookchat, prboom, rgzip: cache extra wget'd files in SOURCES_REPOSITORY
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 13 22:57:11 2010 +0200 (2010-05-13) |
parents | da9a558411a8 |
children | c2b3198d2d91 |
rev | line source |
---|---|
mallory@2383 | 1 # SliTaz package receipt. |
mallory@2383 | 2 |
mallory@2383 | 3 PACKAGE="opentyrian-classic" |
mallory@2383 | 4 VERSION="r886" |
mallory@2383 | 5 CATEGORY="games" |
mallory@2383 | 6 SHORT_DESC="OpenTyrian is a port of the DOS shoot-em-up Tyrian" |
mallory@2383 | 7 MAINTAINER="mallory@skyrock.com" |
pankso@3429 | 8 DEPENDS="libsdl libsdl-mixer libsdl-net" |
paul@4288 | 9 BUILD_DEPENDS="libsdl-dev libsdl-mixer-dev libsdl-net-dev mercurial" |
paul@4288 | 10 SOURCE="opentyrian" |
mallory@2383 | 11 WEB_SITE="http://code.google.com/p/opentyrian/" |
mallory@2383 | 12 WGET_URL="" |
mallory@2383 | 13 |
mallory@2383 | 14 . /etc/tazwok.conf |
mallory@2383 | 15 # Rules to configure and make the package. |
mallory@2383 | 16 compile_rules() |
mallory@2383 | 17 { |
pascal@5554 | 18 TARBALL=$SOURCES_REPOSITORY/$PACKAGE.tar.gz |
pascal@5554 | 19 if [ -f $TARBALL ]; then |
pascal@5554 | 20 tar xzf $TARBALL |
pascal@5554 | 21 else |
pascal@5554 | 22 hg clone https://opentyrian.googlecode.com/hg/ opentyrian |
pascal@5554 | 23 tar czf $TARBALL opentyrian |
pascal@5554 | 24 if |
paul@4288 | 25 cd $SOURCE |
paul@4288 | 26 make release |
pascal@5554 | 27 [ -f $SOURCES_REPOSITORY/tyrian21.zip ] || |
pascal@5554 | 28 wget http://camanis.net/tyrian/tyrian21.zip -P $SOURCES_REPOSITORY |
pascal@5554 | 29 unzip $SOURCES_REPOSITORY/tyrian21.zip |
mallory@2383 | 30 } |
mallory@2383 | 31 |
mallory@2383 | 32 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2383 | 33 genpkg_rules() |
mallory@2383 | 34 { |
mallory@2383 | 35 mkdir -p $fs/usr/bin |
mallory@2383 | 36 mkdir -p $fs/usr/share/applications |
mallory@2383 | 37 mkdir -p $fs/usr/share/pixmaps |
mallory@2383 | 38 mkdir -p $fs/usr/share/opentyrian |
paul@4288 | 39 cp $SOURCE/tyrian $fs/usr/share/opentyrian |
paul@4288 | 40 cp $SOURCE/opentyrian.desktop $fs/usr/share/applications |
paul@4288 | 41 cp $SOURCE/tyrian.xpm $fs/usr/share/pixmaps |
paul@4288 | 42 cp $SOURCE/tyrian21/* $fs/usr/share/opentyrian |
mallory@2383 | 43 rm -rf $fs/usr/share/opentyrian/*exe |
mallory@2383 | 44 rm -rf $fs/usr/share/opentyrian/*doc |
mallory@2383 | 45 cat > $fs/usr/bin/tyrian <<EOF |
mallory@2383 | 46 #!/bin/sh |
mallory@2383 | 47 here=$(pwd) |
mallory@2383 | 48 cd /usr/share/opentyrian |
mallory@2383 | 49 ./tyrian |
mallory@2383 | 50 cd $here |
mallory@2383 | 51 EOF |
mallory@2383 | 52 chmod +x $fs/usr/bin/tyrian |
mallory@2383 | 53 } |
mallory@2383 | 54 |