blob: a39bc43e98a0a16072bada171a71b54d92fa996e (
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
|
# Maintainer:
# Contributor: Mark Wagie <mark dot wagie at tutanota dot com>
pkgname=hidpi-daemon-git
pkgver=18.04.6.r1.g8f165bb
pkgrel=1
pkgdesc="Daemon to manage HiDPI and LoDPI monitors on X"
arch=('any')
url="https://github.com/pop-os/hidpi-daemon"
license=('GPL2')
depends=('acpid' 'libnotify' 'python-gobject' 'python-pydbus' 'python-xlib')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}" "system76-${pkgname%-git}")
replaces=("system76-$pkgname")
source=('git+https://github.com/pop-os/hidpi-daemon.git')
sha256sums=('SKIP')
pkgver() {
cd "$srcdir/${pkgname%-git}"
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd "$srcdir/${pkgname%-git}"
python setup.py build
}
package() {
cd "$srcdir/${pkgname%-git}"
python setup.py install --root="$pkgdir" --optimize=1 --skip-build
install -Dm755 "${pkgname%-git}" hidpi-notification prime-dialog -t \
"$pkgdir/usr/lib/${pkgname%-git}"
install -Dm644 "${pkgname%-git}.desktop" hidpi-frontend.desktop -t \
"$pkgdir/etc/xdg/autostart"
install -Dm644 com.system76.hidpi.gschema.xml -t "$pkgdir/usr/share/glib-2.0/schemas"
install -d "$pkgdir/var/lib/${pkgname%-git}"
}
|