upg redshift minimal

This commit is contained in:
joborun linux 2024-05-16 01:09:01 +03:00
parent 5f792a1d27
commit c0e107ced5
5 changed files with 205 additions and 46 deletions

View File

@ -8,20 +8,20 @@
pkgname=redshift-minimal
_pkgname=redshift
pkgver=1.12
pkgrel=06
pkgdesc="Adjusts the color temperature of your screen according to your surroundings, with minimal dependencies."
pkgver=1.12.r40.g490ba2a
pkgrel=02
pkgdesc="Adjusts the color temperature of your screen according to your surroundings, with minimal dependencies git"
url='http://jonls.dk/redshift/'
makedepends=('intltool' 'gettext' 'git' 'libxcb' 'autoconf' 'automake')
makedepends=('autoconf' 'automake' 'git' 'gettext' 'intltool' 'libxcb')
conflicts=('redshift' 'redshift-minimal-git' 'redshift-git')
provides=('redshift')
#source=("https://github.com/jonls/${_name}/releases/download/v${pkgver}/${_name}-${pkgver}.tar.xz")
source=(redshift::"git+https://github.com/jonls/redshift.git#tag=v$pkgver")
#source=(redshift::"git+https://github.com/jonls/redshift.git#tag=v$pkgver")
source=("git+https://github.com/jonls/$_pkgname.git")
#pkgver() {
# cd $_pkgname
# git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g'
#}
pkgver() {
cd $_pkgname
git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g'
}
prepare() {
cd $_pkgname
@ -47,21 +47,18 @@ build() {
}
package() {
cd $_pkgname
depends=('libxxf86vm')
make DESTDIR="${pkgdir}" install
cd $_pkgname
depends=('libxxf86vm')
make DESTDIR="$pkgdir" install
}
#---- arch license gpg-key & sha256sums ----
arch=(x86_64)
license=(GPL3)
license=('GPL3')
# sha256sums=(d2f8c5300e3ce2a84fe6584d2f1483aa9eadc668ab1951b2c2b8a03ece3a22ba) # redshift-1.12.tar.xz
sha256sums=(SKIP)
sha256sums=('SKIP')
## 0b656a11683e859d419e90016dce556ff65200ea6051f70e9a5896939e3fb6c3 redshift-minimal-1.12-06-x86_64.pkg.tar.lz
## 671f72e8237163e3fe7957af2d6d038ee5b4636ecf67e3896b5282b6d14d4146 redshift-minimal-1.12.r40.g490ba2a-02-x86_64.pkg.tar.lz

View File

@ -1,38 +1,42 @@
# Maintainer: Francesco Minnocci <ascoli dot minnocci at gmail dot com>
# Contributor: Hyacinthe Cartiaux <hyacinthe dot cartiaux at free dot fr>
# Contributor: Raziel23 <venom23 at runbox dot com>
# Contributor: Lukas Fleischer <archlinux at cryptocrack dot de>
# Contributor: Geoffrey Teale <tealeg@stop-squark>
# Contributor: Mark, Huo Mian <markhuomian[at]gmail[dot]com>
# Contributor: Biginoz <biginoz a free dot fr>
# Contributor: schalox <schalox at gmail dot com>
# Maintainer: Ranieri Althoff <ranisalt+aur at gmail dot com>
pkgname=redshift-minimal
_name=redshift
pkgver=1.12
pkgrel=4
pkgdesc="Adjusts the color temperature of your screen according to your surroundings, with minimal dependencies."
pkgname=redshift-minimal-git
pkgver=1.12.r1.g01139a1
pkgrel=1
pkgdesc='Adjusts the color temperature of your screen according to your surroundings, with minimal dependencies (development version)'
arch=('i686' 'x86_64')
url='http://jonls.dk/redshift/'
license=('GPL3')
makedepends=('intltool' 'libxcb')
conflicts=('redshift')
depends=('libxxf86vm')
makedepends=('git' 'intltool')
provides=('redshift')
source=("https://github.com/jonls/${_name}/releases/download/v${pkgver}/${_name}-${pkgver}.tar.xz")
sha256sums=('d2f8c5300e3ce2a84fe6584d2f1483aa9eadc668ab1951b2c2b8a03ece3a22ba')
conflicts=('redshift')
source=(redshift::"git+https://github.com/jonls/redshift.git")
sha256sums=('SKIP')
pkgver() {
cd redshift
git describe --long --tags | sed 's/^v//;s/-/.r/;s/-/./g'
}
build() {
cd "${srcdir}/${_name}-${pkgver}"
cd redshift
./bootstrap
./configure \
--prefix=/usr \
--disable-drm \
--disable-geoclue \
--disable-geoclue2 \
--disable-gui \
--disable-ubuntu \
--disable-vidmode \
--with-systemduserunitdir=/usr/lib/systemd/user \
./configure --disable-gui --disable-vidmode \
--disable-geoclue2 \
--disable-ubuntu --disable-drm \
--prefix=/usr --with-systemduserunitdir=/usr/lib/systemd/user
make
}
package() {
cd "${srcdir}/${_name}-${pkgver}"
make DESTDIR="${pkgdir}" install
rm "${pkgdir}/usr/lib/systemd/user/${_name}-gtk.service"
make -C redshift DESTDIR="$pkgdir" install
rm "${pkgdir}/usr/lib/systemd/user/redshift-gtk.service"
}

View File

@ -1 +1 @@
rm -rf {src,pkg,redshift-*.tar.xz,redshift}
rm -rf {src,pkg,redshift}

158
redshift-minimal/configure vendored Normal file
View File

@ -0,0 +1,158 @@
'configure' configures redshift 1.12 to adapt to many kinds of systems.
Usage: src/redshift/configure [OPTION]... [VAR=VALUE]...
To assign environment variables (e.g., CC, CFLAGS...), specify them as
VAR=VALUE. See below for descriptions of some of the useful variables.
Defaults for the options are specified in brackets.
Configuration:
-h, --help display this help and exit
--help=short display options specific to this package
--help=recursive display the short help of all the included packages
-V, --version display version information and exit
-q, --quiet, --silent do not print 'checking ...' messages
--cache-file=FILE cache test results in FILE [disabled]
-C, --config-cache alias for '--cache-file=config.cache'
-n, --no-create do not create output files
--srcdir=DIR find the sources in DIR [configure dir or '..']
Installation directories:
--prefix=PREFIX install architecture-independent files in PREFIX
[/usr/local]
--exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
[PREFIX]
By default, 'make install' will install all the files in
'/usr/local/bin', '/usr/local/lib' etc. You can specify
an installation prefix other than '/usr/local' using '--prefix',
for instance '--prefix=$HOME'.
For better control, use the options below.
Fine tuning of the installation directories:
--bindir=DIR user executables [EPREFIX/bin]
--sbindir=DIR system admin executables [EPREFIX/sbin]
--libexecdir=DIR program executables [EPREFIX/libexec]
--sysconfdir=DIR read-only single-machine data [PREFIX/etc]
--sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
--localstatedir=DIR modifiable single-machine data [PREFIX/var]
--runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
--libdir=DIR object code libraries [EPREFIX/lib]
--includedir=DIR C header files [PREFIX/include]
--oldincludedir=DIR C header files for non-gcc [/usr/include]
--datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
--datadir=DIR read-only architecture-independent data [DATAROOTDIR]
--infodir=DIR info documentation [DATAROOTDIR/info]
--localedir=DIR locale-dependent data [DATAROOTDIR/locale]
--mandir=DIR man documentation [DATAROOTDIR/man]
--docdir=DIR documentation root [DATAROOTDIR/doc/redshift]
--htmldir=DIR html documentation [DOCDIR]
--dvidir=DIR dvi documentation [DOCDIR]
--pdfdir=DIR pdf documentation [DOCDIR]
--psdir=DIR ps documentation [DOCDIR]
Program names:
--program-prefix=PREFIX prepend PREFIX to installed program names
--program-suffix=SUFFIX append SUFFIX to installed program names
--program-transform-name=PROGRAM run sed PROGRAM on installed program names
System types:
--build=BUILD configure for building on BUILD [guessed]
--host=HOST cross-compile to build programs to run on HOST [BUILD]
Optional Features:
--disable-option-checking ignore unrecognized --enable/--with options
--disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
--enable-FEATURE[=ARG] include FEATURE [ARG=yes]
--enable-silent-rules less verbose build output (undo: "make V=1")
--disable-silent-rules verbose build output (undo: "make V=0")
--enable-dependency-tracking
do not reject slow dependency extractors
--disable-dependency-tracking
speeds up one-time build
--enable-shared[=PKGS] build shared libraries [default=yes]
--enable-static[=PKGS] build static libraries [default=yes]
--enable-fast-install[=PKGS]
optimize for fast installation [default=yes]
--disable-libtool-lock avoid locking (might break parallel builds)
--disable-nls do not use Native Language Support
--disable-rpath do not hardcode runtime library paths
--enable-drm enable DRM method
--enable-randr enable RANDR method
--enable-vidmode enable VidMode method
--enable-quartz enable Quartz (macOS) method
--enable-wingdi enable WinGDI method
--enable-geoclue2 enable Geoclue2 location provider
--enable-corelocation enable CoreLocation (macOS) provider
--enable-gui enable GUI status icon
--enable-ubuntu enable Ubuntu icons
--enable-apparmor enable AppArmor profile
Optional Packages:
--with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
--without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
--with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
both]
--with-aix-soname=aix|svr4|both
shared library versioning (aka "SONAME") variant to
provide on AIX, [default=aix].
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
--with-sysroot[=DIR] Search for dependent libraries within DIR (or the
compiler's sysroot if not specified).
--with-gnu-ld assume the C compiler uses GNU ld default=no
--with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
--without-libiconv-prefix don't search for libiconv in includedir and libdir
--with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
--without-libintl-prefix don't search for libintl in includedir and libdir
--with-python-sys-prefix
use Python's sys.prefix and sys.exec_prefix values
--with-python_prefix override the default PYTHON_PREFIX
--with-python_exec_prefix
override the default PYTHON_EXEC_PREFIX
--with-systemduserunitdir=<dir>
Directory for systemd user unit files
Some influential environment variables:
CC C compiler command
CFLAGS C compiler flags
LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
nonstandard directory <lib dir>
LIBS libraries to pass to the linker, e.g. -l<library>
CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
you have headers in a nonstandard directory <include dir>
LT_SYS_LIBRARY_PATH
User-defined run-time library search path.
OBJC Objective C compiler command
OBJCFLAGS Objective C compiler flags
PKG_CONFIG path to pkg-config utility
PKG_CONFIG_PATH
directories to add to pkg-config's search path
PKG_CONFIG_LIBDIR
path overriding pkg-config's built-in search path
DRM_CFLAGS C compiler flags for DRM, overriding pkg-config
DRM_LIBS linker flags for DRM, overriding pkg-config
X11_CFLAGS C compiler flags for X11, overriding pkg-config
X11_LIBS linker flags for X11, overriding pkg-config
XF86VM_CFLAGS
C compiler flags for XF86VM, overriding pkg-config
XF86VM_LIBS linker flags for XF86VM, overriding pkg-config
XCB_CFLAGS C compiler flags for XCB, overriding pkg-config
XCB_LIBS linker flags for XCB, overriding pkg-config
XCB_RANDR_CFLAGS
C compiler flags for XCB_RANDR, overriding pkg-config
XCB_RANDR_LIBS
linker flags for XCB_RANDR, overriding pkg-config
GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
GLIB_LIBS linker flags for GLIB, overriding pkg-config
GEOCLUE2_CFLAGS
C compiler flags for GEOCLUE2, overriding pkg-config
GEOCLUE2_LIBS
linker flags for GEOCLUE2, overriding pkg-config
PYTHON the Python interpreter
Use these variables to override the choices made by 'configure' or to help
it to find libraries and programs with nonstandard names/locations.
Report bugs to <https://github.com/jonls/redshift/issues>.

View File

@ -1,6 +1,6 @@
git
intltool
gettext
git
autoconf
automake
libxcb