summaryrefslogtreecommitdiff
path: root/templates/gmp/template
diff options
context:
space:
mode:
author0x221E2026-06-14 14:06:45 +0200
committer0x221E2026-06-14 14:06:45 +0200
commitcacee711ffebd105827ce8b35e4c13a4e674538a (patch)
tree94bd8c29c08a8acb2b8e9e17531e79d02781bafb /templates/gmp/template
initial commit
Diffstat (limited to 'templates/gmp/template')
-rw-r--r--templates/gmp/template28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/gmp/template b/templates/gmp/template
new file mode 100644
index 0000000..98900e8
--- /dev/null
+++ b/templates/gmp/template
@@ -0,0 +1,28 @@
+pkgname=gmp
+version=6.3.0
+build_no=1
+upstream="https://gmplib.org/download/gmp/gmp-${version}.tar.xz"
+
+function do_configure {
+ mkdir build/
+ cd build/
+
+ conf_flags=(
+ --prefix=/usr
+ --build=${DISTRO_TC}
+ --host=${DISTRO_TC}
+ )
+
+ CFLAGS="-std=gnu17" ../configure "${conf_flags[@]}"
+}
+
+function do_build {
+ cd build/
+ make -j$(nproc)
+ make check
+}
+
+function do_install {
+ cd build/
+ make DESTDIR=${DESTDIR} install
+}