wok-6.x annotate gnubg/receipt @ rev 24951
nagios-plugins: removed patch
author | Hans-G?nter Theisgen |
---|---|
date | Sat Apr 23 10:41:57 2022 +0100 (2022-04-23) |
parents | c0036f843071 |
children |
rev | line source |
---|---|
pascal@18909 | 1 # SliTaz package receipt. |
pascal@18909 | 2 |
pascal@18909 | 3 PACKAGE="gnubg" |
Hans-G?nter@22862 | 4 VERSION="1.06.002" |
pascal@18909 | 5 CATEGORY="games" |
pascal@18909 | 6 SHORT_DESC="GNU Backgammon game." |
pascal@18909 | 7 MAINTAINER="pascal.bellard@slitaz.org" |
pascal@18909 | 8 LICENSE="GPL" |
Hans-G?nter@22862 | 9 WEB_SITE="https://www.gnu.org/software/gnubg/" |
pascal@18909 | 10 |
Hans-G?nter@22862 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pascal@24415 | 12 WGET_URL="http://ftp.gnu.org/gnu/$PACKAGE/$PACKAGE-release-$VERSION-sources.tar.gz" |
Hans-G?nter@22862 | 13 |
Hans-G?nter@22862 | 14 DEPENDS="gmp gtk+ libcanberra libltdl libvorbis ncurses python" |
Hans-G?nter@22862 | 15 BUILD_DEPENDS="autoconf automake bison cairo-dev flex freetype-dev |
Hans-G?nter@22862 | 16 glib-dev gmp-dev gtk+-dev gtkglext-dev libcanberra-dev libpng-dev |
Hans-G?nter@22862 | 17 libtool pkg-config python-dev readline-dev sqlite-dev" |
pascal@18909 | 18 |
pascal@24415 | 19 # What is the latest version available today? |
pascal@24415 | 20 current_version() |
pascal@24415 | 21 { |
pascal@24415 | 22 wget -O - ${WGET_URL%/*} 2>/dev/null | \ |
pascal@24415 | 23 sed "/$PACKAGE-/!d;/tar/!d;s|.*release-||;s|-source.*||" | sort -Vr | sed q |
pascal@24415 | 24 } |
pascal@24415 | 25 |
pascal@18909 | 26 # Rules to configure and make the package. |
pascal@18909 | 27 compile_rules() |
pascal@18909 | 28 { |
pascal@19755 | 29 export LDFLAGS="$LDFLAGS -ltinfo" |
Hans-G?nter@22862 | 30 |
Hans-G?nter@22862 | 31 ./configure \ |
Hans-G?nter@22862 | 32 --prefix=/usr \ |
Hans-G?nter@22862 | 33 --sysconfdir=/etc \ |
Hans-G?nter@22862 | 34 --mandir=/usr/share/man \ |
Hans-G?nter@22862 | 35 --disable-cputest \ |
pascal@18909 | 36 $CONFIGURE_ARGS && |
pascal@18909 | 37 make && |
pascal@18909 | 38 make DESTDIR=$DESTDIR install |
pascal@18909 | 39 } |
pascal@18909 | 40 |
pascal@18909 | 41 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@18909 | 42 genpkg_rules() |
pascal@18909 | 43 { |
pascal@18909 | 44 mkdir -p $fs/usr/share/applications |
Hans-G?nter@22862 | 45 |
Hans-G?nter@22862 | 46 cp -a $install/* $fs |
Hans-G?nter@22862 | 47 cp -a $stuff/gnubg.desktop $fs/usr/share/applications |
pascal@18909 | 48 } |