summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 99e73cbf23296ca7d708c9911dbc3f0d38f53952 (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: Josip Ponjavic <josipponjavic at gmail dot com>

pkgname=hdepanel-git
pkgver=v1.0.5.r0.gbd05f0a
pkgrel=1
pkgdesc="Qt5 based panel based on QtPanel"
arch=('i686' 'x86_64')
url="https://github.com/developing4all/hdepanel"
license=('GPL2')
depends=('libxcomposite' 'qt5-x11extras')
makedepends=('git')
provides=('hdepanel')
conflicts=('hdepanel')
source=("git+${url}.git")
md5sums=('SKIP')

pkgver() {
  cd hdepanel
  git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g'
}

build() {
  cd hdepanel
  qmake-qt5
  make
}

package() {
  cd hdepanel
  install -Dm755 hdepanel "${pkgdir}/usr/bin/hdepanel"
  install -d "${pkgdir}/usr/lib/hde/panel/plugins"
  cp -a libhdepanel* "${pkgdir}/usr/lib"
  cp -a plugins/lib*.so "${pkgdir}/usr/lib/hde/panel/plugins"
}