2021-01-17 19:15:45 +00:00
|
|
|
pkgver=3.3
|
|
|
|
pkgname=libffi
|
|
|
|
bad="gmake"
|
|
|
|
ext="dev"
|
2022-04-23 16:06:48 +00:00
|
|
|
auto_cross
|
2021-01-17 19:15:45 +00:00
|
|
|
|
|
|
|
fetch() {
|
|
|
|
curl -L "https://github.com/libffi/libffi/releases/download/v3.3/libffi-3.3.tar.gz" -o $pkgname-$pkgver.tar.gz
|
|
|
|
tar -xf $pkgname-$pkgver.tar.gz
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2022-04-23 17:10:54 +00:00
|
|
|
./configure --prefix=$PREFIX \
|
2022-04-23 16:06:48 +00:00
|
|
|
--build=$HOST_TRIPLE \
|
|
|
|
--host=$TRIPLE
|
2021-09-30 14:01:41 +00:00
|
|
|
bad --gmake gmake
|
2021-01-17 19:15:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-09-30 14:01:41 +00:00
|
|
|
bad --gmake gmake install DESTDIR=$pkgdir
|
2021-01-17 19:15:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package_dev() {
|
|
|
|
cd $pkgname-$pkgver
|
2021-09-30 14:01:41 +00:00
|
|
|
bad --gmake gmake install DESTDIR=$pkgdir
|
2021-01-17 19:15:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat LICENSE
|
|
|
|
}
|
2022-04-23 16:07:26 +00:00
|
|
|
|
|
|
|
backup() {
|
|
|
|
return
|
|
|
|
}
|