summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 037e40e207170ef62f4255e97ae9d2e407cc4a04 (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.2
pkgrel=3
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=('f3f3cfc0aac836efcfd2106a1c6f939b')