From dba8d9e3b96e24f262bb3301730629a4aaff007e Mon Sep 17 00:00:00 2001 From: EnumDev Date: Sat, 23 May 2026 17:00:34 +0300 Subject: [PATCH] Switch to new download format and remove libtool files --- pkg.info | 7 ++++++- source.sh | 18 ++++++++---------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/pkg.info b/pkg.info index 94f0df0..524d58e 100644 --- a/pkg.info +++ b/pkg.info @@ -1,7 +1,7 @@ name: aspell description: Free and Open Source spell checker designed to eventually replace Ispell version: 0.60.8.2 -revision: 1 +revision: 2 url: http://aspell.net/ license: LGPL2.1 maintainers: @@ -11,3 +11,8 @@ type: source depends: - gcc-libs - ncurses +downloads: + - url: https://ftpmirror.gnu.org/gnu/aspell/aspell-${BPM_PKG_VERSION}.tar.gz + extract_to: ${BPM_SOURCE} + extract_strip_components: 1 + checksum: 57fe4863eae6048f72245a8575b44b718fb85ca14b9f8c0afc41b254dfd76919 diff --git a/source.sh b/source.sh index 4013892..2058db5 100644 --- a/source.sh +++ b/source.sh @@ -2,20 +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://ftpmirror.gnu.org/gnu/aspell/aspell-${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 + + # Prevent excessive overlinking due to libtool + sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool + make } @@ -24,5 +18,9 @@ build() { package() { make DESTDIR="$BPM_OUTPUT" install + # Remove unwanted libtool files + find "$BPM_OUTPUT" -name '*.la' -delete + + # Install package license install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/aspell/COPYING }