wok-current annotate eboard/receipt @ rev 24056
Up zstd (1.5.0)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jun 08 09:29:15 2021 +0000 (2021-06-08) |
parents | f80f3155769e |
children | ac8ca9758df1 |
rev | line source |
---|---|
pascal@4596 | 1 # SliTaz package receipt. |
pascal@4596 | 2 |
pascal@4596 | 3 PACKAGE="eboard" |
Hans-G?nter@22745 | 4 VERSION="1.1.3" |
pascal@4596 | 5 CATEGORY="games" |
Hans-G?nter@22745 | 6 TAGS="chess" |
pascal@4596 | 7 SHORT_DESC="Chess board interface." |
pascal@4596 | 8 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@15000 | 9 LICENSE="GPL2" |
Hans-G?nter@22745 | 10 WEB_SITE="https://github.com/fbergo/eboard/" |
Hans-G?nter@22745 | 11 |
Hans-G?nter@22745 | 12 TARBALL="$PACKAGE-$VERSION.tar.gz" |
Hans-G?nter@22745 | 13 WGET_URL="${WEB_SITE}/archive/v$VERSION.tar.gz" |
Hans-G?nter@22745 | 14 |
pascal@15000 | 15 SUGGESTED="gnuchess" |
pascal@5000 | 16 DEPENDS="gtk+ gcc-lib-base" |
Hans-G?nter@22745 | 17 BUILD_DEPENDS="gstreamer-1.0-dev gtk+-dev perl zlib-dev" |
pascal@4596 | 18 |
pascal@24055 | 19 current_version() |
pascal@24055 | 20 { |
pascal@24055 | 21 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \ |
pascal@24055 | 22 sed '/archive.*tar/!d;s|.*/v\(.*\).tar.*|\1|;q' |
pascal@24055 | 23 } |
pascal@24055 | 24 |
pascal@4596 | 25 # Rules to configure and make the package. |
pascal@4596 | 26 compile_rules() |
pascal@4596 | 27 { |
Hans-G?nter@22745 | 28 sed -i 's/strchr(text/strchr((char *)text/' \ |
Hans-G?nter@22745 | 29 ntext.cc |
Hans-G?nter@22745 | 30 mkdir -p $install/usr/share/eboard |
Hans-G?nter@22745 | 31 |
Hans-G?nter@22745 | 32 ./configure \ |
Hans-G?nter@22745 | 33 --prefix=/usr \ |
Hans-G?nter@22745 | 34 --man-prefix=/usr/share/man \ |
Hans-G?nter@22745 | 35 --extra-libs=dl \ |
pascal@4596 | 36 $CONFIGURE_ARGS && |
pascal@4596 | 37 make && |
pascal@15000 | 38 make DESTDIR=$DESTDIR install |
pascal@4596 | 39 } |
pascal@4596 | 40 |
pascal@4596 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@4596 | 42 genpkg_rules() |
pascal@4596 | 43 { |
samuel_trassare@12050 | 44 mkdir -p $fs/usr/share/pixmaps |
Hans-G?nter@22745 | 45 |
Hans-G?nter@22745 | 46 cp -a $install/usr/share $fs/usr |
Hans-G?nter@22745 | 47 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22745 | 48 cp $src/xpm/r18.xpm $fs/usr/share/pixmaps/eboard.xpm |
pascal@4596 | 49 } |