mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-04-19 05:36:38 +02:00
40 lines
961 B
Text
40 lines
961 B
Text
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
|
|
pkgname=gc
|
|
pkgver=8.2.8
|
|
pkgrel=1
|
|
pkgdesc="garbage collector for C and C++"
|
|
url="https://hboehm.info/gc/"
|
|
arch="all"
|
|
license="Boehm-GC"
|
|
makedepends="linux-headers"
|
|
subpackages="$pkgname-dbg $pkgname-static $pkgname-dev $pkgname-doc libgc++:libgccpp"
|
|
source="https://github.com/ivmai/bdwgc/releases/download/v$pkgver/gc-$pkgver.tar.gz"
|
|
|
|
build() {
|
|
./configure \
|
|
--build=$CBUILD \
|
|
--host=$CHOST \
|
|
--prefix=/usr \
|
|
--datadir=/usr/share/doc/gc \
|
|
--enable-static \
|
|
--enable-cplusplus
|
|
make
|
|
}
|
|
|
|
check() {
|
|
make check
|
|
}
|
|
|
|
package() {
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 README.md "$pkgdir/usr/share/licenses/$pkgname/README.md"
|
|
}
|
|
|
|
libgccpp() {
|
|
install -d "$subpkgdir"/usr/lib
|
|
mv "$pkgdir"/usr/lib/libgccpp.* "$subpkgdir"/usr/lib/
|
|
}
|
|
|
|
sha512sums="
|
|
e0994bac8d1068f79a8379fa5797efbd420b22eb923d6537613e7542fc6805f74f57be0c4ff7555539461f8ace849fa1534e2077752bfb61c0e14f367b5b55af gc-8.2.8.tar.gz
|
|
"
|