wok rev 21558

updated tty-clock (0.1 -> 2.3)
author Hans-G?nter Theisgen
date Thu May 16 14:36:35 2019 +0100 (2019-05-16)
parents 81f8a6522bcf
children 17429b2b6b97
files tty-clock/receipt tty-clock/stuff/patches/Makefile-2.3
line diff
     1.1 --- a/tty-clock/receipt	Thu May 16 14:00:19 2019 +0100
     1.2 +++ b/tty-clock/receipt	Thu May 16 14:36:35 2019 +0100
     1.3 @@ -1,24 +1,26 @@
     1.4  # SliTaz package receipt.
     1.5  
     1.6  PACKAGE="tty-clock"
     1.7 -VERSION="0.1"
     1.8 +VERSION="2.3"
     1.9  CATEGORY="utilities"
    1.10 +TAGS="clock"
    1.11  SHORT_DESC="Analog ncurses clock."
    1.12  MAINTAINER="paul@slitaz.org"
    1.13  LICENSE="BSD"
    1.14 +
    1.15  WEB_SITE="https://github.com/xorg62/tty-clock"
    1.16 -TARBALL="$PACKAGE-$VERSION.tar.bz2"
    1.17 -WGET_URL="git|git://github.com/xorg62/tty-clock"
    1.18 -TAGS="clock"
    1.19 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.20 +WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz"
    1.21  
    1.22  DEPENDS="ncurses"
    1.23 -BUILD_DEPENDS="ncurses-dev git bzip2"
    1.24 +BUILD_DEPENDS="ncurses-dev"
    1.25  
    1.26  # Rules to configure and make the package.
    1.27  compile_rules()
    1.28  {
    1.29 -	cd $src
    1.30 -	make
    1.31 +	patch --input=$stuff/patches/Makefile-2.3 $src/Makefile
    1.32 +
    1.33 +	make PREFIX=/usr
    1.34  }
    1.35  
    1.36  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.37 @@ -27,4 +29,3 @@
    1.38  	mkdir -p $fs/usr/bin
    1.39  	cp -a $src/$PACKAGE $fs/usr/bin
    1.40  }
    1.41 -
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/tty-clock/stuff/patches/Makefile-2.3	Thu May 16 14:36:35 2019 +0100
     2.3 @@ -0,0 +1,21 @@
     2.4 +--- Makefile.orig	2017-01-15 04:21:24.000000000 +0100
     2.5 ++++ Makefile	2019-05-16 14:24:02.973039819 +0100
     2.6 +@@ -9,12 +9,12 @@ PREFIX ?= /usr/local
     2.7 + INSTALLPATH = ${DESTDIR}${PREFIX}/bin
     2.8 + MANPATH = ${DESTDIR}${PREFIX}/share/man/man1
     2.9 + 
    2.10 +-ifeq ($(shell sh -c 'which ncurses5-config>/dev/null 2>/dev/null && echo y'), y)
    2.11 +-	CFLAGS += -Wall -g $$(ncurses5-config --cflags)
    2.12 +-	LDFLAGS += $$(ncurses5-config --libs)
    2.13 +-else ifeq ($(shell sh -c 'which ncursesw5-config>/dev/null 2>/dev/null && echo y'), y)
    2.14 +-		CFLAGS += -Wall -g $$(ncursesw5-config --cflags)
    2.15 +-		LDFLAGS += $$(ncursesw5-config --libs)
    2.16 ++ifeq ($(shell sh -c 'which ncurses6-config>/dev/null 2>/dev/null && echo y'), y)
    2.17 ++	CFLAGS += -Wall -g $$(ncurses6-config --cflags)
    2.18 ++	LDFLAGS += $$(ncurses6-config --libs)
    2.19 ++else ifeq ($(shell sh -c 'which ncursesw6-config>/dev/null 2>/dev/null && echo y'), y)
    2.20 ++		CFLAGS += -Wall -g $$(ncursesw6-config --cflags)
    2.21 ++		LDFLAGS += $$(ncursesw6-config --libs)
    2.22 + else
    2.23 + 	CFLAGS += -Wall -g $$(pkg-config --cflags ncurses)
    2.24 + 	LDFLAGS += $$(pkg-config --libs ncurses)