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
pkgname=libdbusmenu
pkgver=0.3.96
pkgrel=1
pkgdesc="A small little library that was created by pulling out some common code out of indicator-applet. (Canonical Ayatana Project)"
arch=('i686' 'x86_64')
url="https://launchpad.net/dbusmenu"
license=('GPL')
depends=('glib2' 'dbus-glib' 'libxml2' 'json-glib' 'gtk2')
makedepends=('intltool' 'gnome-common' 'gnome-doc-utils')
source=(http://archive.ubuntu.com/ubuntu/pool/main/libd/libdbusmenu/libdbusmenu_${pkgver}.orig.tar.gz
http://archive.ubuntu.com/ubuntu/pool/main/libd/libdbusmenu/libdbusmenu_${pkgver}-0ubuntu1.diff.gz
Dbusmenu-Glib-0.2.gir
Dbusmenu-Glib-0.2.vapi
DbusmenuGtk-0.2.gir
DbusmenuGtk-0.2.vapi)
md5sums=('632d0b0676830f622a8158d3ae96496c'
         '98b9716c8181325507e67985ad6e7d2b'
         '1c2f4f0648fba407934d5696cc212398'
         '40ae00d26cda9b781a561befe6276c80'
         'd7c40fa2bcd6706f8e211a8ba883e44a'
         '91e976da3435bb888db813df5626e137')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  patch -Np1 -i ../libdbusmenu_${pkgver}-0ubuntu1.diff
  ./configure --prefix=/usr --disable-static --enable-introspection=no
  make
}

package()
{
  cd "$srcdir"/$pkgname-$pkgver
  make DESTDIR="$pkgdir"

  install -d $pkgdir/usr/share/gir-1.0/
  install -d $pkgdir/usr/share/vala/vapi/
  install ../Dbusmenu-Glib-0.2.gir $pkgdir/usr/share/gir-1.0/
  install ../DbusmenuGtk-0.2.gir $pkgdir/usr/share/gir-1.0/
  install ../Dbusmenu-Glib-0.2.vapi $pkgdir/usr/share/vala/vapi/
  install ../DbusmenuGtk-0.2.vapi $pkgdir/usr/share/vala/vapi/
}