summaryrefslogtreecommitdiffstats
path: root/extra/avahi-gtk/Pkgfile
blob: edc16090a432ecd8b366fe6bd9be6a6c23382845 (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
# Description: Service de DNS
# URL: http://www.avahi.org/
# Maintainer: NuTyX core team 
# Packager: piernov <piernov@piernov.org>
# Depends on: avahi, gtk3, pygtk
# Run on: avahi,gtk3,pygtk

name=avahi-gtk
version=0.6.30
release=2
source=(http://www.avahi.org/download/avahi-$version.tar.gz)

build() {
	cd avahi-$version

	PYTHON=python2 ./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--localstatedir=/var/lib \
		--enable-gtk3 \
		--enable-gtk \
		--disable-qt3 \
		--disable-qt4 \
		--disable-monodoc \
		--disable-doxygen-doc \
		--disable-xmltoman \
		--disable-mono \
		--enable-compat-libdns_sd \
		--enable-compat-howl \
		--with-distro=lfs \
		--with-avahi-priv-access-group=network \
		--with-autoipd-user=avahi \
		--with-autoipd-group=avahi \
		--with-systemdsystemunitdir=/lib/systemd/system

	mkdir -p $PKG/usr/{bin,include,lib}

	for i in avahi-common avahi-client avahi-glib avahi-core; do
		make -C $i
	done

	for i in avahi-ui avahi-python/avahi-discover avahi-discover-standalone; do
		make -C $i
		make DESTDIR=$PKG install -C $i
	done

	make install-pkgconfigDATA
	mkdir -p $PKG/usr/lib/pkgconfig
	cp avahi-ui.pc $PKG/usr/lib/pkgconfig
	cp avahi-ui-gtk3.pc $PKG/usr/lib/pkgconfig/
#	rm $PKG/usr/lib/pkgconfig/avahi-{core,client,compat-howl,compat-libdns_sd,glib,gobject}.pc

	sed -i '1c #!/usr/bin/python2' $PKG/usr/bin/avahi-discover
}