aboutsummaryrefslogtreecommitdiffstats
path: root/main/distcc/APKBUILD
blob: c353586af676579ab9d22b244208d7834ecd9f86 (plain) (blame)
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
# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=distcc
pkgver=3.3.5
pkgrel=1
pkgdesc="Ddistributed C, C++, Obj C compiler"
url="https://github.com/distcc/distcc"
arch="all"
license="GPL-2.0"
makedepends="autoconf automake popt-dev python3-dev"
checkdepends="gdb procps"
options="!check" # tests are failing
install="$pkgname.pre-install"
subpackages="$pkgname-doc $pkgname-pump"
source="https://github.com/distcc/distcc/releases/download/v$pkgver/distcc-$pkgver.tar.gz
	distcc-hardened.patch
	gcc-10.patch
	distccd.initd
	distccd.confd
	"

prepare() {
	default_prepare

	./autogen.sh
}

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--without-gtk \
		--sysconfdir=/etc \
		--disable-Werror \
		--without-libiberty \
		--mandir=/usr/share/man

	make
}

check() {
	make check
}

package() {
	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
}

pump() {
	pkgdesc="pump mode for distcc a distributed compiler client and server"
	mkdir -p "$subpkgdir"/usr/lib "$subpkgdir"/usr/bin
	mv "$pkgdir"/usr/bin/pump "$subpkgdir"/usr/bin/
	mv "$pkgdir"/usr/lib/python* "$subpkgdir"/usr/lib/
}

sha512sums="678909e7ab811d345357955a9f693324ca3870ecbefa62e6a71c8aeb7e4c3c7d9775d56cff4d8ff225614bc8468e1d35f33b7feea835d63167bf11350513ddd7  distcc-3.3.5.tar.gz
b53a0d6038504917fd41f549da4f5addaff6ebd198a5d9d3ee8d4654f843aab375da4017b40efe24b9d4c9881719030485e4f56724690ba271fb52dc48249a44  distcc-hardened.patch
4e55e0acda58e6f273c74e9d617de1a121debf820e915cf8aeb4d80907d427a058466bb2fd9126602aea7f861fd5fa1c2bede15e2a512923bc61e3ef163430d4  gcc-10.patch
3c58be08242de09f76876b20a0c6643a3a76a088c356484cb091253b7e4dddb20008d071d8e5d1a66acbc5bfe4d8a59284a6d7f225ca2006e8a8b3c698e71026  distccd.initd
fbb12522e489243475c735e055a72a19b176f1ad736dc810e1f085d8d9d79460ac7590a92bb9563f8b316437f67f6ca729330253f007d06011144a66fede5465  distccd.confd"