blob: 9dfafe2c866a1fb06328be0947bc4963b0df3138 (
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
|
# Maintainer: Okxa <dev at okxa dot fi>
pkgname=qddcswitch
pkgver=1.1.0.1
pkgrel=2
pkgdesc="A Simple Qt frontend for switching display inputs with ddcutil."
arch=('x86_64')
url="https://codeberg.org/Okxa/qddcswitch"
license=('GPL3')
depends=('qt5-base' 'ddcutil')
makedepends=('qt5-tools')
source=("https://codeberg.org/Okxa/qddcswitch/archive/$pkgname-$pkgver.tar.gz")
build() {
cd "$pkgname"
rm -rf build
mkdir build
cd build
qmake 'DEFINES+="APP_DATA_FOLDER=\"\\\"/usr/share\\\"\""' ../qddcswitch.pro
make
}
package() {
cd "$pkgname/build"
install -Dm755 bin/$pkgname "$pkgdir/usr/bin/$pkgname"
install -Dm644 ../res/qddcswitch-icon.svg "$pkgdir/usr/share/pixmaps/$pkgname.svg"
install -Dm644 ../res/qddcswitch-icon.png "$pkgdir/usr/share/pixmaps/$pkgname.png"
desktop-file-install -m 644 --dir "$pkgdir/usr/share/applications/" "../packaging/$pkgname.desktop"
# install translations (.qm)
install -dm755 bin/locale "$pkgdir/usr/share/$pkgname/locale"
install -Dm644 bin/locale/* "$pkgdir/usr/share/$pkgname/locale/"
}
md5sums=('bd407467f829b7529eb059d316eac6cf')
|