aboutsummaryrefslogblamecommitdiffstats
path: root/main/distcc/APKBUILD
blob: c022995daa6b5f6cbef123887f97f769a487595b (plain) (tree)
1
2
3
4
5
6
7
8
9
                                                   
              
          
        
                                              
                       
               

                                 

                                                                     
                             
                                    
                                          



                                     







                                          














                                                                      





                                                          

                                                             
                                                       
                                               
                                                
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=distcc
pkgver=3.1
pkgrel=3
pkgdesc="A distributed C, C++, Obj C compiler"
url="http://distcc.org"
license="GPL-2"
depends=
makedepends="popt-dev python-dev"
source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2
	distcc-3.1-clone.patch
	distcc-hardened.patch
	distccd.initd distccd.confd"
subpackages="$pkgname-doc $pkgname-python"

build () 
{ 
	cd "$srcdir/$pkgname-$pkgver"
	for i in ../*.patch; do
		msg "applying $i"
		patch -p1 < $i || return 1
	done
	./configure --prefix=/usr \
		--without-gtk \
		--sysconfdir=/etc \
		--mandir=/usr/share/man

	make || return 1
	make DESTDIR="$pkgdir" install

	install -D -m644 ../distccd.confd "$pkgdir"/etc/conf.d/distccd
	install -D -m755 ../distccd.initd "$pkgdir"/etc/init.d/distccd

	local d="$pkgdir/usr/lib/$pkgname/bin"
	mkdir -p "$d"
	ln -sf /usr/bin/$pkgname "$d"/cc
	ln -sf /usr/bin/$pkgname "$d"/gcc
	ln -sf /usr/bin/$pkgname "$d"/g++
	ln -sf /usr/bin/$pkgname "$d"/cpp
}

python() {
	pkgdesc="Python bindings to distcc"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

md5sums="a1a9d3853df7133669fffec2a9aab9f3  distcc-3.1.tar.bz2
29fe296aa2985eea7af7402f421db187  distcc-3.1-clone.patch
351ca958ff4869f8a2795d8ca6647de1  distcc-hardened.patch
a0dc869866f17054142c964d29925e70  distccd.initd
e9e0ccc9f5813b9c3c88c8687b2ebc73  distccd.confd"