diff options
Diffstat (limited to 'testing/redshift')
-rw-r--r-- | testing/redshift/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/testing/redshift/APKBUILD b/testing/redshift/APKBUILD new file mode 100644 index 0000000000..4718fb88bb --- /dev/null +++ b/testing/redshift/APKBUILD @@ -0,0 +1,50 @@ +# Maintainer: 7heo <7heo@mail.com> +pkgname=redshift +pkgver=1.9 +pkgrel=0 +pkgdesc="Adjusts the color temperature of your screen according to your surroundings." +url="http://jonls.dk/redshift/" +arch="all" +license="GLPv3" +depends="" +depends_dev="libxxf86vm-dev libdrm-dev" +makedepends="$depends_dev" +install= +replaces="" +subpackages="$pkgname-doc" +source="https://github.com/jonls/redshift/releases/download/v$pkgver/redshift-$pkgver.tar.xz + " + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + for i in $source; do + case "$i" in + *.patch) + msg "Applying $i" + patch -p1 -i "$srcdir"/$i || return 1 + ;; + esac + done +} + +build() { + cd "$_builddir" + ./configure \ + --build=$CBUILD \ + --host=$CHOST \ + --prefix=/usr \ + --mandir=/usr/share/man \ + --enable-randr \ + || return 1 + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="9640218cd9ba88f6d10b347b2277c415 redshift-1.9.tar.xz" +sha256sums="dbfe96e29b131e3e684528055b89c742be63b15aff38dd2f237b0ad8b9daba76 redshift-1.9.tar.xz" +sha512sums="16476e68c82ca583e4aa8e18da1e34b944a60f29fa516acfcb220d6c7d94d313a71ef5db049758753ab77e5da603876ed7635c29e64521c611b0179553371ad8 redshift-1.9.tar.xz" |