mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-09 21:07:13 +08:00
36 lines
913 B
Bash
36 lines
913 B
Bash
# Maintainer: Francesco Marinucci <franzmari[at]chakra-project[dot]it>
|
|
# Maintainer: Daniel Isenmann <daniel [at] archlinux.org>
|
|
# Contributor: dorphell <dorphell@gmx.net>
|
|
|
|
pkgname=gc
|
|
pkgver=7.4.0
|
|
pkgrel=2
|
|
pkgdesc="A garbage collector for C and C++"
|
|
arch=('x86_64')
|
|
url="http://www.hboehm.info/gc/"
|
|
license=('GPL')
|
|
source=("http://www.hboehm.info/gc/gc_source/${pkgname}-${pkgver}.tar.gz")
|
|
depends=('gcc-libs' 'libatomic_ops')
|
|
md5sums=('f40d9a47c90d60791eeecb484f8df5ee')
|
|
|
|
prepare() {
|
|
cd ${pkgname}-${pkgver}
|
|
sed -i 's#pkgdata#doc#' doc/doc.am
|
|
}
|
|
|
|
build() {
|
|
cd ${pkgname}-${pkgver}
|
|
autoreconf -fi
|
|
./configure --prefix=/usr --enable-cplusplus --disable-static
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd ${pkgname}-${pkgver}
|
|
make DESTDIR="${pkgdir}" install
|
|
|
|
sed -i -e 's/GC_MALLOC 1L/gc 3/' doc/gc.man
|
|
install -m755 -d "${pkgdir}/usr/share/man/man3"
|
|
install -m644 doc/gc.man "${pkgdir}/usr/share/man/man3/gc.3"
|
|
}
|