updated on Thu Jan 26 16:09:46 UTC 2012
[aur-mirror.git] / lib32-avahi-git / PKGBUILD
blob1e0d439215923f44d3a16ba029a53e221318bfdf
1 #Maintainer: Phrearch <j.veenvan@gmail.com>
2 pkgname=lib32-avahi-git
3 pkgver=20110608
4 pkgrel=1
5 pkgdesc="A multicast/unicast DNS-SD framework"
6 arch=('x86_64')
7 url="http://avahi/org"
8 license=('LGPL')
9 groups=()
10 depends=('expat' 'lib32-libdaemon' 'lib32-glib2' 'lib32-dbus-core' 'lib32-libcap' 'lib32-gdbm' 'lib32-gtk3' 'pygtk' 'pygobject')
11 makedepends=('git')
12 md5sums=() #generate with 'makepkg -g'
13 _gitroot="git://git.0pointer.de/avahi.git"
14 _gitname="avahi"
16 build() {
17   cd "$srcdir"
18   msg "Connecting to GIT server...."
20   if [ -d $_gitname ] ; then
21     cd $_gitname && git pull
22     msg "The local files are updated."
23   else
24     git clone $_gitroot $_gitname
25   fi
26   pushd $srcdir/$_gitname
27   git checkout v0.6.30
28   popd
29   msg "GIT checkout done or server timeout"
30   msg "Starting make..."
32   rm -rf "$srcdir/$_gitname-build"
33   git clone "$srcdir/$_gitname" "$srcdir/$_gitname-build"
34   cd "$srcdir/$_gitname-build"
36   sh autogen.sh --disable-qt3 --disable-manpages --disable-xmltoman
37   #no qt3, manpages require xmltoman. disable for now, since its not in aur/repo
38   ./configure --disable-qt3 --disable-manpages --prefix=/usr --sysconfdir=/etc --localstatedir=/var \
39                         --libexecdir=/usr/lib32 --libdir=/usr/lib32 \
40                         --enable-introspection=no CC='gcc -m32' CXX='g++ -m32'
41   
42 make
45 package() {
46   cd "$srcdir/$_gitname-build"
47   make DESTDIR="$pkgdir/" install
48   rm -rf ${pkgdir}/usr/{sbin,bin,lib/python2.7,include,share}
49   rm -rf ${pkgdir}/etc/
50