wok view pcsxr-svn/receipt @ rev 8121

Fixed pcsxr-svn to use lzma-alone instead of lzma wrapper script. Turns out the lzma wrapper script for xz is incompatible with lzma-alone compression. Also lzma-alone compress better.
author Christopher Rogers <slaxemulator@gmail.com>
date Mon Jan 24 00:57:47 2011 +0000 (2011-01-24)
parents 068c73391102
children 0740a7e6c9ad
line source
1 # SliTaz package receipt.
3 PACKAGE="pcsxr-svn"
4 VERSION="62214"
5 CATEGORY="games"
6 SHORT_DESC="A Sony PlayStation emulator based on the PCSX-df Project"
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="libcdio libglade xorg-libXtst xorg-libXv mesa libsdl"
9 BUILD_DEPENDS="glib-dev libcdio libcdio-dev libglade-dev gtk+-dev xorg-libXtst xorg-libXtst-dev xorg-libXv xorg-libXv-dev mesa-dev \
10 zlib-dev libsdl libsdl-dev subversion nasm gettext intltool sed"
11 WEB_SITE="http://pcsxr.codeplex.com/"
13 # Rules to configure and make the package.
14 compile_rules()
15 {
16 [ -d "$PACKAGE-$VERSION" ] && rm -rf $PACKAGE-$VERSION
17 TARBALL=$SOURCES_REPOSITORY/$PACKAGE-$VERSION.tar.lzma
18 if [ -f $TARBALL ]; then
19 lzma-alone d $TARBALL $PACKAGE-$VERSION.tar
20 tar xf $PACKAGE-$VERSION.tar
21 if [ -f $PACKAGE-$VERSION.tar ]; then
22 rm -f $PACKAGE-$VERSION.tar
23 fi
24 else
25 echo "Cloning revision $VERSION from subversion repository..."
26 echo "t" | svn co https://pcsxr.svn.codeplex.com/svn/pcsxr -r $VERSION $PACKAGE-$VERSION
27 tar cf $PACKAGE-$VERSION.tar $PACKAGE-$VERSION
28 lzma-alone e $PACKAGE-$VERSION.tar $TARBALL
29 if [ -f $PACKAGE-$VERSION.tar ]; then
30 rm -f $PACKAGE-$VERSION.tar
31 fi
32 fi
33 cd $src
34 ./autogen.sh \
35 --prefix=/usr \
36 --infodir=/usr/share/info \
37 --mandir=/usr/share/man \
38 --enable-libcdio \
39 --enable-opengl \
40 $CONFIGURE_ARGS &&
41 make && make DESTDIR=$PWD/_pkg install
42 }
44 # Rules to gen a SliTaz package suitable for Tazpkg.
45 genpkg_rules()
46 {
47 mkdir -p $fs/usr/share
48 cp -a $_pkg/usr/bin $fs/usr
49 cp -a $_pkg/usr/lib $fs/usr
50 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
51 cp -a $_pkg/usr/share/psemu $fs/usr/share
52 cp -a $_pkg/usr/share/pcsx $fs/usr/share
53 find $fs/usr/lib -name "*.la" -delete
54 }