wok-6.x view pcsxr-svn/receipt @ rev 8120
linux: make sure the real tar is installed.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Sun Jan 23 21:51:05 2011 +0000 (2011-01-23) |
parents | f1ecfb5a8252 |
children | cd04ff131018 |
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 tar"
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 [ -L /bin/tar ] && tazpkg get-install tar --forced
19 if [ -f $TARBALL ]; then
20 tar -x -f $TARBALL
21 else
22 echo "Cloning revision $VERSION from subversion repository..."
23 echo "t" | svn co https://pcsxr.svn.codeplex.com/svn/pcsxr -r $VERSION $PACKAGE-$VERSION
24 tar -c --lzma -f $TARBALL $PACKAGE-$VERSION
25 fi
26 cd $src
27 ./autogen.sh \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 --enable-libcdio \
32 --enable-opengl \
33 $CONFIGURE_ARGS &&
34 make && make DESTDIR=$PWD/_pkg install
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/share
41 cp -a $_pkg/usr/bin $fs/usr
42 cp -a $_pkg/usr/lib $fs/usr
43 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
44 cp -a $_pkg/usr/share/psemu $fs/usr/share
45 cp -a $_pkg/usr/share/pcsx $fs/usr/share
46 find $fs/usr/lib -name "*.la" -delete
47 }