summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9e6981b107c2fddd6c34283cc052ecf3dddfa53f (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
# Maintainer: Adam Goldsmith <adam@adamgoldsmith.name>
# Previous Maintainer: Hong Xu <hong at topbug dot net>

pkgname=xfce4-i3-workspaces-plugin-git
pkgrel=1
pkgver=1.4.0.r0.gbaec90d
pkgdesc="A workspace switcher plugin for xfce4-panel which can be used for the i3 window manager"
arch=('i686' 'x86_64')
url="https://github.com/denesb/xfce4-i3-workspaces-plugin"
source=("${pkgname}::git+https://github.com/denesb/xfce4-i3-workspaces-plugin")
md5sums=('SKIP')
license=('GPLv3')
depends=('xfce4-panel' 'i3ipc-glib-git')
makedepends=('git' 'autoconf' 'automake' 'xfce4-dev-tools')
provides=('xfce4-i3-workspaces-plugin')

build() {
  cd "${pkgname}"

  msg "Starting make..."
  ./autogen.sh --prefix=/usr
  make
}

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

package() {
  cd "${pkgname}"
  make DESTDIR="${pkgdir}" install

  msg "Including license..."
  install -v -D -m 644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
}