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

_pkgname=xfce4-dockbarx-plugin
pkgname=${_pkgname}-git
epoch=1
_pkgver=0.6
pkgver=0.7.1+3+gc2cb169
pkgrel=1
pkgdesc="Embed DockbarX in the xfce4-panel (latest git commit)"
arch=('i686' 'x86_64' 'armv7h' 'aarch64')
#url="https://github.com/m7s/xfce4-dockbarx-plugin"
url="https://github.com/xuzhen/xfce4-dockbarx-plugin"
license=('X11')
depends=('dockbarx>=1.0beta' 'xfce4-panel')
makedepends=('cmake' 'git')
provides=("${_pkgname}=${pkgver}")
_branch='pygi-python3'
source=("${_pkgname}::git+${url}#branch=${_branch}")
sha256sums=('SKIP')

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

prepare() {
  cd "${srcdir}/${_pkgname}"
  [ -d build ] && rm -fr build
  mkdir build
}

build() {
  cd "${srcdir}/${_pkgname}"/build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make  
}

package() {
  cd "${srcdir}/${_pkgname}"/build
  make DESTDIR="${pkgdir}" install
}