Package Details: sct 1.0.0-1

Git Clone URL: https://aur.archlinux.org/sct.git (read-only)
Package Base: sct
Description: Set color temperature
Upstream URL: http://www.tedunangst.com/flak/post/sct-set-color-temperature
Keywords: color light redshit screen sleep temperature
Licenses: Public Domain
Submitter: WhyNotHugo
Maintainer: WhyNotHugo
Last Packager: WhyNotHugo
Votes: 10
Popularity: 0.800241
First Submitted: 2015-12-05 18:45
Last Updated: 2018-03-07 23:40

Dependencies (2)

Required by (0)

Sources (1)

Latest Comments

slava.ganzin commented on 2018-04-12 19:33

Hello everyone.

Get "==> ERROR: Unknown download protocol: https", when I try build from aur(without https)

So I change http -> https and it works: -DLAGENTS=("http::/usr/bin/curl -Ok -sSL")<br> +DLAGENTS=("https::/usr/bin/curl -Ok -sSL")

WhyNotHugo commented on 2018-03-07 23:39

Thanks for the hint! Updated!

hiberno commented on 2018-03-06 10:42

The following diff fixes building for me:

diff --git a/PKGBUILD b/PKGBUILD  
index 058e177..44cdc72 100644  
--- a/PKGBUILD  
+++ b/PKGBUILD  
@@ -10,9 +10,9 @@ license=('Public Domain')  
 depends=()  
 makedepends=()  
 source=("http://www.tedunangst.com/flak/files/sct.c")  
-md5sums=('1d110264e8a13f7f9259643c2fa402b4')  
+sha256sums=('0dda697ec3f4129d793f8896743d82be09934883f5aeda05c4a2193d7ab3c305')  
 # Upstream uses an invalid cert. This is okay since we validate md5sum:  
-DLAGENTS=("http::/usr/bin/curl -Ok")  
+DLAGENTS=("http::/usr/bin/curl -Ok -sSL")  

 build() {  
   cd "$srcdir/"  

Actually, to be able to build sct in a chroot (as with aurutils) one would need to add this to the diff:

-makedepends=()
+makedepends=('libx11' 'libxrandr')

Might be cleaner anyway.

WhyNotHugo commented on 2018-02-27 21:17

@GeoffreyFrogeye See the previous comment.

GeoffreyFrogeye commented on 2018-02-27 20:32

@WhyNotHugo Looks like you forgot the 's' in 'https' in the source link in the PKGBUILD :)

WhyNotHugo commented on 2017-12-25 01:58

@theorangeone:

That won't solve the problem. The source has been moved to "https://www.tedunangst.com/flak/files/sct.c", but the TLS certificate for that server is untrusted. I'm not sure how to deal with that in the PKGBUILD.

theorangeone commented on 2017-12-23 15:01

Looks like the upstream file has moved, and is now redirecting. I've had to add -L to curl to install. This should be reflected in PKGBUILD

aiM0a commented on 2017-11-28 00:52

I'm getting a different error, any ideas?

makepkg -fsirc --skipinteg
==> Making package: sct 1.0.0-1 (Mon Nov 27 18:50:56 CST 2017)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
-> Found sct.c
==> WARNING: Skipping all source file integrity checks.
==> Extracting sources...
==> Starting build()...
/usr/lib/gcc/x86_64-pc-linux-gnu/7.2.0/../../../../lib/Scrt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: error: ld returned 1 exit status
==> ERROR: A failure occurred in build().
Aborting...

z2oh commented on 2017-10-08 05:34

For those getting issues related to the validity check, it is because the file host is not serving the file correctly. Perhaps it is related to the invalid cert? Either way, I have a temporary solution: download the file from another location. Since this program is in the public domain, I uploaded to a GitHub gist. You can use this source by editing the PKGBUILD and replace the line

source=("http://www.tedunangst.com/flak/files/sct.c")

with

source=("http://gist.githubusercontent.com/z2oh/63dbca3c92d38d52563723accf6d4994/raw/473f329a06b08e9027a344fbd1ee7b082f65f948/sct.c")

This is some great software; hopefully the owner/maintainer can figure out a better hosting strategy soon!

hiberno commented on 2017-10-07 18:41

Aursync's output:

==> Making package: sct 1.0.0-1 (Sat Oct 7 20:39:58 CEST 2017)
==> Retrieving sources...
-> Found sct.c
==> Validating source files with md5sums...
sct.c ... FAILED
==> ERROR: One or more files did not pass the validity check!
==> ERROR: Could not download sources.

All comments