summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: af88b348039cf2020d2abd33975a4b9b36868a2f (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
# Maintainer: Zoron <zoronlivingston@gmail.com>

pkgname=zrandr
pkgver=0.3.2
pkgrel=1
pkgdesc="A simple Qt5 front end for xrandr"
arch=('any')
url="https://github.com/fralonra/zrandr"
license=('GPL')
depends=('xorg-xrandr' 'qt5-base' 'qt5-tools')
source=("https://github.com/fralonra/$pkgname/archive/v${pkgver}.tar.gz")
md5sums=('f50ee483123b70c985231abaa48d5909')

build() {
	cd "$srcdir/$pkgname-$pkgver"
	lrelease -verbose $pkgname.pro
	qmake $pkgname.pro
	make
}

check() {
	cd "$srcdir/$pkgname-$pkgver"
	make -k check
}

package() {
  cd "$srcdir/$pkgname-$pkgver"

  install -Dm644 build/$pkgname.desktop -t "$pkgdir/usr/share/applications/"
  install -Dm755 $pkgname -t "$pkgdir/usr/bin/"

  for _i in 16 64 128 256; do
    install -Dm644 build/icons/$pkgname-${_i}x${_i}.png \
    "$pkgdir/usr/share/icons/hicolor/${_i}x${_i}/apps/$pkgname.png"
  done

  for prog in zrandr; do
    install -Dm644 build/icons/${prog}.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/$prog.svg"
  done
}