wok-next annotate gtkballs/receipt @ rev 21005

Small updates
author Aleksej Bobylev <al.bobylev@gmail.com>
date Mon Oct 08 11:41:17 2018 +0300 (2018-10-08)
parents 73e86e69e5a1
children f48456621a9d
rev   line source
al@20463 1 # SliTaz package receipt v2.
pankso@291 2
pankso@291 3 PACKAGE="gtkballs"
pankso@291 4 VERSION="3.1.5"
pankso@291 5 CATEGORY="games"
al@20463 6 SHORT_DESC="Clone of DOS Lines"
pankso@291 7 MAINTAINER="pankso@slitaz.org"
pascal@15589 8 LICENSE="GPL2"
al@20463 9 WEB_SITE="http://gtkballs.antex.ru/"
al@20463 10
pankso@291 11 TARBALL="$PACKAGE-$VERSION.tar.gz"
pankso@291 12 WGET_URL="http://gtkballs.antex.ru/dist/$TARBALL"
pankso@291 13
pascal@15589 14 BUILD_DEPENDS="gtk+-dev"
al@20481 15 SPLIT="gtkballs-themes gtkballs"
pascal@15589 16
al@20463 17 compile_rules() {
pascal@20482 18 sed -i 's|^localstatedir =.*|localstatedir = /var/games|' Makefile*
pascal@20486 19 mkdir -p $install/var/games
pankso@291 20 ./configure \
pankso@291 21 --prefix=/usr \
pankso@291 22 --bindir=/usr/games \
pankso@291 23 --localstatedir=/var/games \
pankso@291 24 --mandir=/usr/share/man \
pascal@2516 25 $CONFIGURE_ARGS &&
pascal@2516 26 make &&
al@20481 27 make DESTDIR=$DESTDIR install || return 1
al@20481 28
al@20481 29 cp -a $stuff/cell.xpm $install/usr/share/gtkballs/themes/Default/
al@20481 30 mv $install/usr/share/gtkballs/themes/Default \
al@20481 31 $install/usr/share/gtkballs/themes/Original
al@20481 32 cp -a $install/usr/share/gtkballs/themes/klines \
al@20481 33 $install/usr/share/gtkballs/themes/Default
al@20481 34 rm -rf $install/usr/share/gtkballs/themes/klines
al@20481 35
al@20481 36 mkdir -p $install/usr/share/pixmaps/
al@20481 37 cp -a $install/usr/share/gtkballs/gtkballs_16x16.png \
al@20481 38 $install/usr/share/pixmaps/gtkballs.png
al@20481 39
al@20481 40 chmod 666 $install/var/games/gtkballs-scores
pankso@291 41 }
pankso@291 42
al@20463 43 genpkg_rules() {
al@20463 44 case $PACKAGE in
al@20481 45 gtkballs-themes)
al@20481 46 copy themes/
al@20481 47 CAT="games|game themes"
al@20481 48 ;;
al@20463 49 gtkballs)
al@20481 50 copy @std @rm
al@20463 51 DEPENDS="gtk+ xorg-libXdamage"
al@20463 52 SUGGESTED="gtkballs-themes"
al@20463 53 ;;
al@20463 54 esac
pankso@291 55 }