From de5bc9545fdaa23928bd1c9d9127a707ddd713a0 Mon Sep 17 00:00:00 2001 From: EnumDev Date: Fri, 21 Nov 2025 15:08:38 +0200 Subject: [PATCH] Update package version to 2.8.14 --- pkg.info | 23 ++++++++++++++++++----- source.sh | 14 ++++---------- 2 files changed, 22 insertions(+), 15 deletions(-) diff --git a/pkg.info b/pkg.info index 15b7905..170bc26 100644 --- a/pkg.info +++ b/pkg.info @@ -1,11 +1,24 @@ name: enchant description: Spelling library wrapper with consistent interface -version: 2.8.12 -revision: 2 +version: 2.8.14 +revision: 1 url: https://rrthomas.github.io/enchant/ license: LGPL2.1-or-later architecture: any -depends: ["gcc-libs", "glib", "glibc"] -optional_depends: ["aspell"] -make_depends: ["aspell","aspell-en", "vala", "unittest-cpp"] type: source +depends: + - gcc-libs + - glib + - glibc +optional_depends: + - aspell +make_depends: + - aspell + - aspell-en + - vala + - unittest-cpp +downloads: + - url: https://github.com/rrthomas/enchant/releases/download/v${BPM_PKG_VERSION}/enchant-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: d04588769399ff7140fa214b9731e6fc6eda9bb2e75df9f67263717710bb4c4b diff --git a/source.sh b/source.sh index 870d15d..e088175 100644 --- a/source.sh +++ b/source.sh @@ -2,21 +2,14 @@ # 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/rrthomas/enchant/releases/download/v${BPM_PKG_VERSION}/enchant-${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 -prepare() { - wget "$DOWNLOAD" - tar -xvf "$FILENAME" --strip-components=1 -C "$BPM_SOURCE" -} - # The build function is executed in the source directory # This function is used to compile the source code build() { ./configure --prefix=/usr --disable-static --enable-relocatable + + # Prevent overlinking due to libtool sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make } @@ -31,5 +24,6 @@ check() { package() { make DESTDIR="$BPM_OUTPUT" install + # Install package license install -Dm644 "$BPM_SOURCE"/COPYING.LIB "$BPM_OUTPUT"/usr/share/licenses/enchant/COPYING.LIB }