Update package version to 0.2.13
This commit is contained in:
@@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Github repository
|
||||||
|
REPO="caolanm/libwmf"
|
||||||
|
|
||||||
|
# Get tag name using Github Rest API
|
||||||
|
TAG_NAME=$(curl -s -L -H "X-GitHub-Api-Version: 2022-11-28" -H "Authorization: token ${GITHUB_API_TOKEN}" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
|
# Trim 'v' character in TAG_NAME variable
|
||||||
|
VERSION=$(echo "$TAG_NAME" | tr -d 'v')
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
name: libwmf
|
name: libwmf
|
||||||
description: Library for reading and converting WMF (Windows Meta Files)
|
description: Library for reading and converting WMF (Windows Meta Files)
|
||||||
version: 0.2.8.4
|
version: 0.2.13
|
||||||
url: https://wvware.sourceforge.net/libwmf.html
|
url: https://github.com/caolanm/libwmf
|
||||||
license: LGPL2.1-or-later
|
license: LGPL2.1-or-later
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["expat","freetype2","glibc","libjpeg-turbo","libpng","libx11","zlib"]
|
depends: ["expat","freetype2","glibc","libjpeg-turbo","libpng","libx11","zlib"]
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
# BPM Expects the source code to be extracted into the automatically created 'source' directory which can be accessed using $BPM_SOURCE
|
# 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
|
# BPM Expects the output files to be present in the automatically created 'output' directory which can be accessed using $BPM_OUTPUT
|
||||||
|
|
||||||
DOWNLOAD="https://sourceforge.net/projects/wvware/files/libwmf/${BPM_PKG_VERSION}/libwmf-${BPM_PKG_VERSION}.tar.gz/download"
|
DOWNLOAD="https://github.com/caolanm/libwmf/archive/refs/tags/v${BPM_PKG_VERSION}.tar.gz"
|
||||||
FILENAME="${DOWNLOAD##*/}"
|
FILENAME="${DOWNLOAD##*/}"
|
||||||
|
|
||||||
# The prepare function is executed in the root of the temp directory
|
# The prepare function is executed in the root of the temp directory
|
||||||
@@ -16,6 +16,8 @@ prepare() {
|
|||||||
# This function is used to compile the source code
|
# This function is used to compile the source code
|
||||||
build() {
|
build() {
|
||||||
./configure --prefix=/usr --with-gsfontmap=/usr/share/ghostscript/Resource/Init/Fontmap.GS --with-gsfontdir=/usr/share/fonts/gsfonts
|
./configure --prefix=/usr --with-gsfontmap=/usr/share/ghostscript/Resource/Init/Fontmap.GS --with-gsfontdir=/usr/share/fonts/gsfonts
|
||||||
|
# prevent excessive overlinking due to libtool
|
||||||
|
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -24,5 +26,6 @@ build() {
|
|||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
|
||||||
|
# Install package license
|
||||||
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/libwmf/COPYING
|
install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/libwmf/COPYING
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user