Update package version to 3.4.8, fix dependencies and disable architecture specific customization
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Github repository
|
||||||
|
REPO="libffi/libffi"
|
||||||
|
|
||||||
|
# Get tag name using Github Rest API
|
||||||
|
TAG_NAME=$(curl -s -L -H "Accept: application/vnd.github+json" -H "X-GitHub-Api-Version: 2022-11-28" https://api.github.com/repos/"$REPO"/releases/latest | jq -r '.tag_name')
|
||||||
|
|
||||||
|
# Get version number from tag name
|
||||||
|
VERSION=$(echo "$TAG_NAME" | rev | cut -d'-' -f1 | rev)
|
||||||
|
|
||||||
|
# Trim 'v' character in VERSION variable
|
||||||
|
VERSION=$(echo "$VERSION" | tr -d 'v')
|
||||||
|
|
||||||
|
echo "$VERSION"
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
name: libffi
|
name: libffi
|
||||||
description: A Portable Foreign Function Interface Library
|
description: A Portable Foreign Function Interface Library
|
||||||
version: 3.4.4
|
version: 3.4.8
|
||||||
revision: 2
|
|
||||||
url: https://sourceware.org/libffi/
|
url: https://sourceware.org/libffi/
|
||||||
license: MIT
|
license: MIT
|
||||||
architecture: any
|
architecture: any
|
||||||
depends: ["glibc"]
|
depends: ["glibc"]
|
||||||
make_depends: ["bash","binutils","coreutils","gcc","glibc","make","sed"]
|
make_depends: ["dejagnu"]
|
||||||
type: source
|
type: source
|
||||||
|
|||||||
@@ -16,8 +16,7 @@ prepare() {
|
|||||||
# 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 \
|
||||||
--disable-static \
|
--disable-static
|
||||||
--with-gcc-arch=native
|
|
||||||
make
|
make
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -31,4 +30,7 @@ check() {
|
|||||||
# This function is used to move the compiled files into the output directory
|
# This function is used to move the compiled files into the output directory
|
||||||
package() {
|
package() {
|
||||||
make DESTDIR="$BPM_OUTPUT" install
|
make DESTDIR="$BPM_OUTPUT" install
|
||||||
|
|
||||||
|
# Install package license
|
||||||
|
install -Dm644 "$BPM_SOURCE"/LICENSE "$BPM_OUTPUT"/usr/share/licenses/libffi/LICENSE
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user