summaryrefslogtreecommitdiff
path: root/templates/libidn2/template
diff options
context:
space:
mode:
Diffstat (limited to 'templates/libidn2/template')
-rw-r--r--templates/libidn2/template28
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/libidn2/template b/templates/libidn2/template
new file mode 100644
index 0000000..3f37136
--- /dev/null
+++ b/templates/libidn2/template
@@ -0,0 +1,28 @@
+pkgname=libidn2
+version=2.3.8
+upstream="${MIRROR_GNU_FTP}/libidn/libidn2-${version}.tar.gz"
+build_no=1
+
+function do_configure {
+ mkdir build/
+ cd build/
+
+ conf_flags=(
+ --prefix=/usr
+ --host=${DISTRO_TC}
+ --disable-rpath
+ --disable-nls
+ )
+
+ ../configure "${conf_flags[@]}"
+}
+
+function do_build {
+ cd build/
+ make -j$(nproc)
+}
+
+function do_install {
+ cd build/
+ make DESTDIR=${DESTDIR} install
+}