blob: c4dece893722b865116f143a27485d9655773e85 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# Maintainer: begin-theadventure <begin-thecontact.ncncb at dralias dot com>
pkgname=redshiftqt-git
pkgver=r36.0c9d79b
pkgrel=1
pkgdesc="Frontend for redshift written in Qt (latest commit)"
url="https://github.com/loathingKernel/RedShiftQt"
license=('GPL-3.0-or-later')
arch=('x86_64')
depends=('qt5-base' 'redshift')
makedepends=('git')
conflicts=("redshiftqt")
provides=("redshiftqt")
source=("git+$url.git")
sha256sums=('SKIP')
pkgver() {
cd RedShiftQt
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}
prepare() {
# Create a shortcut
echo -e "[Desktop Entry]\n\
Name=RedShiftQt\n\
Exec=redshiftqt\n\
Icon=redshift\n\
Terminal=false\n\
Type=Application\n\
Categories=Utility;\n\
Keywords=redshift;filter;eyes" > redshiftqt.desktop
}
build() {
cd RedShiftQt
export CARGO_HOME="$srcdir/CARGO_HOME"
qmake redshiftqt/RedShiftQt.pro
make
}
package() {
install -Dm644 redshiftqt.desktop -t "$pkgdir/usr/share/applications"
cd RedShiftQt
install -Dm755 RedShiftQt "$pkgdir/usr/bin/redshiftqt"
}
|