Switch to new download format and remove libtool files

This commit is contained in:
2026-05-23 17:00:34 +03:00
parent 97a9f701cd
commit dba8d9e3b9
2 changed files with 14 additions and 11 deletions
+6 -1
View File
@@ -1,7 +1,7 @@
name: aspell name: aspell
description: Free and Open Source spell checker designed to eventually replace Ispell description: Free and Open Source spell checker designed to eventually replace Ispell
version: 0.60.8.2 version: 0.60.8.2
revision: 1 revision: 2
url: http://aspell.net/ url: http://aspell.net/
license: LGPL2.1 license: LGPL2.1
maintainers: maintainers:
@@ -11,3 +11,8 @@ type: source
depends: depends:
- gcc-libs - gcc-libs
- ncurses - 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
+8 -10
View File
@@ -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 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://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 # The build function is executed in the source directory
# This function is used to compile the source code # This function is used to compile the source code
build() { build() {
./configure --prefix=/usr ./configure --prefix=/usr
# Prevent excessive overlinking due to libtool
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
make make
} }
@@ -24,5 +18,9 @@ build() {
package() { package() {
make DESTDIR="$BPM_OUTPUT" install 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 install -Dm644 "$BPM_SOURCE"/COPYING "$BPM_OUTPUT"/usr/share/licenses/aspell/COPYING
} }