summaryrefslogtreecommitdiff
path: root/templates/bc/template
diff options
context:
space:
mode:
author0x221E2026-06-14 14:06:45 +0200
committer0x221E2026-06-14 14:06:45 +0200
commitcacee711ffebd105827ce8b35e4c13a4e674538a (patch)
tree94bd8c29c08a8acb2b8e9e17531e79d02781bafb /templates/bc/template
initial commit
Diffstat (limited to 'templates/bc/template')
-rw-r--r--templates/bc/template27
1 files changed, 27 insertions, 0 deletions
diff --git a/templates/bc/template b/templates/bc/template
new file mode 100644
index 0000000..ea1eb1b
--- /dev/null
+++ b/templates/bc/template
@@ -0,0 +1,27 @@
+pkgname=bc
+version=1.08.2
+build_no=1
+upstream="${MIRROR_GNU_FTP}/bc/bc-${version}.tar.gz"
+
+makedepends=(autoconf)
+
+function do_configure {
+ mkdir build/
+ cd build/
+
+ conf_flags=(
+ --prefix=/usr
+ )
+
+ PERL=/usr/bin/perl ../configure "${conf_flags[@]}"
+}
+
+function do_build {
+ cd build/
+ make -j$(nproc)
+}
+
+function do_install {
+ cd build/
+ make DESTDIR=${DESTDIR} install
+}