new: lfs-12.2-systemd/libffi-3.4.6
This commit is contained in:
parent
cafa208231
commit
6818b26531
30
lfs-12.2-systemd/libffi-3.4.6.PKGBUILD
Normal file
30
lfs-12.2-systemd/libffi-3.4.6.PKGBUILD
Normal file
@ -0,0 +1,30 @@
|
||||
pkgname=libffi
|
||||
pkgver=3.4.6
|
||||
pkgdesc='Portable foreign function interface library'
|
||||
homepage='https://sourceware.org/libffi/'
|
||||
license=(MIT)
|
||||
sources=("${pkgname}-${pkgver}.tar.gz")
|
||||
urls=("https://github.com/libffi/libffi/releases/download/v${pkgver}/${sources[0]}")
|
||||
md5sums=("b9cac6c5997dca2b3787a59ede34e0eb")
|
||||
|
||||
src_prepare() {
|
||||
tar -xf ${DIST_DIR}/${pkgname}-${pkgver}/${sources[0]} --strip-components=1
|
||||
}
|
||||
|
||||
src_build() {
|
||||
./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--with-gcc-arch=native
|
||||
make
|
||||
}
|
||||
|
||||
src_check() {
|
||||
make check
|
||||
}
|
||||
|
||||
src_install() {
|
||||
make DESTDIR="${pkgdir}" install
|
||||
install -Dm 644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
|
||||
install -Dm 644 README.md -t "$pkgdir"/usr/share/doc/$pkgname
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user