aboutsummaryrefslogtreecommitdiffstats
path: root/main/avahi-ui/APKBUILD
blob: dd6f99c2dbf4832313764847a2e3cc26bb9db284 (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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=avahi-ui
pkgver=0.6.31
pkgrel=7
pkgdesc="Gtk user interface library for Avahi"
url="http://www.avahi.org/"
arch="all"
license="LGPL2+"
depends=""
depends_dev="gtk+3.0-dev gtk+2.0-dev gdbm-dev avahi-dev"
makedepends="$depends_dev py-gobject3-dev py-gtk-dev py-dbus-dev intltool
	gobject-introspection-dev expat-dev libdaemon-dev glib-dev dbus-dev
	libcap-dev py-gdbm
	autoconf automake libtool"
install=""
subpackages="$pkgname-dev $pkgname-tools $pkgname-gtk3"
patches="musl-fix.patch
	avahi-0.6.31-no-deprecations.patch
	system-avahi.patch"
source="http://www.avahi.org/download/avahi-$pkgver.tar.gz
	$patches
	gnome-nettool.png"

_subdirs="avahi-ui avahi-python"
_builddir="$srcdir"/avahi-$pkgver
prepare() {
	cd "$_builddir"
	for i in $patches; do
		patch -p1 -i "$srcdir"/$i || return 1
	done
	update_config_sub || return 1
	libtoolize --force && aclocal -I m4 && autoconf \
		&& automake --add-missing
}

build() {
	cd "$_builddir"
	# we dont build autoipd since dhcpcd does same job
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var \
		--disable-autoipd \
		--disable-qt3 \
		--disable-qt4 \
		--enable-gtk3 \
		--disable-mono \
		--disable-monodoc \
		--disable-doxygen-doc \
		--disable-xmltoman \
		--disable-compat-libdns_sd \
		--disable-compat-howl \
		--with-distro="gentoo" \
		--with-systemdsystemunitdir=/lib/systemd/system \
		--disable-static \
		--enable-shared \
		|| return 1
	for i in $_subdirs; do
		(cd $i && make) || return 1
	done
}

package() {
	cd "$_builddir"
	make install-pkgconfigDATA DESTDIR="$pkgdir" \
		pkgconfig_DATA="avahi-ui.pc avahi-ui-gtk3.pc" || return 1
	mkdir -p "$pkgdir"/usr/bin || return 1
	for i in avahi-ui avahi-python; do
		( cd $i && make DESTDIR="$pkgdir" install) || return 1
	done
	rm -r "$pkgdir"/usr/lib/py* || return 1
}

tools() {
	pkgdesc="UI tools for mDNS browsing"
	depends="py-gtk py-dbus py-gdbm py-avahi"
	mkdir -p "$subpkgdir"/usr/bin
	cd "$pkgdir"/usr/bin
	mv avahi-bookmarks avahi-discover avahi-discover-standalone b* \
		"$subpkgdir"/usr/bin/
	install -D -m 644 "$srcdir"/gnome-nettool.png \
		"$subpkgdir"/usr/share/pixmaps/gnome-nettool.png
}

gtk3() {
	pkgdesc="Gtk3 user interface library for Avahi"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libavahi-ui-gtk3.so.* \
		"$subpkgdir"/usr/lib/
}

md5sums="2f22745b8f7368ad5a0a3fddac343f2d  avahi-0.6.31.tar.gz
9557450128d0e4324405af2c625dc8c7  musl-fix.patch
c3f9cdb20bfbaa575f86e2fe4a7783bf  avahi-0.6.31-no-deprecations.patch
880936938b6793b5fe675622eb513838  system-avahi.patch
42c2905307c7a5dc6ac4b75f4c3d65a3  gnome-nettool.png"
sha256sums="8372719b24e2dd75de6f59bb1315e600db4fd092805bd1201ed0cb651a2dab48  avahi-0.6.31.tar.gz
c43a60cf9cddb3cc8c88c13d78dbf0c6a7f1e3ff1f73e1305d465547cadd6a58  musl-fix.patch
a30a5c3fbf07e1035021f92735ef7cbfbfd6e5a2324daca4cd034321f037ec9d  avahi-0.6.31-no-deprecations.patch
7731752997475c358129d6f716b1b76e715642c21184844666f51a3b040a12d8  system-avahi.patch
88cbac3316fd0ad10bb7d054dcd53ab822517a1d9bbb70a31cd754dcd59e94b9  gnome-nettool.png"
sha512sums="53eb00d570a274d841e1e6ad07da077950089ae39b4f7aa21fcd21cc5320b30b506b43e7e57e56198e155cc7bd289b779a48b2b2fc002dc6194a946110451858  avahi-0.6.31.tar.gz
09ae19b3c8641cdbeaabf1af69852e297d7445dfaf259b43d9de8a04c5d31722ecb2fb921feb44925a5364e69bd514c47be90f532493b087879abf9f53a8fe11  musl-fix.patch
488699dd1d3cc39c4efc972ac6e9afa306208a23fe028454951c8009a34f974dbd19f16d6737bfea93660559728080508e06e32de0718db4f2dda9624031002a  avahi-0.6.31-no-deprecations.patch
99723e66889601044ac5ca919e79aa328083cb377bb3d270f3e8d2baee27505f967949f72faa0424756e5f18b1359fd7f7fb30636861d47455ff7b92ed48bcfa  system-avahi.patch
d8e92fcdd82759f8de536ebfa356fe208c27b2d998ce5bb51d585dffc163dc16228be4a7108644fe1a11defbe750244bc8105a430b1397297cdef4cb83ab0db5  gnome-nettool.png"