From ee0ecacdc6a280f905e6b4d3a89d3aff7578df92 Mon Sep 17 00:00:00 2001 From: cr6git Date: Sat, 29 Jul 2017 14:36:22 +0200 Subject: [PATCH] New package: tty-clock --- srcpkgs/tty-clock-git/template | 25 ------------------------- srcpkgs/tty-clock/template | 21 +++++++++++++++++++++ 2 files changed, 21 insertions(+), 25 deletions(-) delete mode 100644 srcpkgs/tty-clock-git/template create mode 100644 srcpkgs/tty-clock/template diff --git a/srcpkgs/tty-clock-git/template b/srcpkgs/tty-clock-git/template deleted file mode 100644 index f51dac2de3d..00000000000 --- a/srcpkgs/tty-clock-git/template +++ /dev/null @@ -1,25 +0,0 @@ -# Template file for 'tty-clock-git' -pkgname=tty-clock-git -version=20130821 -revision=3 -hostmakedepends="git" -makedepends="ncurses-devel" -short_desc="Analog clock in ncurses" -maintainer='Juan RP ' -license="GPL" -homepage="https://github.com/xorg62/tty-clock" - -do_fetch() { - local url="git://github.com/xorg62/tty-clock" - msg_normal "Fetching source from $url ...\n" - git clone ${url} ${pkgname}-${version} -} - -do_build() { - make CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS -lncursesw" -} - -do_install() { - vbin tty-clock - vman tty-clock.1 -} diff --git a/srcpkgs/tty-clock/template b/srcpkgs/tty-clock/template new file mode 100644 index 00000000000..b53908c7dc5 --- /dev/null +++ b/srcpkgs/tty-clock/template @@ -0,0 +1,21 @@ +# Template file for 'tty-clock' +pkgname=tty-clock +version=2.3 +revision=1 +replaces="tty-clock-git>=0" +makedepends="ncurses-devel" +short_desc="Digital clock in ncurses" +maintainer="Juan RP " +license="GPL-3" +homepage="https://github.com/xorg62/tty-clock" +distfiles="https://github.com/xorg62/tty-clock/archive/v${version}.tar.gz" +checksum=343e119858db7d5622a545e15a3bbfde65c107440700b62f9df0926db8f57984 + +do_build() { + make CC="$CC" CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS -lncursesw" +} + +do_install() { + vbin tty-clock + vman tty-clock.1 +}