aboutsummaryrefslogtreecommitdiffstats
path: root/main/xfce4-xkb-plugin/APKBUILD
blob: fe24c84e7780cd64403a0db8ade6ca9eba4cb715 (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
44
45
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=xfce4-xkb-plugin
pkgver=0.5.6
_maj=${pkgver%%.*}
_min=${pkgver#${_maj}.}
_min=${_min%%.*}
_ver=${_maj}.${_min}
pkgrel=0
pkgdesc="plugin to switch keyboard layouts for the Xfce4 panel"
url="http://goodies.xfce.org/projects/panel-plugins/xfce4-xkb-plugin"
arch="all"
license="custom"
subpackages="$pkgname-doc $pkgname-lang"
depends=
makedepends="xfce4-panel-dev libxklavier-dev librsvg-dev intltool libwnck-dev
	libxi-dev libxkbfile-dev libsm-dev libgsf-dev e2fsprogs-dev bzip2-dev libxfce4ui-dev"
source="http://archive.xfce.org/src/panel-plugins/xfce4-xkb-plugin/$_ver/xfce4-xkb-plugin-$pkgver.tar.bz2"

prepare() {
	cd "$srcdir"/$pkgname-$pkgver
	update_config_sub || return 1
}

build () {
	cd "$srcdir"/$pkgname-$pkgver
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--libexecdir=/usr/lib \
		--localstatedir=/var \
		--disable-static \
		|| return 1
	make || return 1
}

package() {
	cd "$srcdir"/$pkgname-$pkgver
	make DESTDIR="$pkgdir" install || return 1
	install -Dm644 COPYING "$pkgdir"/usr/share/licenses/$pkgname/COPYING
}
md5sums="bc4a43aa7f9ee1759562f92727a95cc4  xfce4-xkb-plugin-0.5.6.tar.bz2"
sha256sums="09e4623033987ce7b711252609a17291b306cdf60863ee39677a4995a93318a5  xfce4-xkb-plugin-0.5.6.tar.bz2"
sha512sums="6469f42b06b5d0dd9049c5d7baeca10a1be8fab520e98bf92533c751b36581fb008663593a45bbaead080cfd97086e856732b1dc336b6f713a95c9a212500bf6  xfce4-xkb-plugin-0.5.6.tar.bz2"