termux-packages/packages/libgc/build.sh

19 lines
898 B
Bash
Raw Normal View History

2015-06-13 01:03:31 +02:00
TERMUX_PKG_HOMEPAGE=http://www.hboehm.info/gc/
TERMUX_PKG_DESCRIPTION="Library providing the Boehm-Demers-Weiser conservative garbage collector"
2017-12-27 12:45:03 +01:00
TERMUX_PKG_VERSION=7.6.2
TERMUX_PKG_SHA256=bd112005563d787675163b5afff02c364fc8deb13a99c03f4e80fdf6608ad41e
TERMUX_PKG_SRCURL=https://github.com/ivmai/bdwgc/releases/download/v$TERMUX_PKG_VERSION/gc-$TERMUX_PKG_VERSION.tar.gz
2015-06-13 01:03:31 +02:00
TERMUX_PKG_RM_AFTER_INSTALL="share/gc"
2015-06-13 01:03:31 +02:00
termux_step_post_extract_package () {
2017-12-27 12:45:03 +01:00
LIBATOMIC_VERSION=7.6.2
2015-06-13 01:03:31 +02:00
LIBATOMIC_FILE=libatomic_ops-${LIBATOMIC_VERSION}.tar.gz
2017-12-27 12:45:03 +01:00
termux_download \
https://github.com/ivmai/libatomic_ops/releases/download/v${LIBATOMIC_VERSION}/libatomic_ops-${LIBATOMIC_VERSION}.tar.gz \
2017-02-12 22:15:13 +01:00
$TERMUX_PKG_CACHEDIR/$LIBATOMIC_FILE \
2017-12-27 12:45:03 +01:00
219724edad3d580d4d37b22e1d7cb52f0006d282d26a9b8681b560a625142ee6
2015-06-13 01:03:31 +02:00
tar xf $TERMUX_PKG_CACHEDIR/$LIBATOMIC_FILE
mv libatomic_ops-${LIBATOMIC_VERSION} libatomic_ops
./autogen.sh
2015-06-13 01:03:31 +02:00
}