summaryrefslogtreecommitdiff
path: root/user/gc/APKBUILD
blob: 1590922f22b85b0aef4c82518cfbb48e5686687d (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
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=gc
pkgver=8.2.2
pkgrel=0
pkgdesc="A garbage collector for C and C++"
url="https://hboehm.info/gc/"
arch="all"
license="MIT"
depends=""
makedepends="libatomic_ops-dev linux-headers"
subpackages="$pkgname-dev $pkgname-doc libgc++:libgccpp"
source="https://github.com/ivmai/bdwgc/releases/download/v$pkgver/$pkgname-$pkgver.tar.gz"

build() {
	./configure \
		--build=$CBUILD \
		--host=$CHOST \
		--prefix=/usr \
		--datadir=/usr/share/doc/gc \
		--enable-cplusplus
	make
}

check() {
	if [ "$CARCH" = "ppc" ]; then
		make check || true
	else
		make check
	fi
}

package() {
	make DESTDIR="$pkgdir" install
}

libgccpp() {
	install -d "$subpkgdir"/usr/lib
	mv "$pkgdir"/usr/lib/libgccpp.* "$pkgdir"/usr/lib/libgctba.* "$subpkgdir"/usr/lib/
}

sha512sums="4a7b26789ce22ab72bfaadf3029362c5fe26737df1e856e43db7d9b24ee8acf625e35d596bb3f698f91d6a5ddfb6c45a952a1dbd18d47359569696a544c9c248  gc-8.2.2.tar.gz"