summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 764dffa8381cd6d7a1727456fa36dfcff12c6194 (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
# Contributor: twa022 <twa022 at gmail dot com>

_pkgname=dockbarx-lxqt-plugin
pkgname=${_pkgname}-git
pkgver=0.9+1+g3838fbb
pkgrel=1
pkgdesc="DockBarX LXQT applet"
arch=('x86_64' 'i686' 'aarch64' 'armv7h')
url="https://github.com/xuzhen/dockbarx-lxqt-plugin"
license=('GPL3')
depends=('dockbarx' 'lxqt-panel' 'qt5-x11extras')
makedepends=('cmake' 'git')
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
source=("${_pkgname}::git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${_pkgname}"
  git describe --long --tags | sed 's:^v::;s:-:+:g'
}

build() {
  cd "${_pkgname}"
  mkdir build
  cd build
  cmake .. -DCMAKE_INSTALL_PREFIX=/usr
  make
}
package() {
  cd "${_pkgname}"/build
  make DESTDIR="${pkgdir}" install
}