Package Details: tty-clock-git latest-1

Git Clone URL: https://aur.archlinux.org/tty-clock-git.git (read-only)
Package Base: tty-clock-git
Description: Analog clock in ncurses.
Upstream URL: http://github.com/xorg62/tty-clock
Licenses: BSD
Submitter: WhyNotHugo
Maintainer: WhyNotHugo
Last Packager: WhyNotHugo
Votes: 6
Popularity: 0.000002
First Submitted: 2014-07-25 02:17
Last Updated: 2015-10-22 09:33

Latest Comments

patrick96 commented on 2016-09-25 10:03

This should probably conflict with and provide tty-clock [1] since they build from the same repo.

[1] https://aur.archlinux.org/packages/tty-clock/

SammysHP commented on 2015-09-28 15:06

Add the following prepare function to fix this package:

prepare() {
cd "$srcdir/$_gitname"
sed -i 's/CFLAGS ?=/CFLAGS +=/' Makefile
sed -i 's/LDFLAGS ?=/LDFLAGS +=/' Makefile
sed -i 's/LDFLAGS ?=/LDFLAGS +=/' Makefile
sed -i 's/${SRC} -o/${SRC} -lncurses -o/' Makefile
}

SammysHP commented on 2015-09-28 14:59

Does not compile anymore with ncurses>=6.

Here is another modification that "fixes" the makefile:


diff --git a/PKGBUILD b/PKGBUILD
index 364c3ca..e23c5da 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
# Maintainer: Hugo Osvaldo Barrera <hugo@barrera.io>

pkgname=tty-clock-git
-pkgver=latest
+pkgver=136.516afbf
pkgrel=1
pkgdesc="Analog clock in ncurses."
arch=('i686' 'x86_64' 'armv6h')
@@ -18,6 +18,12 @@ pkgver() {
echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

+prepare() {
+ cd "$srcdir/$_gitname"
+ sed -i 's/CFLAGS ?=/CFLAGS +=/' Makefile
+ sed -i 's/LDFLAGS ?=/LDFLAGS +=/' Makefile
+}
+
build() {
cd "$srcdir/$_gitname"
make
@@ -26,4 +32,4 @@ build() {
package() {
cd "$srcdir/$_gitname"
install -Dm 755 $_gitname "$pkgdir/usr/bin/$_gitname"
-}
+}

SammysHP commented on 2015-07-10 15:45

@mertensj

That was reported upstream five days ago, including a patch.
https://github.com/xorg62/tty-clock/pull/29

mertensj commented on 2015-07-10 15:34

Fails to build on arch.
Reason appears to be in the Makefile CFLAG/LDFLAGS using
VARIABLE ?= value
Setting of a variable only if it doesn't have a value
But in my case CFLAGS/LDFLAGS is already defined in /etc/makepkg.conf

I can make it build with the command:
$ makepkg -s --config /tmp/makepkg.conf
in which I commented out the CFLAGS & LDFLAGS

Why not use in Makefile ?

VARIABLE += value

Appending the supplied value to the existing value (or setting to that value if the variable didn't exist)

SammysHP commented on 2014-09-10 19:18

Please use the https URL instead of the ssh version. Otherwise you are prompted for the passphrase of your private key.

https://github.com/xorg62/tty-clock.git

WhyNotHugo commented on 2014-07-26 10:59

@GeoffreyFrogeye: Done.

GeoffreyFrogeye commented on 2014-07-26 10:55

Tested on armv6h (Raspberry Pi) and it worked like a charm. PKGBUILD should be edited.