pkgname: gc pkgver: '8.2.12' pkgrel: '1' pkgdesc: 'A garbage collector for C and C++' url: 'http://www.hpl.hp.com/personal/Hans_Boehm/gc/' arch: x86_64 depends: [] makedepends: - libtool - sed - grep - m4 - 'libatomic-ops' - autoconf - automake source: - 'https://github.com/ivmai/bdwgc/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz' sha256sums: - SKIP build: | cd ${pkgname}-*/ ./autogen.sh sed -i 's#pkgdata#doc#' doc/doc.am && autoreconf && ./configure --prefix=/usr \ --enable-threads=pthreads \ --disable-static \ --enable-shared \ --enable-cplusplus install -D -m 644 doc/gc.man ${PKGDIR}/usr/share/man/man3/gc_malloc.3 make make DESTDIR=${PKGDIR} install # rm obsolets libs rm -f ${PKGDIR}/usr/lib/lib{gc{,cpp},cord}.la package: | true update: | local url ext url="http://www.hboehm.info/gc/gc_source/" ext=".tar.gz" lynx -read_timeout=20 -dump -listonly -nonumbers \ $url?C=M\;O=A|grep ${pkgname}-[0-9]|grep [0-9]$ext$| \ sed "s@$url${pkgname}-@@"|sed "s@$ext@@"|tail -1