APKBUILD 1.38 KB
Newer Older
1
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
Natanael Copa's avatar
Natanael Copa committed
2
pkgname=distcc
Natanael Copa's avatar
Natanael Copa committed
3
pkgver=3.1
4
pkgrel=2
Natanael Copa's avatar
Natanael Copa committed
5
pkgdesc="A distributed C, C++, Obj C compiler"
Natanael Copa's avatar
Natanael Copa committed
6
url="http://distcc.org"
Natanael Copa's avatar
Natanael Copa committed
7
license="GPL-2"
8 9
depends=
makedepends="popt-dev python-dev"
Natanael Copa's avatar
Natanael Copa committed
10 11
source="http://$pkgname.googlecode.com/files/$pkgname-$pkgver.tar.bz2
	distcc-3.1-clone.patch
12
	distcc-hardened.patch
Natanael Copa's avatar
Natanael Copa committed
13
	distccd.initd distccd.confd"
14
subpackages="$pkgname-doc $pkgname-python"
Natanael Copa's avatar
Natanael Copa committed
15 16 17 18

build () 
{ 
	cd "$srcdir/$pkgname-$pkgver"
Natanael Copa's avatar
Natanael Copa committed
19 20 21 22 23 24 25 26
	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
Natanael Copa's avatar
Natanael Copa committed
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41

	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
}

42 43 44 45 46 47
python() {
	pkgdesc="Python bindings to distcc"
	mkdir -p "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

Natanael Copa's avatar
Natanael Copa committed
48 49
md5sums="a1a9d3853df7133669fffec2a9aab9f3  distcc-3.1.tar.bz2
29fe296aa2985eea7af7402f421db187  distcc-3.1-clone.patch
50
351ca958ff4869f8a2795d8ca6647de1  distcc-hardened.patch
51
a0dc869866f17054142c964d29925e70  distccd.initd
Natanael Copa's avatar
Natanael Copa committed
52
e9e0ccc9f5813b9c3c88c8687b2ebc73  distccd.confd"