wok-current annotate opentyrian-classic/receipt @ rev 8112
Made libsmpeg use real tar instead of busybox tar. Change compression to .tar.lzma so it will work with tazwok-experimental.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 23 15:39:38 2011 +0000 (2011-01-23) |
parents | c2b3198d2d91 |
children |
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" |
gokhlayeh@6958 | 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 # Rules to configure and make the package. |
mallory@2383 | 15 compile_rules() |
mallory@2383 | 16 { |
pascal@5554 | 17 TARBALL=$SOURCES_REPOSITORY/$PACKAGE.tar.gz |
pascal@5554 | 18 if [ -f $TARBALL ]; then |
pascal@5554 | 19 tar xzf $TARBALL |
pascal@5554 | 20 else |
pascal@5554 | 21 hg clone https://opentyrian.googlecode.com/hg/ opentyrian |
pascal@5554 | 22 tar czf $TARBALL opentyrian |
pascal@5557 | 23 fi |
paul@4288 | 24 cd $SOURCE |
paul@4288 | 25 make release |
pascal@5554 | 26 [ -f $SOURCES_REPOSITORY/tyrian21.zip ] || |
pascal@5554 | 27 wget http://camanis.net/tyrian/tyrian21.zip -P $SOURCES_REPOSITORY |
pascal@5554 | 28 unzip $SOURCES_REPOSITORY/tyrian21.zip |
mallory@2383 | 29 } |
mallory@2383 | 30 |
mallory@2383 | 31 # Rules to gen a SliTaz package suitable for Tazpkg. |
mallory@2383 | 32 genpkg_rules() |
mallory@2383 | 33 { |
mallory@2383 | 34 mkdir -p $fs/usr/bin |
mallory@2383 | 35 mkdir -p $fs/usr/share/applications |
mallory@2383 | 36 mkdir -p $fs/usr/share/pixmaps |
mallory@2383 | 37 mkdir -p $fs/usr/share/opentyrian |
paul@4288 | 38 cp $SOURCE/tyrian $fs/usr/share/opentyrian |
paul@4288 | 39 cp $SOURCE/opentyrian.desktop $fs/usr/share/applications |
paul@4288 | 40 cp $SOURCE/tyrian.xpm $fs/usr/share/pixmaps |
paul@4288 | 41 cp $SOURCE/tyrian21/* $fs/usr/share/opentyrian |
mallory@2383 | 42 rm -rf $fs/usr/share/opentyrian/*exe |
mallory@2383 | 43 rm -rf $fs/usr/share/opentyrian/*doc |
mallory@2383 | 44 cat > $fs/usr/bin/tyrian <<EOF |
mallory@2383 | 45 #!/bin/sh |
mallory@2383 | 46 here=$(pwd) |
mallory@2383 | 47 cd /usr/share/opentyrian |
mallory@2383 | 48 ./tyrian |
mallory@2383 | 49 cd $here |
mallory@2383 | 50 EOF |
mallory@2383 | 51 chmod +x $fs/usr/bin/tyrian |
mallory@2383 | 52 } |
mallory@2383 | 53 |