summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: ba1486724a75051f35c2098f1859856adb3f1e88 (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Maintainer: marazmista <marazmista@gmail.com>

pkgname=radeon-profile-git
pkgbase=radeon-profile
pkgver=20160527
pkgrel=3
pkgdesc="App for display info about radeon card"
url="http://github.com/marazmista/radeon-profile"
arch=('i686' 'x86_64')
license=('GPL2')
depends=('qt5-base' 'libxkbcommon-x11' 'libxrandr')
makedepends=('qt5-tools') 
optdepends=('radeon-profile-daemon: system daemon for reading card info'
	'lm_sensors: to show gpu temperature' 
	'sudo: start with root privilages without password' 
	'mesa-demos: for glxinfo' 
	'xorg-xdriinfo: display driver name' 
	'xorg-xrandr: show card connected outputs'
	'xf86-video-ati: radeon open source driver')
provides=('radeon-profile')
replaces=('radeon-profile')
source=("https://github.com/marazmista/radeon-profile/archive/$pkgver.tar.gz")
sha256sums=('SKIP')
 
build() {

tar xvf $pkgver.tar.gz

mkdir -p build
cd build


lrelease ../$pkgbase-$pkgver/radeon-profile/radeon-profile.pro
cp ../$pkgbase-$pkgver/radeon-profile/*.qm .

qmake-qt5 ../$pkgbase-$pkgver/radeon-profile
make
}
 
package() {
cd build
make prefix="${pkgdir}" install

install -Dm644 "$srcdir/build/radeon-profile" "$pkgdir/usr/bin/radeon-profile"
chmod +x "$pkgdir/usr/bin/radeon-profile"

install -Dm644 "$srcdir/$pkgbase-$pkgver/radeon-profile/extra/radeon-profile.png" "$pkgdir/usr/share/pixmaps/radeon-profile.png"
install -Dm644 "$srcdir/$pkgbase-$pkgver/radeon-profile/extra/radeon-profile.desktop" "$pkgdir/usr/share/applications/radeon-profile.desktop"

for translation in *.qm
do
install -Dm644 "$translation" "$pkgdir/usr/share/radeon-profile/$translation"
done 
}