diff --git a/pkg.info b/pkg.info index 16b5990..6b0d974 100644 --- a/pkg.info +++ b/pkg.info @@ -1,8 +1,20 @@ name: libraw description: Simple and unified interface for extracting out of RAW files generated by digital photo cameras -version: 0.21.4 +version: 0.21.5b +revision: 1 url: https://www.libraw.org/ license: LGPL2.1-only,CDDL-1.0 architecture: any -depends: ["gcc-libs", "glibc", "jasper", "lcms2", "libjpeg-turbo", "zlib"] type: source +depends: + - gcc-libs + - glibc + - jasper + - lcms2 + - libjpeg-turbo + - zlib +downloads: + - url: https://github.com/LibRaw/LibRaw/archive/refs/tags/${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: f60e8377dec42e50f59ed2860ba00bcb59773e04afbf7bd6bd9367ac3529e0e8 diff --git a/source.sh b/source.sh index 50490e0..13bca0d 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/LibRaw/LibRaw/archive/refs/tags/${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" autoreconf -fi } @@ -27,5 +21,6 @@ build() { package() { make DESTDIR="$BPM_OUTPUT" install + # Install package license install -Dm644 "$BPM_SOURCE"/LICENSE.{LGPL,CDDL} -t "$BPM_OUTPUT"/usr/share/licenses/libraw/ }