wok-current annotate sudoku-savant/receipt @ rev 15603

Use install instead of _pkg
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Dec 06 10:39:07 2013 +0000 (2013-12-06)
parents c4f226b02549
children 6532d445e8a8
rev   line source
pankso@707 1 # SliTaz package receipt.
pankso@707 2
pankso@707 3 PACKAGE="sudoku-savant"
pankso@5621 4 VERSION="1.3"
pankso@707 5 CATEGORY="games"
pankso@707 6 SHORT_DESC="Sudoku games/generator using GTK."
pascal@15581 7 MAINTAINER="pankso@slitaz.org"
pascal@15581 8 LICENSE="GPL3"
pascal@15581 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@15581 10 WEB_SITE="http://sourceforge.net/projects/sudoku-savant/"
pascal@15581 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@15581 12
pankso@5621 13 DEPENDS="expat gtk+ xorg-libX11 xorg-libXau xorg-libXcomposite \
pankso@5621 14 xorg-libXcursor xorg-libXdmcp xorg-libXext xorg-libXfixes xorg-libXrandr \
pankso@5621 15 xorg-libXrender xorg-libXinerama xorg-libXdamage gcc-lib-base"
pankso@5621 16 BUILD_DEPENDS="gtk+-dev libpthread-stubs"
pankso@707 17
pankso@707 18 # Rules to configure and make the package.
pankso@707 19 compile_rules()
pankso@707 20 {
pankso@707 21 cd $src
pankso@707 22 ./configure \
pankso@707 23 --prefix=/usr \
pankso@5621 24 --bindir=/usr/games \
pascal@2440 25 --mandir=/usr/share/man \
pascal@2440 26 $CONFIGURE_ARGS &&
pascal@2440 27 make &&
pascal@15581 28 make DESTDIR=$DESTDIR install
pankso@5621 29 # desktop-file-install workaround
pascal@15603 30 [ -x $DESTDIR/usr/games/sudoku-savant ] && \
pankso@5621 31 echo "Continue: desktop-file-install dont support busybox install..."
pankso@707 32 }
pankso@707 33
pankso@707 34 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@707 35 genpkg_rules()
pankso@707 36 {
pankso@5621 37 mkdir -p $fs/usr/share/pixmaps $fs/usr/share/applications
pascal@15581 38 cp -a $install/usr/games $fs/usr
pankso@5621 39 cp $src/$PACKAGE.png $fs/usr/share/pixmaps
pankso@5621 40 cp $src/$PACKAGE.desktop $fs/usr/share/applications
pankso@707 41 }