blob: cef3fa85fdd847625dcd3c7e3d99a30a7a4f32e2 (
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
|
# Maintainer: Mark Wagie <yochanan dot marqos at gmail dot com>
pkgname=gammy-git
pkgver=0.9.42.r18.1c7b3b6
pkgrel=1
pkgdesc="Automatic screen brightness tool."
arch=('x86_64')
url="https://getgammy.com"
license=('GPL3')
depends=('mesa' 'qt5-base')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=('git+https://github.com/Fushko/gammy.git'
"${pkgname%-git}.desktop")
sha256sums=('SKIP'
'32bdd9ae6e2eac460bbcc02c4f6cba6428d557e2c471fc67727d9c6a231f6764')
pkgver() {
cd "$srcdir/${pkgname%-git}"
printf "%s" "$(git describe --long | sed 's/\([^-]*-\)g/r\1/;s/-/./g')"
}
build() {
cd "$srcdir/${pkgname%-git}"
qmake Gammy.pro
make
}
package() {
cd "$srcdir/${pkgname%-git}"
make INSTALL_ROOT="$pkgdir/" install
install -d "$pkgdir/usr/bin"
ln -s /opt/Gammy/bin/Gammy "$pkgdir/usr/bin/gammy"
install -Dm644 "$srcdir/${pkgname%-git}.desktop" \
"$pkgdir/usr/share/applications/${pkgname%-git}.desktop"
}
|