diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..9d96df7 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +# Ignore BPM archives and signatures +*.bpm +*.bpm.sig diff --git a/pkg.info b/pkg.info index f40df94..8ed2d3e 100644 --- a/pkg.info +++ b/pkg.info @@ -1,15 +1,32 @@ name: zlib description: A Massively Spiffy Yet Delicately Unobtrusive Compression Library -version: 1.3.1 -revision: 3 +version: 1.3.2 +revision: 1 url: https://www.zlib.net/ license: Zlib +maintainers: + - enumdev@enumerated.dev architecture: any -depends: ["glibc"] -make_depends: ["bash","binutils","coreutils","gcc","glibc","make","sed"] type: source +depends: + - glibc +make_depends: + - bash + - binutils + - coreutils + - gcc + - glibc + - make + - sed +downloads: + - url: https://github.com/madler/zlib/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: b99a0b86c0ba9360ec7e78c4f1e43b1cbdf1e6936c8fa0f6835c0cd694a495a1 split_packages: - name: zlib - name: minizip description: zip and unzip routines based on zlib - depends: ["glibc","zlib"] + depends: + - glibc + - zlib diff --git a/source.sh b/source.sh index 4c2b893..8c8ea81 100644 --- a/source.sh +++ b/source.sh @@ -2,15 +2,9 @@ # 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 -DOWNLOAD="https://github.com/madler/zlib/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz" -FILENAME="${DOWNLOAD##*/}" - # The prepare function is executed in the root of the temp directory -# This function is used for downloading files and putting them into the correct location +# This function is used for putting downloaded files to the correct location or applying patches prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" - cd "$BPM_SOURCE"/contrib/minizip # Backup Makefile to run tests cp Makefile Makefile.orig