summaryrefslogtreecommitdiff
path: root/user
diff options
context:
space:
mode:
authorA. Wilcox <awilcox@wilcox-tech.com>2019-02-19 18:12:54 +0000
committerA. Wilcox <awilcox@wilcox-tech.com>2019-02-19 18:12:54 +0000
commitf35e871a9f4467d080e7fb741da585b37db50be3 (patch)
tree19478662c25971679349b4e151bf47971e48f585 /user
parentd3ef40a7cc0140532e5a90ed3f94a7bd9f5caa8b (diff)
parent664a9f6169992240ed8c3f721e4a91fc8ccaa399 (diff)
downloadpackages-f35e871a9f4467d080e7fb741da585b37db50be3.tar.gz
packages-f35e871a9f4467d080e7fb741da585b37db50be3.tar.bz2
packages-f35e871a9f4467d080e7fb741da585b37db50be3.tar.xz
packages-f35e871a9f4467d080e7fb741da585b37db50be3.zip
Merge branch 'redshift' into 'master'
user/redshift: New package See merge request !168
Diffstat (limited to 'user')
-rw-r--r--user/redshift/APKBUILD57
1 files changed, 57 insertions, 0 deletions
diff --git a/user/redshift/APKBUILD b/user/redshift/APKBUILD
new file mode 100644
index 000000000..8e3441950
--- /dev/null
+++ b/user/redshift/APKBUILD
@@ -0,0 +1,57 @@
+# Contributor: Luis Ressel <aranea@aixah.de>
+# Maintainer: Luis Ressel <aranea@aixah.de>
+pkgname=redshift
+pkgver=1.12
+pkgrel=0
+pkgdesc="Adjust the color temperature of your screen according to your surroundings"
+url="http://jonls.dk/redshift/"
+arch="all"
+license="GPL-3.0+"
+options="!check" # No test suite
+depends=""
+makedepends="intltool libdrm-dev libx11-dev libxcb-dev libxxf86vm-dev"
+subpackages="$pkgname-doc $pkgname-gui $pkgname-lang"
+source="https://github.com/jonls/redshift/releases/download/v$pkgver/redshift-$pkgver.tar.xz"
+
+build() {
+ cd "$builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-rpath \
+ --disable-corelocation \
+ --enable-drm \
+ --disable-geoclue2 \
+ --enable-nls \
+ --disable-quartz \
+ --enable-randr \
+ --enable-vidmode \
+ --disable-wingdi
+ make
+}
+
+package() {
+ cd "$builddir"
+ make DESTDIR="$pkgdir" install
+}
+
+doc() {
+ cd "$builddir"
+ install -Dm644 -t "$subpkgdir/usr/share/doc/$pkgname" redshift.conf.sample
+ default_doc
+}
+
+gui() {
+ depends="py3-pygobject"
+
+ install -d "$subpkgdir/usr/bin" "$subpkgdir/usr/lib" "$subpkgdir/usr/share"
+ mv "$pkgdir/usr/bin/redshift-gtk" "$subpkgdir/usr/bin/"
+ mv "$pkgdir/usr/lib/python"* "$subpkgdir/usr/lib/"
+ mv "$pkgdir/usr/share/appdata" "$pkgdir/usr/share/applications" "$pkgdir/usr/share/icons" "$subpkgdir/usr/share/"
+}
+
+sha512sums="225e222e5f2c55be4571094ccaf02a92e162dfc35fd0fe504084e21e358b888a72f9992f9f9edaf1d496eb673af74a0d825ae5cf6ef7f0f1ab51d32419722c32 redshift-1.12.tar.xz"