Switch to new download format and remove libtool files
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user