diff --git a/360.curl.build b/360.curl.build
new file mode 120000
index 0000000..52bb82e
--- /dev/null
+++ b/360.curl.build
@@ -0,0 +1 @@
+pkg.build
\ No newline at end of file
diff --git a/360.glib.build b/360.glib.build
deleted file mode 120000
index 52bb82e..0000000
--- a/360.glib.build
+++ /dev/null
@@ -1 +0,0 @@
-pkg.build
\ No newline at end of file
diff --git a/361.irssi.build b/361.irssi.build
deleted file mode 120000
index 52bb82e..0000000
--- a/361.irssi.build
+++ /dev/null
@@ -1 +0,0 @@
-pkg.build
\ No newline at end of file
diff --git a/361.zsh.build b/361.zsh.build
new file mode 120000
index 0000000..52bb82e
--- /dev/null
+++ b/361.zsh.build
@@ -0,0 +1 @@
+pkg.build
\ No newline at end of file
diff --git a/361.zsh.vars b/361.zsh.vars
new file mode 100644
index 0000000..0c4dce2
--- /dev/null
+++ b/361.zsh.vars
@@ -0,0 +1,12 @@
+#
+# . ./build.vars and set -o errexit are assumed.
+#
+
+pkg_zsh_fetch() {
+ WGET_ARGS="-O ${PKG_FNAME}";
+ fetch "${PKG_URL}";
+ fetch "$(sed -ne '/class="direct-download">/s/^\s*$/\1/p' \
+ ${PKG_FNAME})" ${PKG_SHA256SUM};
+};
+
+# vim:filetype=sh
diff --git a/362.curl.build b/362.curl.build
deleted file mode 120000
index 52bb82e..0000000
--- a/362.curl.build
+++ /dev/null
@@ -1 +0,0 @@
-pkg.build
\ No newline at end of file
diff --git a/362.git.build b/362.git.build
new file mode 120000
index 0000000..52bb82e
--- /dev/null
+++ b/362.git.build
@@ -0,0 +1 @@
+pkg.build
\ No newline at end of file
diff --git a/363.libarchive.build b/363.libarchive.build
new file mode 120000
index 0000000..52bb82e
--- /dev/null
+++ b/363.libarchive.build
@@ -0,0 +1 @@
+pkg.build
\ No newline at end of file
diff --git a/363.zsh.build b/363.zsh.build
deleted file mode 120000
index 52bb82e..0000000
--- a/363.zsh.build
+++ /dev/null
@@ -1 +0,0 @@
-pkg.build
\ No newline at end of file
diff --git a/363.zsh.vars b/363.zsh.vars
deleted file mode 100644
index 0c4dce2..0000000
--- a/363.zsh.vars
+++ /dev/null
@@ -1,12 +0,0 @@
-#
-# . ./build.vars and set -o errexit are assumed.
-#
-
-pkg_zsh_fetch() {
- WGET_ARGS="-O ${PKG_FNAME}";
- fetch "${PKG_URL}";
- fetch "$(sed -ne '/class="direct-download">/s/^\s*$/\1/p' \
- ${PKG_FNAME})" ${PKG_SHA256SUM};
-};
-
-# vim:filetype=sh
diff --git a/364.git.build b/364.git.build
deleted file mode 120000
index 52bb82e..0000000
--- a/364.git.build
+++ /dev/null
@@ -1 +0,0 @@
-pkg.build
\ No newline at end of file
diff --git a/364.pacman.build b/364.pacman.build
new file mode 120000
index 0000000..52bb82e
--- /dev/null
+++ b/364.pacman.build
@@ -0,0 +1 @@
+pkg.build
\ No newline at end of file
diff --git a/365.libarchive.build b/365.libarchive.build
deleted file mode 120000
index 52bb82e..0000000
--- a/365.libarchive.build
+++ /dev/null
@@ -1 +0,0 @@
-pkg.build
\ No newline at end of file
diff --git a/365.libfetch.build b/365.libfetch.build
new file mode 120000
index 0000000..52bb82e
--- /dev/null
+++ b/365.libfetch.build
@@ -0,0 +1 @@
+pkg.build
\ No newline at end of file
diff --git a/365.libfetch.vars b/365.libfetch.vars
new file mode 100644
index 0000000..b1b9d77
--- /dev/null
+++ b/365.libfetch.vars
@@ -0,0 +1,11 @@
+#
+# . ./build.vars and set -o errexit are assumed.
+#
+
+pkg_libfetch_extract_post() {
+ cd ${PKG_SUBDIR} && \
+ fetch http://git.alpinelinux.org/cgit/aports/plain/main/libfetch/Makefile && \
+ cd ${OLDPWD};
+};
+
+# vim:filetype=sh
diff --git a/366.apk_tools.build b/366.apk_tools.build
new file mode 120000
index 0000000..52bb82e
--- /dev/null
+++ b/366.apk_tools.build
@@ -0,0 +1 @@
+pkg.build
\ No newline at end of file
diff --git a/366.pacman.build b/366.pacman.build
deleted file mode 120000
index 52bb82e..0000000
--- a/366.pacman.build
+++ /dev/null
@@ -1 +0,0 @@
-pkg.build
\ No newline at end of file
diff --git a/367.libfetch.build b/367.libfetch.build
deleted file mode 120000
index 52bb82e..0000000
--- a/367.libfetch.build
+++ /dev/null
@@ -1 +0,0 @@
-pkg.build
\ No newline at end of file
diff --git a/367.libfetch.vars b/367.libfetch.vars
deleted file mode 100644
index b1b9d77..0000000
--- a/367.libfetch.vars
+++ /dev/null
@@ -1,11 +0,0 @@
-#
-# . ./build.vars and set -o errexit are assumed.
-#
-
-pkg_libfetch_extract_post() {
- cd ${PKG_SUBDIR} && \
- fetch http://git.alpinelinux.org/cgit/aports/plain/main/libfetch/Makefile && \
- cd ${OLDPWD};
-};
-
-# vim:filetype=sh
diff --git a/367.perl.build b/367.perl.build
new file mode 120000
index 0000000..52bb82e
--- /dev/null
+++ b/367.perl.build
@@ -0,0 +1 @@
+pkg.build
\ No newline at end of file
diff --git a/367.perl.vars b/367.perl.vars
new file mode 100644
index 0000000..5a1cce3
--- /dev/null
+++ b/367.perl.vars
@@ -0,0 +1,21 @@
+#
+# . ./build.vars and set -o errexit are assumed.
+#
+
+pkg_perl_extract_post() {
+ git clone https://github.com/lalbornoz/perl-cross;
+ for _ppep_fname_src in $(find perl-cross -type f \
+ -not -path perl-cross/.git/\* -not -name .gitignore); do
+ _ppep_fname_dst=perl-${PKG_VERSION}${_ppep_fname_src#perl-cross};
+ if [ -f ${_ppep_fname_dst} ]; then
+ mv ${_ppep_fname_dst} ${_ppep_fname_dst}.orig;
+ fi;
+ if [ ! -d $(dirname ${_ppep_fname_dst}) ]; then
+ mkdir -p $(dirname ${_ppep_fname_dst});
+ fi;
+ cp ${_ppep_fname_src} ${_ppep_fname_dst};
+ done;
+ unset _ppep_fname_src _ppep_fname_dst;
+};
+
+# vim:filetype=sh
diff --git a/368.apk_tools.build b/368.apk_tools.build
deleted file mode 120000
index 52bb82e..0000000
--- a/368.apk_tools.build
+++ /dev/null
@@ -1 +0,0 @@
-pkg.build
\ No newline at end of file
diff --git a/368.glib.build b/368.glib.build
new file mode 120000
index 0000000..52bb82e
--- /dev/null
+++ b/368.glib.build
@@ -0,0 +1 @@
+pkg.build
\ No newline at end of file
diff --git a/369.irssi.build b/369.irssi.build
new file mode 120000
index 0000000..52bb82e
--- /dev/null
+++ b/369.irssi.build
@@ -0,0 +1 @@
+pkg.build
\ No newline at end of file
diff --git a/build.sh b/build.sh
index 7f7a7f0..b338c07 100755
--- a/build.sh
+++ b/build.sh
@@ -28,6 +28,14 @@ esac; shift; done;
clear_env_with_except ${CLEAR_ENV_VARS_EXCEPT};
check_path_vars ${CHECK_PATH_VARS}; check_prereqs ${PREREQ_CMDS};
mkdir -p ${PREFIX} ${PREFIX_NATIVE} ${PREFIX_TARGET} ${WORKDIR};
+if [ -d ${PREFIX}/usr -o -f ${PREFIX}/usr -o -L ${PREFIX}/usr ]; then
+ rm -rf ${PREFIX}/usr;
+fi;
+ln -sf . ${PREFIX}/usr;
+if [ -d ${PREFIX_NATIVE}/usr -o -f ${PREFIX_NATIVE}/usr -o -L ${PREFIX_NATIVE}/usr ]; then
+ rm -rf ${PREFIX_NATIVE}/usr;
+fi;
+ln -sf . ${PREFIX_NATIVE}/usr;
{(
update_build_status build_start; build_times_init; trap "clean_build_status abort; exit 1" HUP INT TERM USR1 USR2;
log_msg info "Build started by ${BUILD_USER:=${USER}}@${BUILD_HNAME:=$(hostname)} at ${BUILD_DATE_START}.";
diff --git a/build.vars b/build.vars
index 16ae8f5..9ba26fa 100644
--- a/build.vars
+++ b/build.vars
@@ -42,7 +42,7 @@ export PATH="${PREFIX}/bin${PATH:+:${PATH}}";
: ${WGET_ARGS:="-N --no-check-certificate"};
: ${WORKDIR:=${PREFIX}/tmp};
-: ${PKG_BUILD_NAMES:="apk_tools bash binutils binutils_host bzip2 coreutils curl dalist dash diffutils findutils gawk git glib gmp grep gzip hexcurse irssi less libarchive libelf libfetch libffi libnbcompat libressl libz make mpc mpfr nano ncurses ncursestw ncursesw ntapi ntcon ntctty openssh pacman patch pemagine popt psxscl psxstub psxtypes rsync sed tar util_linux which xz zsh"};
+: ${PKG_BUILD_NAMES:="apk_tools bash binutils binutils_host bzip2 coreutils curl dalist dash diffutils findutils gawk git glib gmp grep gzip hexcurse irssi less libarchive libelf libfetch libffi libnbcompat libressl libz make mpc mpfr nano ncurses ncursestw ncursesw ntapi ntcon ntctty openssh pacman patch pemagine perl popt psxscl psxstub psxtypes rsync sed tar util_linux which xz zsh"};
: ${PKG_BUILD_VARS:="AR_BUILD AR_CONFIGURE AUTOGEN BUILD_DIR BUILD_TYPE CC_BUILD CC_CONFIGURE CC_INSTALL CFLAGS_BUILD_EXTRA CFLAGS_CONFIGURE CFLAGS_CONFIGURE_EXTRA CFLAGS_INSTALL_EXTRA CONFIGURE_ARGS CONFIGURE_ARGS_EXTRA ENV_VARS_EXTRA FNAME GIT_ARGS_EXTRA INSTALL_TARGET LDFLAGS_BUILD_EXTRA LDFLAGS_CONFIGURE LDFLAGS_CONFIGURE_EXTRA LDFLAGS_INSTALL_EXTRA LIBFILES_FIX LIBTOOL_MIDIPIX LIBTOOL_MIDIPIX_FIX MAKEFLAGS_BUILD MAKEFLAGS_BUILD_EXTRA MAKEFLAGS_INSTALL MAKEFLAGS_INSTALL_EXTRA NO_CLEAN PATCHES_EXTRA_URL PREFIX_EXTRA RANLIB_INSTALL SHA256SUM SUBDIR URL URL_FNAME URL_TYPE VERSION"};
: ${PKG_LVL0_CFLAGS_CONFIGURE:=-O0};
: ${PKG_LVL0_CONFIGURE_ARGS:="-C --host=${HOST_NATIVE} --prefix= --target=${TARGET}"};
@@ -271,6 +271,10 @@ export PATH="${PREFIX}/bin${PATH:+:${PATH}}";
: ${PKG_PATCH_VERSION:=2.7};
: ${PKG_PATCH_SHA256SUM:=59c29f56faa0a924827e6a60c6accd6e2900eae5c6aaa922268c717f06a62048};
: ${PKG_PATCH_URL:=https://ftp.gnu.org/gnu/patch/patch-${PKG_PATCH_VERSION}.tar.gz};
+: ${PKG_PERL_VERSION:=5.22.1};
+: ${PKG_PERL_SHA256SUM:=2b475d0849d54c4250e9cba4241b7b7291cffb45dfd083b677ca7b5d38118f27};
+: ${PKG_PERL_URL:=http://www.cpan.org/src/5.0/perl-${PKG_PERL_VERSION}.tar.gz};
+: ${PKG_PERL_CONFIGURE_ARGS:="-A ccflags=-I${PREFIX_LVL3}/include --sysroot=${PREFIX_LVL3} --target=x86_64-nt64-midipix"};
: ${PKG_RSYNC_VERSION:=3.1.2};
: ${PKG_RSYNC_SHA256SUM:=ecfa62a7fa3c4c18b9eccd8c16eaddee4bd308a76ea50b5c02a5840f09c0a1c2};
: ${PKG_RSYNC_URL:=https://download.samba.org/pub/rsync/src/rsync-${PKG_RSYNC_VERSION}.tar.gz};