2022-02-12 13:31:24 +00:00
|
|
|
pkgver=7.81.0
|
2021-05-12 08:58:24 +00:00
|
|
|
pkg_ver=$(echo $pkgver | tr '.' '_')
|
2021-01-17 19:15:45 +00:00
|
|
|
pkgname=curl
|
|
|
|
pkgrel=1
|
2022-04-22 09:59:33 +00:00
|
|
|
mkdeps=""
|
2021-09-11 08:24:20 +00:00
|
|
|
deps="openssl"
|
2021-01-17 19:15:45 +00:00
|
|
|
bad=""
|
2022-04-22 09:59:33 +00:00
|
|
|
auto_cross
|
2021-01-17 19:15:45 +00:00
|
|
|
|
|
|
|
fetch() {
|
2021-05-12 08:58:24 +00:00
|
|
|
curl -L "https://github.com/curl/curl/releases/download/curl-$pkg_ver/curl-$pkgver.tar.xz" -o $pkgname-$pkgver.tar.gz
|
2021-01-17 19:15:45 +00:00
|
|
|
tar -xf $pkgname-$pkgver.tar.gz
|
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $pkgname-$pkgver
|
2022-04-22 09:59:33 +00:00
|
|
|
./configure --prefix=/usr \
|
|
|
|
--build=$HOST_TRIPLE \
|
|
|
|
--host=$TRIPLE \
|
|
|
|
--with-openssl
|
|
|
|
make
|
2021-01-17 19:15:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
cd $pkgname-$pkgver
|
2022-04-22 09:59:33 +00:00
|
|
|
make DESTDIR=$pkgdir install
|
2021-01-17 19:15:45 +00:00
|
|
|
}
|
|
|
|
|
2022-02-12 13:31:24 +00:00
|
|
|
backup() {
|
|
|
|
return
|
2021-01-17 19:15:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
license() {
|
|
|
|
cd $pkgname-$pkgver
|
|
|
|
cat COPYING
|
|
|
|
}
|