diff options
-rw-r--r-- | .SRCINFO | 13 | ||||
-rw-r--r-- | PKGBUILD | 52 |
2 files changed, 36 insertions, 29 deletions
@@ -1,12 +1,17 @@ -pkgbase = radeon-profile-git +# Generated by mksrcinfo v8 +# Mon Oct 3 20:14:49 UTC 2016 +pkgbase = radeon-profile pkgdesc = App for display info about radeon card - pkgver = 20150617 + pkgver = 20161003.r0.g4347b27 pkgrel = 1 url = http://github.com/marazmista/radeon-profile arch = i686 arch = x86_64 license = GPL2 - depends = qt4 + makedepends = qt5-tools + depends = qt5-base + depends = libxkbcommon-x11 + depends = libxrandr optdepends = radeon-profile-daemon: system daemon for reading card info optdepends = lm_sensors: to show gpu temperature optdepends = sudo: start with root privilages without password @@ -16,7 +21,7 @@ pkgbase = radeon-profile-git optdepends = xf86-video-ati: radeon open source driver provides = radeon-profile replaces = radeon-profile - source = git://github.com/marazmista/radeon-profile.git + source = git+https://github.com/marazmista/radeon-profile.git sha256sums = SKIP pkgname = radeon-profile-git @@ -1,49 +1,51 @@ # Maintainer: marazmista <marazmista@gmail.com> pkgname=radeon-profile-git -pkgver=20160527 -pkgrel=2 +pkgbase=radeon-profile +pkgver=20161003.r0.g4347b27 +pkgrel=1 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') +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' + '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=('git+https://github.com/marazmista/radeon-profile.git') +source=("git+https://github.com/marazmista/$pkgbase.git") sha256sums=('SKIP') - -build() { -mkdir -p build -cd build -lrelease ../radeon-profile/radeon-profile/radeon-profile.pro -cp ../radeon-profile/radeon-profile/*.qm . +pkgver() { +cd "$srcdir/$pkgbase" +git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build() { +cd "$srcdir/$pkgbase/radeon-profile" -qmake-qt5 "../radeon-profile/radeon-profile/" +lrelease radeon-profile.pro +qmake-qt5 make } - + package() { -cd build -make prefix="${pkgdir}" install +cd "$srcdir/$pkgbase/radeon-profile" -install -Dm644 "$srcdir/build/radeon-profile" "$pkgdir/usr/bin/radeon-profile" -chmod +x "$pkgdir/usr/bin/radeon-profile" +install -Dm755 "radeon-profile" "$pkgdir/usr/bin/radeon-profile" -install -Dm644 "$srcdir/radeon-profile/radeon-profile/extra/radeon-profile.png" "$pkgdir/usr/share/pixmaps/radeon-profile.png" -install -Dm644 "$srcdir/radeon-profile/radeon-profile/extra/radeon-profile.desktop" "$pkgdir/usr/share/applications/radeon-profile.desktop" +install -Dm644 "extra/radeon-profile.png" "$pkgdir/usr/share/pixmaps/radeon-profile.png" +install -Dm644 "extra/radeon-profile.desktop" "$pkgdir/usr/share/applications/radeon-profile.desktop" +cd translations for translation in *.qm do -install -Dm644 "$translation" "$pkgdir/usr/share/radeon-profile/$translation" -done -}
\ No newline at end of file +install -Dm644 $translation "$pkgdir/usr/share/radeon-profile/$translation" +done +} |