diff --git a/pkg.info b/pkg.info index 90d832e..a963cac 100644 --- a/pkg.info +++ b/pkg.info @@ -1,9 +1,11 @@ name: gc description: A garbage collector for C and C++ -version: 8.2.10 +version: 8.2.12 revision: 1 url: https://www.hboehm.info/gc/ license: MIT +maintainers: + - enumdev@enumerated.dev architecture: any type: source depends: @@ -12,4 +14,4 @@ downloads: - url: https://github.com/ivmai/bdwgc/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz extract_to: ${BPM_SOURCE} extract_strip_components: 1 - checksum: 5858a417ab3eaac2add0daf79cd29ddf248c9f648e6c08092b775dcbfcbe1edb + checksum: d09001f45dabf1c29a5df3e63020a4bab5ad4aad69137bb07100c717e2ecba0b diff --git a/source.sh b/source.sh index 79d4e56..4a49a6e 100644 --- a/source.sh +++ b/source.sh @@ -2,10 +2,16 @@ # BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE # BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT +# The prepare function is executed in the root of the temp directory +# This function is used for putting downloaded files to the correct location or applying patches +prepare() { + cd "$BPM_SOURCE" + ./autogen.sh +} + # The build function is executed in the source directory # This function is used to compile the source code build() { - ./autogen.sh ./configure --prefix=/usr --enable-cplusplus --disable-static make } @@ -21,6 +27,7 @@ check() { package() { make DESTDIR="$BPM_OUTPUT" install + # Install package license cat README.md | awk '/## Copyright & Warranty/,0' > LICENSE.md install -Dm644 "$BPM_SOURCE"/LICENSE.md "$BPM_OUTPUT"/usr/share/licenses/gc/LICENSE.md }