summaryrefslogtreecommitdiff
path: root/extra/xfce4-xkb-plugin/PKGBUILD
blob: 2cabd66dfb812fd631e2fc1c6ccf0cd3cc78ab1e (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
43
# $Id: PKGBUILD 107269 2011-01-22 22:04:45Z andyrtr $
# Maintainer: AndyRTR <andyrtr@archlinux.org>
# Contributor: Tobias Kieslich <tobias (at) archlinux.org>

pkgname=xfce4-xkb-plugin
pkgver=0.5.3.3
pkgrel=4
pkgdesc="plugin to switch keyboard layouts for the Xfce4 panel"
arch=(i686 x86_64)
license=('custom')
url="http://goodies.xfce.org/projects/panel-plugins/xfce4-xkb-plugin"
groups=('xfce4-goodies')
depends=('xfce4-panel' 'libxfcegui4' 'libxklavier>=5.0' 'librsvg')
makedepends=('intltool')
options=('!libtool')
source=(http://archive.xfce.org/src/panel-plugins/${pkgname}/0.5/${pkgname}-${pkgver}.tar.gz
        xfce4-xkb-plugin-0.5.3.3-libxklavier.patch
	crashfix.diff)
md5sums=('b233cc9de1cbace075eaf6e2c9a8e685'
         '781165ce1bc08059ae8e846c45c0bab2'
         '4faeaaea7d294cbad2972af964508086')

build() {
  cd ${srcdir}/${pkgname}-${pkgver}
  patch -Np1 -i "${srcdir}/xfce4-xkb-plugin-0.5.3.3-libxklavier.patch"

  # https://bugs.archlinux.org/task/21067 - http://bugzilla.xfce.org/show_bug.cgi?id=6477
  patch -Np1 -i ${srcdir}/crashfix.diff
  
  ./configure --prefix=/usr \
	--sysconfdir=/etc \
	--libexecdir=/usr/lib \
	--localstatedir=/var \
	--disable-static \
	--disable-debug
  make
}

package() {
  cd ${srcdir}/${pkgname}-${pkgver}
  make DESTDIR=${pkgdir} install
  install -Dm644 COPYING ${pkgdir}/usr/share/licenses/${pkgname}/COPYING
}