Browse code

First commit

Qurban Ullah authored on 27/02/2018 17:43:09
Showing 1 changed files
1 1
new file mode 100755
... ...
@@ -0,0 +1,52 @@
1
+# $Id$
2
+# Maintainer: Qurban Ullah <qurbanullah@avouch.org>
3
+# Contributor: Qurban Ullah <qurbanullah@avouch.org>
4
+
5
+pkgname=caribou
6
+pkgver=0.4.21
7
+pkgrel=1
8
+pkgdesc="A text entry and UI navigation application (on-screen keyboard)"
9
+arch=('i686' 'x86_64')
10
+url="http://live.gnome.org/Caribou"
11
+license=(LGPL)
12
+depends=(at-spi2-atk python2-atspi python2-gobject gtk3 libxklavier libgee clutter dconf)
13
+makedepends=(intltool docbook-xsl gtk2)
14
+install=caribou.install
15
+options=(!emptydirs)
16
+source=(http://ftp.gnome.org/pub/GNOME/sources/$pkgname/${pkgver:0:3}/$pkgname-$pkgver.tar.xz)
17
+sha256sums=('953ba618621fda8a828d0d797fc916dbe35990dc01d7aa99d15e5e2241ee2782')
18
+
19
+prepare() {
20
+	cd ${srcdir}/${pkgname}-${pkgver}
21
+
22
+	sed -i s'|#!/usr/bin/python|#!/usr/bin/python2|'g tools/{fix_gir,make_schema}.py
23
+}
24
+
25
+build() {
26
+	cd ${srcdir}/${pkgname}-${pkgver}
27
+	PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
28
+	--sysconfdir=/etc \
29
+	--libexecdir=/usr/lib/$pkgname \
30
+	--disable-static \
31
+	--disable-schemas-compile
32
+
33
+	# https://bugzilla.gnome.org/show_bug.cgi?id=655517
34
+	sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
35
+	make
36
+}
37
+
38
+check() {
39
+	cd ${srcdir}/${pkgname}-${pkgver}
40
+	make -k check
41
+}
42
+
43
+package() {
44
+	cd ${srcdir}/${pkgname}-${pkgver}
45
+	make DESTDIR="${pkgdir}" install
46
+	# license
47
+	install -Dm644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
48
+
49
+	# validating desktop files
50
+	desktop-file-validate ${pkgdir}/etc/xdg/autostart/caribou-autostart.desktop || :
51
+	desktop-file-validate ${pkgdir}/usr/lib/gnome-settings-daemon-3.0/gtk-modules/caribou-gtk-module.desktop || :
52
+}