diff --git a/pkg.info b/pkg.info index 90c2481..ccb3943 100644 --- a/pkg.info +++ b/pkg.info @@ -1,10 +1,27 @@ name: libwmf description: Library for reading and converting WMF (Windows Meta Files) -version: 0.2.13 +version: 0.2.14 +revision: 1 url: https://github.com/caolanm/libwmf license: LGPL2.1-or-later +maintainers: + - enumdev@enumerated.dev architecture: any -depends: ["expat","freetype2","glibc","libjpeg-turbo","libpng","libx11","zlib"] -optional_depends: ["gdk-pixbuf"] -make_depends: ["gdk-pixbuf"] type: source +depends: + - expat + - freetype2 + - glibc + - libjpeg-turbo + - libpng + - libx11 + - zlib +optional_depends: + - gdk-pixbuf +make_depends: + - gdk-pixbuf +downloads: + - url: https://github.com/caolanm/libwmf/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: dea2a07ed27fc041a9b2901dc9d12f0d68b76cee6578df955a559b340c32a86c diff --git a/source.sh b/source.sh index 551e564..5d93b82 100644 --- a/source.sh +++ b/source.sh @@ -2,14 +2,11 @@ # 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/caolanm/libwmf/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" + autoreconf -fi } # The build function is executed in the source directory