# HG changeset patch # User Hans-G?nter Theisgen # Date 1558013795 -3600 # Node ID 2ad68c5f19e17865108708a8f1234dd11540ae3e # Parent 81f8a6522bcf7e5e279abaea671180c376b26211 updated tty-clock (0.1 -> 2.3) diff -r 81f8a6522bcf -r 2ad68c5f19e1 tty-clock/receipt --- a/tty-clock/receipt Thu May 16 14:00:19 2019 +0100 +++ b/tty-clock/receipt Thu May 16 14:36:35 2019 +0100 @@ -1,24 +1,26 @@ # SliTaz package receipt. PACKAGE="tty-clock" -VERSION="0.1" +VERSION="2.3" CATEGORY="utilities" +TAGS="clock" SHORT_DESC="Analog ncurses clock." MAINTAINER="paul@slitaz.org" LICENSE="BSD" + WEB_SITE="https://github.com/xorg62/tty-clock" -TARBALL="$PACKAGE-$VERSION.tar.bz2" -WGET_URL="git|git://github.com/xorg62/tty-clock" -TAGS="clock" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WGET_URL="$WEB_SITE/archive/v$VERSION.tar.gz" DEPENDS="ncurses" -BUILD_DEPENDS="ncurses-dev git bzip2" +BUILD_DEPENDS="ncurses-dev" # Rules to configure and make the package. compile_rules() { - cd $src - make + patch --input=$stuff/patches/Makefile-2.3 $src/Makefile + + make PREFIX=/usr } # Rules to gen a SliTaz package suitable for Tazpkg. @@ -27,4 +29,3 @@ mkdir -p $fs/usr/bin cp -a $src/$PACKAGE $fs/usr/bin } - diff -r 81f8a6522bcf -r 2ad68c5f19e1 tty-clock/stuff/patches/Makefile-2.3 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tty-clock/stuff/patches/Makefile-2.3 Thu May 16 14:36:35 2019 +0100 @@ -0,0 +1,21 @@ +--- Makefile.orig 2017-01-15 04:21:24.000000000 +0100 ++++ Makefile 2019-05-16 14:24:02.973039819 +0100 +@@ -9,12 +9,12 @@ PREFIX ?= /usr/local + INSTALLPATH = ${DESTDIR}${PREFIX}/bin + MANPATH = ${DESTDIR}${PREFIX}/share/man/man1 + +-ifeq ($(shell sh -c 'which ncurses5-config>/dev/null 2>/dev/null && echo y'), y) +- CFLAGS += -Wall -g $$(ncurses5-config --cflags) +- LDFLAGS += $$(ncurses5-config --libs) +-else ifeq ($(shell sh -c 'which ncursesw5-config>/dev/null 2>/dev/null && echo y'), y) +- CFLAGS += -Wall -g $$(ncursesw5-config --cflags) +- LDFLAGS += $$(ncursesw5-config --libs) ++ifeq ($(shell sh -c 'which ncurses6-config>/dev/null 2>/dev/null && echo y'), y) ++ CFLAGS += -Wall -g $$(ncurses6-config --cflags) ++ LDFLAGS += $$(ncurses6-config --libs) ++else ifeq ($(shell sh -c 'which ncursesw6-config>/dev/null 2>/dev/null && echo y'), y) ++ CFLAGS += -Wall -g $$(ncursesw6-config --cflags) ++ LDFLAGS += $$(ncursesw6-config --libs) + else + CFLAGS += -Wall -g $$(pkg-config --cflags ncurses) + LDFLAGS += $$(pkg-config --libs ncurses)