updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / libdbusmenu-gtk2 / PKGBUILD
blobe9804d0bf3d9f7a252f31f3d2d655ec8674d68ec
1 # Maintainer: Zom <zom[at]eevul[dot]org>
2 # Contributor: L42y <423300@gmail.com>
3 # Contributor: Gianfranco 'Gianfrix' Micoli <gianfrix.mg@gmail.com>
4 # Contributor: Chen Xiao-Long <chillermillerlong@hotmail.com>
6 pkgname=libdbusmenu-gtk2
7 _relname=libdbusmenu
8 pkgver=0.5.1
9 pkgrel=2
10 pkgdesc="GTK2-libs to go with libdbusmenu"
11 arch=('i686' 'x86_64')
12 url="https://launchpad.net/dbusmenu"
13 license=('GPL')
14 depends=('glib2' 'dbus-glib' 'libxml2' 'json-glib' 'gtk2' 'libdbusmenu>='${pkgver})
15 makedepends=('intltool' 'gnome-doc-utils' 'vala')
16 source=("http://launchpad.net/dbusmenu/0.5/${pkgver}/+download/${_relname}-${pkgver}.tar.gz")
17 sha512sums=('c6ddaee7a43c29b3f2fae20012489f12b0fe83defab547df8801ea08ba6cbeea32f2308ee82001a0d5f6ce9cd065e3c68e3369049e1e33ce10fa4811ef932174')
19 build() {
20   cd "${srcdir}/${_relname}-${pkgver}"
21   ./configure DBUSMENUGLIB_LIBS=/usr/lib/libdbusmenu-glib.la --prefix=/usr\
22   --libexecdir=/usr/lib/libdbusmenu\
23   --with-gtk=2\
24   --disable-introspection\
25   --disable-vala\
26   --disable-tests\
27   --disable-dumper
28   cd libdbusmenu-gtk
29   sed 's/..\/libdbusmenu\-glib\/libdbusmenu\-glib\.la/\/usr\/lib\/libdbusmenu\-glib\.la/' Makefile > newmakefile
30   mv newmakefile Makefile
31   cd ..
32   make
35 package() {
36   cd "${srcdir}/${_relname}-${pkgver}"
37   install -d ${pkgdir}/usr/lib
38   install -d ${pkgdir}/usr/lib/pkgconfig
39   install -d ${pkgdir}/usr/include/libdbusmenu-0.4/libdbusmenu-gtk/
41   install -m644 libdbusmenu-gtk/.libs/libdbusmenu-gtk.a ${pkgdir}/usr/lib/
42   install -m644 libdbusmenu-gtk/.libs/libdbusmenu-gtk.la ${pkgdir}/usr/lib/
43   install -m644 libdbusmenu-gtk/.libs/libdbusmenu-gtk.so.4.0.6 ${pkgdir}/usr/lib/
45   install -m644 libdbusmenu-gtk/dbusmenu-gtk-0.4.pc ${pkgdir}/usr/lib/pkgconfig/
47   install -m644 libdbusmenu-gtk/client.h ${pkgdir}/usr/include/libdbusmenu-0.4/libdbusmenu-gtk/
48   install -m644 libdbusmenu-gtk/dbusmenu-gtk.h ${pkgdir}/usr/include/libdbusmenu-0.4/libdbusmenu-gtk/
49   install -m644 libdbusmenu-gtk/menu.h ${pkgdir}/usr/include/libdbusmenu-0.4/libdbusmenu-gtk/
50   install -m644 libdbusmenu-gtk/menuitem.h ${pkgdir}/usr/include/libdbusmenu-0.4/libdbusmenu-gtk/
51   install -m644 libdbusmenu-gtk/parser.h ${pkgdir}/usr/include/libdbusmenu-0.4/libdbusmenu-gtk/
53   cp -d libdbusmenu-gtk/.libs/libdbusmenu-gtk.so ${pkgdir}/usr/lib/
54   cp -d libdbusmenu-gtk/.libs/libdbusmenu-gtk.so.4 ${pkgdir}/usr/lib/