31 lines
461 B
Bash
31 lines
461 B
Bash
|
pkgver=3.3
|
||
|
pkgname=libffi
|
||
|
bad="gmake"
|
||
|
ext="dev"
|
||
|
|
||
|
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
|
||
|
./configure --prefix=/usr
|
||
|
gmake
|
||
|
}
|
||
|
|
||
|
package() {
|
||
|
cd $pkgname-$pkgver
|
||
|
gmake install DESTDIR=$pkgdir
|
||
|
}
|
||
|
|
||
|
package_dev() {
|
||
|
cd $pkgname-$pkgver
|
||
|
gmake install DESTDIR=$pkgdir
|
||
|
}
|
||
|
|
||
|
license() {
|
||
|
cd $pkgname-$pkgver
|
||
|
cat LICENSE
|
||
|
}
|