summaryrefslogtreecommitdiff
path: root/templates/perl/template
diff options
context:
space:
mode:
Diffstat (limited to 'templates/perl/template')
-rw-r--r--templates/perl/template17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/perl/template b/templates/perl/template
new file mode 100644
index 0000000..47a9f04
--- /dev/null
+++ b/templates/perl/template
@@ -0,0 +1,17 @@
+pkgname=perl
+version=5.42.2
+upstream="https://www.cpan.org/src/5.0/perl-${version}.tar.gz"
+build_no=1
+
+function do_configure {
+ ./Configure -Dprefix=/usr -Dinstallprefix=/usr -Dman1dir=/usr/share/man/man1 -Dman1ext=1 -Dman3dir=/usr/share/man/man3 -Dman3ext=3pm -Dcc=gcc
+}
+
+function do_build {
+ make -j$(nproc)
+}
+
+function do_install {
+ make DESTDIR=${DESTDIR} install
+ ln -s /usr/bin/perl /usr/sbin/perl
+}