blob: f3539f9bd02ffc921f3d57658414c6b1a1ab9eaa (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Contributor: Leo <thinkabit.ukim@gmail.com>
# Maintainer: Leo <thinkabit.ukim@gmail.com>
pkgname=libdbusmenu-glib
pkgver=16.04.0
pkgrel=1
pkgdesc="Library for passing menus over DBus"
options="!check" # Requires dbus-test-runner
url="https://launchpad.net/libdbusmenu"
arch="all"
license="GPL-3.0-or-later AND LGPL-2.1-or-later AND LGPL-3.0-or-later"
makedepends="automake autoconf libtool glib-dev gobject-introspection-dev
vala gtk+3.0-dev json-glib-dev"
subpackages="
$pkgname-dev:_dev
libdbusmenu-gtk3
libdbusmenu-gtk3-dev:_gtk3dev
"
source="https://launchpad.net/libdbusmenu/16.04/$pkgver/+download/libdbusmenu-$pkgver.tar.gz"
builddir="$srcdir/libdbusmenu-$pkgver"
prepare() {
default_prepare
autoreconf -fi
}
build() {
export CFLAGS="$CFLAGS -Wno-error"
./configure \
--build=$CBUILD \
--host=$CHOST \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--localstatedir=/var \
--disable-dumper \
--disable-static \
--enable-tests \
--enable-vala \
--enable-introspection \
HAVE_VALGRIND_FALSE=''
make
}
check() {
make check
}
package() {
make DESTDIR="$pkgdir" install
rm -rf "$pkgdir"/usr/share/gtk-doc
rm -rf "$pkgdir"/usr/share/doc
rm -rf "$pkgdir"/usr/libexec
}
_dev() {
default_dev
mkdir -p "$pkgdir"/usr/include \
"$pkgdir"/usr/lib/pkgconfig \
"$pkgdir"/usr/lib \
"$pkgdir"/usr/share/gir-1.0 \
"$pkgdir"/usr/share/vala/vapi
mv "$subpkgdir"/usr/include/libdbusmenu-gtk3-* "$pkgdir"/usr/include
mv "$subpkgdir"/usr/lib/pkgconfig/dbusmenu-gtk3-*.pc "$pkgdir"/usr/lib/pkgconfig
mv "$subpkgdir"/usr/lib/libdbusmenu-gtk3.so "$pkgdir"/usr/lib
mv "$subpkgdir"/usr/share/gir-1.0/DbusmenuGtk3-*.gir "$pkgdir"/usr/share/gir-1.0
mv "$subpkgdir"/usr/share/vala/vapi/DbusmenuGtk3-*.vapi "$pkgdir"/usr/share/vala/vapi
}
gtk3() {
pkgdesc="$pkgdesc (GTK+3)"
mkdir -p "subpkgdir"/usr/lib "$subpkgdir"/usr/lib/girepository-1.0
mv "$pkgdir"/usr/lib/libdbusmenu-gtk3.so.* "$subpkgdir"/usr/lib
mv "$pkgdir"/usr/lib/girepository-1.0/DbusmenuGtk3-*.typelib \
"$subpkgdir"/usr/lib/girepository-1.0
}
_gtk3dev() {
pkgdesc="$pkgdesc (GTK+3)"
depends_dev="libdbusmenu-glib-dev=$pkgver-r$pkgrel gtk+3.0-dev
gdk-pixbuf-dev"
default_dev
}
sha512sums="ee9654ac4ed94bdebc94a6db83b126784273a417a645b2881b2ba676a5f67d7fc95dd2bb37bfb0890aa47299ed73cb21ed7de8b75f3fed6b69bfd39065062241 libdbusmenu-16.04.0.tar.gz"
|