mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 21:37:15 +02:00
community/redshift: move from testing/
Also improve abuild a bit.
This commit is contained in:
parent
4b40f20ff7
commit
0407c8ea88
@ -2,7 +2,7 @@
|
||||
# Maintainer: 7heo <7heo@mail.com>
|
||||
pkgname=redshift
|
||||
pkgver=1.11
|
||||
pkgrel=0
|
||||
pkgrel=1
|
||||
pkgdesc="Adjusts the color temperature of your screen according to your surroundings"
|
||||
url="http://jonls.dk/redshift/"
|
||||
arch="all"
|
||||
@ -15,21 +15,9 @@ replaces=""
|
||||
subpackages="$pkgname-doc"
|
||||
source="https://github.com/jonls/${pkgname}/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.xz"
|
||||
|
||||
_builddir="$srcdir"/$pkgname-$pkgver
|
||||
prepare() {
|
||||
cd "$_builddir"
|
||||
|
||||
local i=
|
||||
for i in $source; do
|
||||
case "$i" in
|
||||
*.patch)
|
||||
patch -p1 -i "$srcdir"/$i || return 1 ;;
|
||||
esac
|
||||
done
|
||||
}
|
||||
|
||||
builddir="$srcdir"/$pkgname-$pkgver
|
||||
build() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
./configure \
|
||||
--build=$CBUILD \
|
||||
--host=$CHOST \
|
||||
@ -38,22 +26,20 @@ build() {
|
||||
--enable-drm \
|
||||
--enable-randr \
|
||||
--enable-vidmode \
|
||||
--disable-silent-rules \
|
||||
--disable-nls \
|
||||
|| return 1
|
||||
make || return 1
|
||||
}
|
||||
|
||||
package() {
|
||||
cd "$_builddir"
|
||||
cd "$builddir"
|
||||
make DESTDIR="$pkgdir" install || return 1
|
||||
|
||||
mkdir -p "$pkgdir"/usr/share/doc/$pkgname/examples
|
||||
install -m644 redshift.conf.sample \
|
||||
install -Dm644 redshift.conf.sample \
|
||||
"$pkgdir"/usr/share/doc/$pkgname/examples/redshift.conf || return 1
|
||||
|
||||
local f=
|
||||
for f in ABOUT-NLS DESIGN HACKING NEWS README README-colorramp; do
|
||||
install -m644 $f "$pkgdir"/usr/share/doc/$pkgname/$f || return 1
|
||||
done
|
||||
install -m644 ABOUT-NLS DESIGN HACKING NEWS README README-colorramp \
|
||||
"$pkgdir"/usr/share/doc/$pkgname/ || return 1
|
||||
}
|
||||
|
||||
md5sums="a31d768b0348c5202e58612855a9027e redshift-1.11.tar.xz"
|
Loading…
Reference in New Issue
Block a user