summaryrefslogtreecommitdiff
path: root/curl/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'curl/build.sh')
-rw-r--r--curl/build.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/curl/build.sh b/curl/build.sh
new file mode 100644
index 0000000..a6b4562
--- /dev/null
+++ b/curl/build.sh
@@ -0,0 +1,32 @@
+#!/bin/bash
+name=curl
+version=7.66.0
+revision=0
+sources=(
+ "https://curl.haxx.se/download/${name}-${version}.tar.xz"
+)
+build_depends=(
+ "tar"
+ "xz"
+ "autoconf"
+ "automake"
+)
+depends=(
+ "libffi>=3.2.1"
+ "openssl==1.1.1d"
+)
+
+
+function prepare() {
+ tar xf ${name}-${version}.tar.xz
+ cd ${name}-${version}
+}
+
+function build() {
+ ./configure --prefix=${_prefix}
+ make -j${_maxjobs}
+}
+
+function package() {
+ make install DESTDIR="${_pkgdir}"
+}