aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2016-08-26 11:10:07 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2016-08-26 11:10:07 +0200
commita39e19f96447a409ae6f6c1c63d3c16feb1a3991 (patch)
tree148fdebc95bfd8788f91996703d2094c1b8df4da /testing
parentc5240dc4d2a5efc26b94c943d87848e51ba2794b (diff)
downloadaports-a39e19f96447a409ae6f6c1c63d3c16feb1a3991.tar.bz2
aports-a39e19f96447a409ae6f6c1c63d3c16feb1a3991.tar.xz
unmaintained/[multiple] move back packages to testing
move back packages that are depends of other packages in testing
Diffstat (limited to 'testing')
-rw-r--r--testing/accountsservice/APKBUILD54
-rw-r--r--testing/asio/APKBUILD52
-rw-r--r--testing/asio/fix-strerror_r.patch42
-rw-r--r--testing/capstone/APKBUILD45
-rw-r--r--testing/capstone/capstone.pc8
-rw-r--r--testing/chromaprint/APKBUILD46
-rw-r--r--testing/colord/APKBUILD53
-rw-r--r--testing/fdk-aac/APKBUILD47
-rw-r--r--testing/gnome-common/APKBUILD49
-rw-r--r--testing/gsoap/APKBUILD62
-rw-r--r--testing/gsoap/stdsoap2.c.diff11
-rw-r--r--testing/gsoap/stdsoap2.cpp.diff20
-rw-r--r--testing/gsoap/stdsoap2.h.diff11
-rw-r--r--testing/gtksourceview/APKBUILD39
-rw-r--r--testing/gumbo-parser/APKBUILD46
-rw-r--r--testing/harminv/APKBUILD50
-rw-r--r--testing/homer-api/APKBUILD59
-rw-r--r--testing/homer-api/homer-move-config2etc.patch33
-rw-r--r--testing/kbuild/0001-define-ALLPERMS-is-missing.patch43
-rw-r--r--testing/kbuild/0001-testing-kbuild-upgrade-to-0.1.9998_pre20131130-and-f.patch357
-rw-r--r--testing/kbuild/APKBUILD102
-rw-r--r--testing/kbuild/allperms.patch30
-rw-r--r--testing/kbuild/getloadavg.patch32
-rw-r--r--testing/kbuild/glob.patch19
-rw-r--r--testing/kbuild/kbuild-0.1.9998_pre20110817-gcc-4.7.patch12
-rw-r--r--testing/kbuild/kobjcache.patch10
-rw-r--r--testing/kbuild/lchmod.patch27
-rw-r--r--testing/kbuild/obstack.patch42
-rw-r--r--testing/kbuild/strlcpy.patch13
-rw-r--r--testing/kbuild/sys-types.patch14
-rw-r--r--testing/kbuild/sys_siglist.patch28
-rw-r--r--testing/kbuild/uclibc.patch22
-rw-r--r--testing/kbuild/underlinking.patch13
-rw-r--r--testing/libctl/APKBUILD54
-rw-r--r--testing/libctl/gh-libguile.patch220
-rw-r--r--testing/libgdiplus/APKBUILD49
-rw-r--r--testing/libmbfl/APKBUILD110
-rw-r--r--testing/libmbfl/filters_makefile.patch20
-rw-r--r--testing/liboauth/APKBUILD51
-rw-r--r--testing/libsieve/APKBUILD44
-rw-r--r--testing/libsigsegv/APKBUILD44
-rw-r--r--testing/libtermkey/APKBUILD30
-rw-r--r--testing/libuecc/APKBUILD45
-rw-r--r--testing/lua-lpeg/APKBUILD70
-rw-r--r--testing/lua5.2-penlight/APKBUILD33
-rw-r--r--testing/mhash/APKBUILD42
-rw-r--r--testing/mobile-broadband-provider-info/APKBUILD42
-rw-r--r--testing/nx-libs/APKBUILD53
-rw-r--r--testing/nx-libs/Makefile.patch11
-rw-r--r--testing/nx-libs/fix-musl-headers-x86.patch11
-rw-r--r--testing/nx-libs/xf86bigfont.patch11
-rw-r--r--testing/perl-alien-libgumbo/APKBUILD54
-rw-r--r--testing/perl-apache2-sitecontrol/APKBUILD39
-rw-r--r--testing/perl-bind-config-parser/APKBUILD37
-rw-r--r--testing/perl-carp-assert/APKBUILD37
-rw-r--r--testing/perl-class-accessor-grouped/APKBUILD37
-rw-r--r--testing/perl-class-dbi-abstractsearch/APKBUILD37
-rw-r--r--testing/perl-class-dbi/APKBUILD37
-rw-r--r--testing/perl-common-sense/APKBUILD35
-rw-r--r--testing/perl-dancer-plugin-swig/APKBUILD41
-rw-r--r--testing/perl-data-compare/APKBUILD41
-rw-r--r--testing/perl-data-dump/APKBUILD41
-rw-r--r--testing/perl-dbix-datasource/APKBUILD37
-rw-r--r--testing/perl-email-mime/APKBUILD41
-rw-r--r--testing/perl-email-simple/APKBUILD41
-rw-r--r--testing/perl-extutils-pkgconfig/APKBUILD41
-rw-r--r--testing/perl-extutils-xsbuilder/APKBUILD37
-rw-r--r--testing/perl-glib-ex-objectbits/APKBUILD41
-rw-r--r--testing/perl-gtk2-ex-widgetbits/APKBUILD39
-rw-r--r--testing/perl-hash-merge/APKBUILD37
-rw-r--r--testing/perl-html-template/APKBUILD39
-rw-r--r--testing/perl-io-socket-inet6/APKBUILD41
-rw-r--r--testing/perl-json-maybexs/APKBUILD41
-rw-r--r--testing/perl-module-install/APKBUILD44
-rw-r--r--testing/perl-net-appliance-session/APKBUILD39
-rw-r--r--testing/perl-net-cidr-lite/APKBUILD41
-rw-r--r--testing/perl-net-dns-sec/APKBUILD43
-rw-r--r--testing/perl-net-iptrie/APKBUILD38
-rw-r--r--testing/perl-net-irr/APKBUILD37
-rw-r--r--testing/perl-object-insideout/APKBUILD37
-rw-r--r--testing/perl-parallel-forkmanager/APKBUILD37
-rw-r--r--testing/perl-radiusperl/APKBUILD38
-rw-r--r--testing/perl-time-local/APKBUILD37
-rw-r--r--testing/perl-types-serialiser/APKBUILD41
-rw-r--r--testing/pulseaudio/0001-padsp-Make-it-compile-on-musl.patch70
-rw-r--r--testing/pulseaudio/APKBUILD147
-rw-r--r--testing/pulseaudio/pulseaudio.confd7
-rw-r--r--testing/pulseaudio/pulseaudio.initd81
-rw-r--r--testing/py-beautifulsoup4/APKBUILD41
-rw-r--r--testing/py-jabberbot/APKBUILD30
-rw-r--r--testing/py-tkinter/APKBUILD87
-rw-r--r--testing/py-tkinter/find_library.patch11
-rw-r--r--testing/py-tkinter/unchecked-ioctl.patch11
-rw-r--r--testing/py-xdg/APKBUILD36
-rw-r--r--testing/qt5-qtkeychain/APKBUILD48
-rw-r--r--testing/qt5-qtxmlpatterns/APKBUILD49
-rw-r--r--testing/tidyhtml/APKBUILD33
-rw-r--r--testing/uhttpmock/APKBUILD50
-rw-r--r--testing/unibilium/APKBUILD30
-rw-r--r--testing/xmlrpc-epi/APKBUILD53
-rw-r--r--testing/zziplib/APKBUILD50
101 files changed, 4568 insertions, 0 deletions
diff --git a/testing/accountsservice/APKBUILD b/testing/accountsservice/APKBUILD
new file mode 100644
index 0000000000..0c4f7771e7
--- /dev/null
+++ b/testing/accountsservice/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=accountsservice
+pkgver=0.6.37
+pkgrel=0
+pkgdesc="D-Bus interface for user account query and manipulation"
+url="http://www.freedesktop.org/software/accountsservice/"
+arch="all"
+license="GPLv3+"
+depends=""
+depends_dev="glib-dev gobject-introspection-dev polkit-dev"
+makedepends="$depends_dev intltool gnome-doc-utils"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="http://www.freedesktop.org/software/accountsservice/accountsservice-$pkgver.tar.xz"
+
+_builddir="$srcdir"/accountsservice-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-systemd \
+ --enable-introspection=yes \
+ || return 1
+ # hack to disable utmpx
+ sed -i -e '/#define HAVE_UTMPX_H 1/d' config.h
+
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="aa5f4da715b8ec19024e39def88831a0 accountsservice-0.6.37.tar.xz"
+sha256sums="b0b21136dc9d74a7135fd5ed7fa1a8069efb91bc6ecc1ef8911125433345a5c1 accountsservice-0.6.37.tar.xz"
+sha512sums="c6014da6796ed384c02f9171bb47cdbc5da61d80d53adbc3120c19a1166caa2ede2a6e676cfc6ddf2b953e78a290b70d86a5bf1af10c428e215a875878cc816c accountsservice-0.6.37.tar.xz"
diff --git a/testing/asio/APKBUILD b/testing/asio/APKBUILD
new file mode 100644
index 0000000000..4e13fe3357
--- /dev/null
+++ b/testing/asio/APKBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=asio
+pkgver=1.10.6
+_ver=${pkgver//./-}
+pkgrel=0
+pkgdesc="A cross-platform C++ library for network programming"
+url="https://think-async.com"
+arch="all"
+license="Boost"
+depends=""
+depends_dev="boost-dev openssl-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://downloads.sourceforge.net/project/asio/asio/${pkgver}%20%28Stable%29/asio-$pkgver.tar.bz2
+ fix-strerror_r.patch
+ "
+
+_builddir="$srcdir"/asio-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ update_config_sub || return 1
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="85d014a356a6e004cd30ccd4c9b6a5c2 asio-1.10.6.tar.bz2
+dfc0d5d1c14ca0a247d835c944e400a6 fix-strerror_r.patch"
+sha256sums="e0d71c40a7b1f6c1334008fb279e7361b32a063e020efd21e40d9d8ff037195e asio-1.10.6.tar.bz2
+0b3eb6d74c9dd11e08368da0f9e09446e2383b5fc840e630581fef3672db95ac fix-strerror_r.patch"
+sha512sums="7146e75a378de57daab88e7ba509ae01367ffa0d7c4c90481e221977a6b9f4fd80e9caac5c6b4c27bc7652e44cd210e2c6cabf5681d7c62747df14bbc25e8c23 asio-1.10.6.tar.bz2
+a023e305a9efa6b93489374dfe9881c447d748a8d48ff803e0ac7ff1be618460b57de024e79da8c08dab4bcd214cbf2c3991d963eef678ca8dbd48b3c8933a70 fix-strerror_r.patch"
diff --git a/testing/asio/fix-strerror_r.patch b/testing/asio/fix-strerror_r.patch
new file mode 100644
index 0000000000..f05a519c81
--- /dev/null
+++ b/testing/asio/fix-strerror_r.patch
@@ -0,0 +1,42 @@
+From 52d862c4e8af60a31f0067e1070b8625e805cdc3 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Thu, 21 Jan 2016 23:37:32 +0100
+Subject: [PATCH] Fix use of strerror_r()
+
+Don't try keep track of all platforms which follows posix standard.
+Instead, make the platform which don't follow standard to an exception
+and fall back to standard implementation for everything else.
+
+This fixes building with musl libc.
+
+Fixes #94
+---
+ asio/include/asio/impl/error_code.ipp | 11 ++++-------
+ 1 file changed, 4 insertions(+), 7 deletions(-)
+
+diff --git a/asio/include/asio/impl/error_code.ipp b/asio/include/asio/impl/error_code.ipp
+index b996773..3a1cff1 100644
+--- a/include/asio/impl/error_code.ipp
++++ b/include/asio/impl/error_code.ipp
+@@ -98,17 +98,14 @@ public:
+ #if defined(__sun) || defined(__QNX__) || defined(__SYMBIAN32__)
+ using namespace std;
+ return strerror(value);
+-#elif defined(__MACH__) && defined(__APPLE__) \
+- || defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__) \
+- || defined(_AIX) || defined(__hpux) || defined(__osf__) \
+- || defined(__ANDROID__)
++#elif defined(__GLIBC__) && defined(_GNU_SOURCE)
++ char buf[256] = "";
++ return strerror_r(value, buf, sizeof(buf));
++#else
+ char buf[256] = "";
+ using namespace std;
+ strerror_r(value, buf, sizeof(buf));
+ return buf;
+-#else
+- char buf[256] = "";
+- return strerror_r(value, buf, sizeof(buf));
+ #endif
+ #endif // defined(ASIO_WINDOWS_DESKTOP) || defined(__CYGWIN__)
+ }
diff --git a/testing/capstone/APKBUILD b/testing/capstone/APKBUILD
new file mode 100644
index 0000000000..dc5322237a
--- /dev/null
+++ b/testing/capstone/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+pkgname=capstone
+pkgver=3.0.4
+pkgrel=0
+pkgdesc="The Ultimate Disassembler"
+url="http://www.capstone-engine.org"
+arch="all"
+license="LGPLv2"
+depends=""
+depends_dev="$pkgname"
+makedepends="cmake"
+install=""
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/aquynh/$pkgname/archive/$pkgver.tar.gz
+ $pkgname.pc"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+build() {
+ cd "$_builddir"
+ cmake CMakeLists.txt \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCAPSTONE_BUILD_STATIC=OFF \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 "$srcdir"/$pkgname.pc "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc
+ sed -i \
+ -e "s/#pkgname/$pkgname/" \
+ -e "s/#pkgdesc/$pkgdesc/" \
+ -e "s/#pkgver/$pkgver/" \
+ "$pkgdir"/usr/lib/pkgconfig/$pkgname.pc
+}
+
+md5sums="203a3593552afd844b0d7da0f56d21d2 capstone-3.0.4.tar.gz
+bcbbe0e5250a246705668638778b9a29 capstone.pc"
+sha256sums="5d6dadf5864c56f8de66c66088fa68e849d0bff6577865a4f81b6f23112b14f2 capstone-3.0.4.tar.gz
+6bfbcd218a9f25ad1b30a45ec698cbfb0c41cf17202bd034d7d4057eafa9c4cd capstone.pc"
+sha512sums="a5c29e7c559b5391d6a4ec9a7f766699ea6d321aa2f1fc57fdcec893107fa3ef2f5f6323629971c1129f1ca087df4f3ad03d0a8234d2eae368c8ccfec04dbf4d capstone-3.0.4.tar.gz
+87eacef80df36be18fe86f540a452b7e290c9dfc85d01c7926d263f2e5060f6d5fd6a6c68c350caf532f4926902a77fba24e59cb5e9b606be9706980ae4c8235 capstone.pc"
diff --git a/testing/capstone/capstone.pc b/testing/capstone/capstone.pc
new file mode 100644
index 0000000000..d6c5d1ecde
--- /dev/null
+++ b/testing/capstone/capstone.pc
@@ -0,0 +1,8 @@
+libdir=/usr/lib
+includedir=/usr/include
+
+Name: #pkgname
+Version: #pkgver
+Description: #pkgdesc
+Libs: -L${libdir} -l#pkgname
+Cflags: -I${includedir}
diff --git a/testing/chromaprint/APKBUILD b/testing/chromaprint/APKBUILD
new file mode 100644
index 0000000000..7b0d124b5b
--- /dev/null
+++ b/testing/chromaprint/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Łukasz Jendrysik <scadu@yandex.com>
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=chromaprint
+pkgver=1.2
+pkgrel=1
+pkgdesc="Library that implements a custom algorithm for extracting fingerprints from any audio source"
+url="http://acoustid.org/chromaprint/"
+arch="all"
+license="LGPL"
+depends=""
+depends_dev="ffmpeg-dev"
+makedepends="$depends_dev cmake"
+install=""
+subpackages="$pkgname-dev"
+source="https://bitbucket.org/acoustid/chromaprint/downloads/chromaprint-$pkgver.tar.gz"
+
+_builddir="$srcdir"/chromaprint-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_EXAMPLES=ON \
+ . || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="${pkgdir}" install || return 1
+}
+
+md5sums="748da044a8f0ee5f31edec8b67045b3e chromaprint-1.2.tar.gz"
+sha256sums="822b8949a322ac04c6f8a3ed78f5e689bcc493c6ca0972bf627c913c8430031a chromaprint-1.2.tar.gz"
+sha512sums="dc61db8894a20df3d7e7317cd7cd97148c19be5854dd66409341cb8e47c045e1c632b254e14a869279983a5af2cc6f9effea21b77a63dff729511e6144439cbb chromaprint-1.2.tar.gz"
diff --git a/testing/colord/APKBUILD b/testing/colord/APKBUILD
new file mode 100644
index 0000000000..5da41f94d2
--- /dev/null
+++ b/testing/colord/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=colord
+pkgver=1.2.12
+pkgrel=0
+pkgdesc="http://www.freedesktop.org/software/colord/releases/colord-1.0.6.tar.xz"
+url="http://www.freedesktop.org/software/colord"
+arch="all"
+license="GPL2"
+depends=""
+depends_dev="dconf-dev dbus-dev lcms2-dev gobject-introspection-dev libgusb-dev
+ sqlite-dev polkit-dev"
+makedepends="$depends_dev intltool bash-completion"
+install=""
+subpackages="$pkgname-dev"
+source="http://www.freedesktop.org/software/colord/releases/colord-$pkgver.tar.xz"
+
+_builddir="$srcdir"/colord-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-systemd \
+ --disable-systemd-login \
+ --disable-argyllcms-sensor \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="80b106ba18a43c7eeaf2d9a2b8c5725b colord-1.2.12.tar.xz"
+sha256sums="d5241864c16a37f9e40d38d5009255456495a67f170ce0dc9250774442d68c3a colord-1.2.12.tar.xz"
+sha512sums="5ce8f4fd10b92ec0cb54a05017ab050753381663a43e40d959606bb5f71ddce5456a3d67f8ce0538a2c945136834c66615f3615fdfb3e1eaaf5f5ca7a9e9c4eb colord-1.2.12.tar.xz"
diff --git a/testing/fdk-aac/APKBUILD b/testing/fdk-aac/APKBUILD
new file mode 100644
index 0000000000..120c99bd76
--- /dev/null
+++ b/testing/fdk-aac/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=fdk-aac
+pkgver=0.1.4
+pkgrel=0
+pkgdesc="A standalone library of the Fraunhofer FDK AAC code from Android."
+url="https://sourceforge.net/projects/opencore-amr/"
+arch="all"
+license="custom"
+depends=""
+depends_dev=""
+makedepends="$depends_dev automake autoconf libtool"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="fdk-aac-$pkgver.tar.gz::https://github.com/mstorsjo/fdk-aac/archive/v$pkgver.tar.gz"
+
+_builddir="$srcdir"/fdk-aac-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./autogen.sh || return 1
+ ./configure \
+ --prefix="/usr" \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 NOTICE \
+ "${pkgdir}"/usr/share/licenses/libfdk-aac/NOTICE || return 1
+}
+
+md5sums="5292a28369a560d37d431de625bedc34 fdk-aac-0.1.4.tar.gz"
+sha256sums="e00b83ac7f7a37661bed8f0c12b926ddb48c722359b809a5789fd81a0ca9d24f fdk-aac-0.1.4.tar.gz"
+sha512sums="86b73ad8a653dae868c3b2fef0de6321e04b80baf81bd8cd416c9e3883b078739113201cfd5496aef7001a480380a17ed8bc9f2c59505e379dc561e918298d7b fdk-aac-0.1.4.tar.gz"
diff --git a/testing/gnome-common/APKBUILD b/testing/gnome-common/APKBUILD
new file mode 100644
index 0000000000..b2296a8d16
--- /dev/null
+++ b/testing/gnome-common/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=gnome-common
+pkgver=3.10.0
+pkgrel=0
+pkgdesc="Common development macros for GNOME"
+url="http://www.gnome.org"
+arch="noarch"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="https://download.gnome.org/sources/gnome-common/3.10/gnome-common-$pkgver.tar.xz"
+
+_builddir="$srcdir"/gnome-common-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="060eda0de8348a6aede83d597e3c6323 gnome-common-3.10.0.tar.xz"
+sha256sums="aed69474a671e046523827f73ba5e936d57235b661db97900db7356e1e03b0a3 gnome-common-3.10.0.tar.xz"
+sha512sums="6c6408160dc2f4132c71b6795e0f3b026d0d2737e3712294bb8cb0c097ec74d30cf70740d50c7712f38477b24ab6fd11d8872c7a3ed1919f24aa43a546e9febe gnome-common-3.10.0.tar.xz"
diff --git a/testing/gsoap/APKBUILD b/testing/gsoap/APKBUILD
new file mode 100644
index 0000000000..3730e768a9
--- /dev/null
+++ b/testing/gsoap/APKBUILD
@@ -0,0 +1,62 @@
+# Contributor: <xmingske@gmail.com>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+
+pkgname=gsoap
+pkgver=2.8.23
+pkgrel=0
+arch="all"
+pkgdesc='A cross-platform C and C++ SDK for SOAP/XML Web services'
+license='GPL-2 gSOAP'
+url='http://gsoap2.sourceforge.net'
+
+depends=''
+makedepends='autoconf automake bison flex zlib-dev openssl-dev'
+subpackages="$pkgname-dev"
+source="http://downloads.sourceforge.net/project/gsoap2/gSOAP/${pkgname}_${pkgver}.zip
+ stdsoap2.c.diff
+ stdsoap2.cpp.diff
+ stdsoap2.h.diff
+"
+
+gsopa_major='2.8'
+
+_builddir="$srcdir"/$pkgname-$gsopa_major
+
+prepare() {
+ cd "${_builddir}"
+ for f in $source; do
+ case $f in
+ *.diff) patch -p1 < "$srcdir"/$f
+ esac
+ done
+}
+
+build() {
+ cd "${_builddir}"
+ touch configure.ac aclocal.m4 configure Makefile.am Makefile.in
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --exec-prefix=/usr \
+ --enable-ipv6 \
+ || return 1
+ make -j1 || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="9aa06f75cd3e3defee3e81cb9a2d1743 gsoap_2.8.23.zip
+24c9892ba231da9cff0fdfd834cebb71 stdsoap2.c.diff
+8f62eb5fbd92c850c86ca4e6900efe1d stdsoap2.cpp.diff
+b8a9439699427356b1e90d4cfc1af146 stdsoap2.h.diff"
+sha256sums="e1c30743f1c2cf40b2760568127e14af1b2a00c3026b2e5f0750e8c33d94c061 gsoap_2.8.23.zip
+ab0dea89ffb1b98d5e6c7d0a4975b9c9c022099729217b898a15934f360d88d0 stdsoap2.c.diff
+e0414a1127f9529dfb4b686b3721fd5aaedf46a8bd795b09cca24a1b66bd8872 stdsoap2.cpp.diff
+9f73f51791be1f149c1ef0db676832f1c0cad6837d14931666b3b18083f4b7e4 stdsoap2.h.diff"
+sha512sums="cc90aadfe09aa6406172c9ffa07696851ff594ca7c5b40819494badd8ce978d908d66de63a5831e7aec1bca18ee8b51ed02187057688a3b36eb0a21fe6e0f5a4 gsoap_2.8.23.zip
+116c0e1fd9d3c17ba4625934c7cd158084a9f9198a4ffae0036589d923b010e58143a8aea7804adf91683114f0bc99494f3ecc4139006b901e975ccb429e3543 stdsoap2.c.diff
+4d9b6f09407e3af95a8a2e282e5a379b5e313df21285beab69459a990aa035ee6e8fcba05b06e120f5f0e5b0e1f8499f8cdb4c41615f7cd5692fb875a88e46c8 stdsoap2.cpp.diff
+de271db85f4bfef8a01392c8aca864b16da4efe4acb1919827f7145202db32fbc8c872b225d865bbe98e144cc579c46cb419e041475b3127fc7d442680938a0a stdsoap2.h.diff"
diff --git a/testing/gsoap/stdsoap2.c.diff b/testing/gsoap/stdsoap2.c.diff
new file mode 100644
index 0000000000..0d7b7bfec4
--- /dev/null
+++ b/testing/gsoap/stdsoap2.c.diff
@@ -0,0 +1,11 @@
+--- gsoap-2.8.orig/gsoap/stdsoap2.c
++++ gsoap-2.8/gsoap/stdsoap2.c
+@@ -3963,7 +3963,7 @@
+ { memcpy(inaddr, &iadd, sizeof(iadd));
+ return SOAP_OK;
+ }
+-#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__)
++#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__) || defined(LINUX)
+ if (gethostbyname_r(addr, &hostent, soap->buf, SOAP_BUFLEN, &host, &soap->errnum) < 0)
+ host = NULL;
+ #elif defined(_AIX43) || ((defined(TRU64) || defined(HP_UX)) && defined(HAVE_GETHOSTBYNAME_R))
diff --git a/testing/gsoap/stdsoap2.cpp.diff b/testing/gsoap/stdsoap2.cpp.diff
new file mode 100644
index 0000000000..66590b3a05
--- /dev/null
+++ b/testing/gsoap/stdsoap2.cpp.diff
@@ -0,0 +1,20 @@
+--- gsoap-2.8.orig/gsoap/stdsoap2.cpp
++++ gsoap-2.8/gsoap/stdsoap2.cpp
+@@ -3963,7 +3963,7 @@
+ { memcpy(inaddr, &iadd, sizeof(iadd));
+ return SOAP_OK;
+ }
+-#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__)
++#if defined(__GLIBC__) || (defined(HAVE_GETHOSTBYNAME_R) && (defined(FREEBSD) || defined(__FreeBSD__))) || defined(__ANDROID__) || defined(LINUX)
+ if (gethostbyname_r(addr, &hostent, soap->buf, SOAP_BUFLEN, &host, &soap->errnum) < 0)
+ host = NULL;
+ #elif defined(_AIX43) || ((defined(TRU64) || defined(HP_UX)) && defined(HAVE_GETHOSTBYNAME_R))
+@@ -17240,7 +17240,7 @@
+ {
+ #ifndef WIN32
+ # ifdef HAVE_STRERROR_R
+-# ifdef _GNU_SOURCE
++# if defined (_GNU_SOURCE) && defined(__GLIBC__)
+ return strerror_r(err, soap->msgbuf, sizeof(soap->msgbuf)); /* GNU-specific */
+ # else
+ strerror_r(err, soap->msgbuf, sizeof(soap->msgbuf)); /* XSI-compliant */
diff --git a/testing/gsoap/stdsoap2.h.diff b/testing/gsoap/stdsoap2.h.diff
new file mode 100644
index 0000000000..f21310a523
--- /dev/null
+++ b/testing/gsoap/stdsoap2.h.diff
@@ -0,0 +1,11 @@
+--- gsoap-2.8.orig/gsoap/stdsoap2.h
++++ gsoap-2.8/gsoap/stdsoap2.h
+@@ -859,7 +859,7 @@
+ # endif
+ #elif defined(SOCKLEN_T)
+ # define SOAP_SOCKLEN_T SOCKLEN_T
+-#elif defined(__socklen_t_defined) || defined(_SOCKLEN_T) || defined(CYGWIN) || defined(FREEBSD) || defined(__FreeBSD__) || defined(OPENBSD) || defined(__QNX__) || defined(QNX) || defined(OS390) || defined(__ANDROID__) || defined(_XOPEN_SOURCE)
++#elif defined(__socklen_t_defined) || defined(_SOCKLEN_T) || defined(CYGWIN) || defined(FREEBSD) || defined(__FreeBSD__) || defined(OPENBSD) || defined(__QNX__) || defined(QNX) || defined(OS390) || defined(__ANDROID__) || defined(_XOPEN_SOURCE) || defined (LINUX)
+ # define SOAP_SOCKLEN_T socklen_t
+ #elif defined(IRIX) || defined(WIN32) || defined(__APPLE__) || defined(SUN_OS) || defined(OPENSERVER) || defined(TRU64) || defined(VXWORKS) || defined(HP_UX)
+ # define SOAP_SOCKLEN_T int
diff --git a/testing/gtksourceview/APKBUILD b/testing/gtksourceview/APKBUILD
new file mode 100644
index 0000000000..2f6a1e8a3f
--- /dev/null
+++ b/testing/gtksourceview/APKBUILD
@@ -0,0 +1,39 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=gtksourceview
+pkgver=3.18.1
+pkgrel=0
+pkgdesc="A text widget adding syntax highlighting and more to GNOME"
+url="http://live.gnome.org/GtkSourceView"
+arch="all"
+license="GPL"
+replaces="gtksourceview"
+depends=
+depends_dev="gtk+3.0-dev libxml2-dev"
+makedepends="$depends_dev gobject-introspection-dev"
+subpackages="$pkgname-dev $pkgname-doc $pkgname-lang"
+source="http://ftp.gnome.org/pub/gnome/sources/gtksourceview/${pkgver%.*}/gtksourceview-$pkgver.tar.xz"
+
+_builddir="$srcdir/gtksourceview-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="b7600b6cc06ec96ce1d028bf7a44d14b gtksourceview-3.18.1.tar.xz"
+sha256sums="7be95faf068b9f0ac7540cc1e8d607baa98a482850ef11a6471b53c9327aede6 gtksourceview-3.18.1.tar.xz"
+sha512sums="dacee02c1d7232279b560bfa362c65837a981d50fdc28ae966835ead7b0d99310d503b816895c77c5b61967778299e4c9385697de5210259a97f664703bc905f gtksourceview-3.18.1.tar.xz"
diff --git a/testing/gumbo-parser/APKBUILD b/testing/gumbo-parser/APKBUILD
new file mode 100644
index 0000000000..4e87808a6e
--- /dev/null
+++ b/testing/gumbo-parser/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=gumbo-parser
+pkgver=0.10.1
+pkgrel=1
+pkgdesc="HTML5 parsing algorithm implemented as a pure C99 library"
+url="https://github.com/google/gumbo-parser"
+arch="all"
+license="Apache 2.0"
+depends=
+depends_dev=
+makedepends="$depends_dev autoconf automake libtool"
+install=
+subpackages="$pkgname-dev"
+source="$pkgname-$pkgver.tar.gz::https://github.com/google/$pkgname/archive/v$pkgver.tar.gz"
+
+
+_builddir="$srcdir"/$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ ./autogen.sh
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+
+ # remove the 2 lines below (and this) if there is no init.d script
+ # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+}
+
+md5sums="c6f75c9eda65e897c242f8958a34aed0 gumbo-parser-0.10.1.tar.gz"
+sha256sums="28463053d44a5dfbc4b77bcf49c8cee119338ffa636cc17fc3378421d714efad gumbo-parser-0.10.1.tar.gz"
+sha512sums="bb1fb55cd07076ab6a9f38dc14db50397dbdca9a04ace4895dfba8b8cbc09038a96e26070c09c75fa929ada2e815affe233c1e2ecd8afe2aba6201647cf277d1 gumbo-parser-0.10.1.tar.gz"
diff --git a/testing/harminv/APKBUILD b/testing/harminv/APKBUILD
new file mode 100644
index 0000000000..5b32894e0e
--- /dev/null
+++ b/testing/harminv/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Isaac Dunham <ibid.ag@gmail.com>
+# Maintainer:
+pkgname=harminv
+pkgver=1.4
+pkgrel=0
+pkgdesc="Free program to solve the problem of harmonic inversion"
+url="http://ab-initio.mit.edu/wiki/index.php/Harminv"
+arch="all"
+license="GPL"
+depends=""
+depends_dev="openblas-dev"
+makedepends="$depends_dev gfortran"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
+source="http://ab-initio.mit.edu/harminv/harminv-$pkgver.tar.gz"
+
+_builddir="$srcdir"/harminv-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-static --enable-shared \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="b95e24a9bc7e07d3d2202d1605e9e86f harminv-1.4.tar.gz"
+sha256sums="538e9b7766abcb0bf9db74cf47de5c4e8dfe8d724b047ea68550a5ee4c43b5de harminv-1.4.tar.gz"
+sha512sums="c3a5153bdd5ab4b160407bcd50f4843708c2f5924074fdfe88890e8770d6a874178a69e83cd615cdecce04d80a3a92133d435f7245c0a21962e1e18a14fb63f5 harminv-1.4.tar.gz"
diff --git a/testing/homer-api/APKBUILD b/testing/homer-api/APKBUILD
new file mode 100644
index 0000000000..a8dd520402
--- /dev/null
+++ b/testing/homer-api/APKBUILD
@@ -0,0 +1,59 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=homer-api
+pkgver=5.0.1
+pkgrel=1
+pkgdesc="HOMER API"
+url="https://github.com/sipcapture/homer-api"
+arch="noarch"
+license="GPL"
+depends="perl perl-dbi perl-dbd-mysql"
+depends_dev=
+makedepends="$depends_dev"
+install=
+subpackages="$pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/sipcapture/homer-api/archive/v$pkgver-api.tar.gz
+ homer-move-config2etc.patch
+ "
+
+
+_builddir="$srcdir"/$pkgname-$pkgver-api
+
+prepare() {
+ cd "$_builddir"
+ patch -p1 < ../homer-move-config2etc.patch
+}
+
+build() {
+ cd "$_builddir"
+ return 0
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/usr/share/webapps/homer-ui/api \
+ "$pkgdir"/etc/homer \
+ "$pkgdir"/etc/periodic/hourly \
+ "$pkgdir"/usr/share/homer-api/scripts \
+ "$pkgdir"/usr/share/homer-api/sql \
+ "$pkgdir"/usr/share/doc/homer-api
+ mv ./api/* "$pkgdir"/usr/share/webapps/homer-ui/api
+ mv "$pkgdir"/usr/share/webapps/homer-ui/api/preferences.php \
+ "$pkgdir"/etc/homer/preferences.php
+ mv "$pkgdir"/usr/share/webapps/homer-ui/api/configuration.php \
+ "$pkgdir"/etc/homer/configuration.php
+ install -D -m755 scripts/homer_rotate "$pkgdir"/etc/periodic/daily/homer_rotate
+ install -D -m755 scripts/homer_mysql_new_table.pl \
+ "$pkgdir"/usr/share/homer-api/scripts/homer_mysql_new_table.pl
+ install -D -m755 scripts/homer_mysql_partrotate_unixtimestamp.pl \
+ "$pkgdir"/usr/share/homer-api/scripts/homer_mysql_partrotate_unixtimestamp.pl
+ cp sql/* "$pkgdir"/usr/share/homer-api/sql
+ cp -R examples "$pkgdir"/usr/share/doc/homer-api
+}
+
+md5sums="c578e47b5c31ad723d4fa5a34c455f47 homer-api-5.0.1.tar.gz
+726d5c5d8b9ad1b36966a0f6d651f364 homer-move-config2etc.patch"
+sha256sums="092d691f480e5a9331d1e430f0d53328580ea5d7815583e898fa418db56847ad homer-api-5.0.1.tar.gz
+e0eebbbaa8457c74eed2465b8e2eb3354fb0c327f3385a969ee59aa9c5bc0c5e homer-move-config2etc.patch"
+sha512sums="5400df095e5148dfdb7a8bcbf251ed3fc6c6e6d7c38a1a839f5fb516345b0317f01c87f4879136416241d371debd4d1d0b2b521fadec9bf1d4f2f459865cb258 homer-api-5.0.1.tar.gz
+c8966b28da2536678bbec624926fa5e78b4ec3612186c5b7a1d5744b26521ef13e70f6df6ad747cb1627cfb8a7e6d7bfaed0ef03690b6a63663399ce5a6a0c8a homer-move-config2etc.patch"
diff --git a/testing/homer-api/homer-move-config2etc.patch b/testing/homer-api/homer-move-config2etc.patch
new file mode 100644
index 0000000000..2fe0c493f0
--- /dev/null
+++ b/testing/homer-api/homer-move-config2etc.patch
@@ -0,0 +1,33 @@
+--- a/api/configuration.php
++++ b/api/configuration.php
+@@ -25,7 +25,7 @@
+
+ /* INCLUDE preferences */
+
+-include_once("preferences.php");
++include_once("/etc/homer/preferences.php");
+
+ endif;
+
+--- a/api/index.php
++++ b/api/index.php
+@@ -30,7 +30,7 @@
+ define('ROOT', realpath(dirname(__FILE__) . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR));
+ define('_HOMEREXEC', "1");
+
+-require_once("configuration.php");
++require_once("/etc/homer/configuration.php");
+
+ date_default_timezone_set(HOMER_TIMEZONE);
+ ini_set('date.timezone', HOMER_TIMEZONE);
+--- a/scripts/homer_rotate
++++ b/scripts/homer_rotate
+@@ -5,7 +5,7 @@
+ # Set correct bin path if we are running as a cron job
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+
+-bin_dir=`dirname $0`
++bin_dir=/usr/share/homer-api/scripts
+ new_table="$bin_dir/homer_mysql_new_table.pl"
+ programm="$bin_dir/homer_mysql_partrotate_unixtimestamp.pl"
+
diff --git a/testing/kbuild/0001-define-ALLPERMS-is-missing.patch b/testing/kbuild/0001-define-ALLPERMS-is-missing.patch
new file mode 100644
index 0000000000..ffe1b757e5
--- /dev/null
+++ b/testing/kbuild/0001-define-ALLPERMS-is-missing.patch
@@ -0,0 +1,43 @@
+From ad40844b8d4ccd3fec48fd1db3d165926d247398 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Thu, 2 Jan 2014 08:55:33 +0000
+Subject: [PATCH] define ALLPERMS is missing
+
+---
+ src/kmk/kmkbuiltin/chmod.c | 4 ++++
+ src/kmk/kmkbuiltin/install.c | 4 ++++
+ 2 files changed, 8 insertions(+)
+
+diff --git a/src/kmk/kmkbuiltin/chmod.c b/src/kmk/kmkbuiltin/chmod.c
+index 792a286..8edce38 100644
+--- a/src/kmk/kmkbuiltin/chmod.c
++++ b/src/kmk/kmkbuiltin/chmod.c
+@@ -66,6 +66,10 @@ static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
+ #include "getopt.h"
+ #include "kmkbuiltin.h"
+
++#ifndef ALLPERMS
++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
++#endif
++
+ extern void * bsd_setmode(const char *p);
+ extern mode_t bsd_getmode(const void *bbox, mode_t omode);
+ extern void bsd_strmode(mode_t mode, char *p);
+diff --git a/src/kmk/kmkbuiltin/install.c b/src/kmk/kmkbuiltin/install.c
+index 13bec72..08d8ffe 100644
+--- a/src/kmk/kmkbuiltin/install.c
++++ b/src/kmk/kmkbuiltin/install.c
+@@ -127,6 +127,10 @@ extern mode_t bsd_getmode(const void *bbox, mode_t omode);
+ # define IS_SLASH(ch) ((ch) == '/')
+ #endif
+
++#ifndef ALLPERMS
++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
++#endif
++
+ static gid_t gid;
+ static uid_t uid;
+ static int dobackup, docompare, dodir, dopreserve, dostrip, nommap, safecopy, verbose, mode_given;
+--
+1.8.5.2
+
diff --git a/testing/kbuild/0001-testing-kbuild-upgrade-to-0.1.9998_pre20131130-and-f.patch b/testing/kbuild/0001-testing-kbuild-upgrade-to-0.1.9998_pre20131130-and-f.patch
new file mode 100644
index 0000000000..d78f949e71
--- /dev/null
+++ b/testing/kbuild/0001-testing-kbuild-upgrade-to-0.1.9998_pre20131130-and-f.patch
@@ -0,0 +1,357 @@
+From 920e0a4d6654509464c832543bf607c3ed8fca0c Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Thu, 2 Jan 2014 10:40:57 +0000
+Subject: [PATCH] testing/kbuild: upgrade to 0.1.9998_pre20131130 and fix build
+ on musl
+
+---
+ .../kbuild/0001-define-ALLPERMS-is-missing.patch | 43 ++++++++++++++++++++
+ testing/kbuild/APKBUILD | 46 ++++++++++++++++++----
+ testing/kbuild/allperms.patch | 30 ++++++++++++++
+ testing/kbuild/glob.patch | 19 +++++++++
+ testing/kbuild/kbuild-0.1.5_p2-qa.patch | 26 ------------
+ testing/kbuild/kobjcache.patch | 10 +++++
+ testing/kbuild/obstack.patch | 42 ++++++++++++++++++++
+ testing/kbuild/strlcpy.patch | 15 +------
+ testing/kbuild/sys-types.patch | 14 +++++++
+ 9 files changed, 198 insertions(+), 47 deletions(-)
+ create mode 100644 testing/kbuild/0001-define-ALLPERMS-is-missing.patch
+ create mode 100644 testing/kbuild/allperms.patch
+ create mode 100644 testing/kbuild/glob.patch
+ delete mode 100644 testing/kbuild/kbuild-0.1.5_p2-qa.patch
+ create mode 100644 testing/kbuild/kobjcache.patch
+ create mode 100644 testing/kbuild/obstack.patch
+ create mode 100644 testing/kbuild/sys-types.patch
+
+diff --git a/testing/kbuild/0001-define-ALLPERMS-is-missing.patch b/testing/kbuild/0001-define-ALLPERMS-is-missing.patch
+new file mode 100644
+index 0000000..ffe1b75
+--- /dev/null
++++ b/testing/kbuild/0001-define-ALLPERMS-is-missing.patch
+@@ -0,0 +1,43 @@
++From ad40844b8d4ccd3fec48fd1db3d165926d247398 Mon Sep 17 00:00:00 2001
++From: Natanael Copa <ncopa@alpinelinux.org>
++Date: Thu, 2 Jan 2014 08:55:33 +0000
++Subject: [PATCH] define ALLPERMS is missing
++
++---
++ src/kmk/kmkbuiltin/chmod.c | 4 ++++
++ src/kmk/kmkbuiltin/install.c | 4 ++++
++ 2 files changed, 8 insertions(+)
++
++diff --git a/src/kmk/kmkbuiltin/chmod.c b/src/kmk/kmkbuiltin/chmod.c
++index 792a286..8edce38 100644
++--- a/src/kmk/kmkbuiltin/chmod.c
+++++ b/src/kmk/kmkbuiltin/chmod.c
++@@ -66,6 +66,10 @@ static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
++ #include "getopt.h"
++ #include "kmkbuiltin.h"
++
+++#ifndef ALLPERMS
+++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
+++#endif
+++
++ extern void * bsd_setmode(const char *p);
++ extern mode_t bsd_getmode(const void *bbox, mode_t omode);
++ extern void bsd_strmode(mode_t mode, char *p);
++diff --git a/src/kmk/kmkbuiltin/install.c b/src/kmk/kmkbuiltin/install.c
++index 13bec72..08d8ffe 100644
++--- a/src/kmk/kmkbuiltin/install.c
+++++ b/src/kmk/kmkbuiltin/install.c
++@@ -127,6 +127,10 @@ extern mode_t bsd_getmode(const void *bbox, mode_t omode);
++ # define IS_SLASH(ch) ((ch) == '/')
++ #endif
++
+++#ifndef ALLPERMS
+++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
+++#endif
+++
++ static gid_t gid;
++ static uid_t uid;
++ static int dobackup, docompare, dodir, dopreserve, dostrip, nommap, safecopy, verbose, mode_given;
++--
++1.8.5.2
++
+diff --git a/testing/kbuild/APKBUILD b/testing/kbuild/APKBUILD
+index ac1fc45..ed6e80f 100644
+--- a/testing/kbuild/APKBUILD
++++ b/testing/kbuild/APKBUILD
+@@ -1,7 +1,7 @@
+ # Contributor: Natanael Copa <ncopa@alpinelinux.org>
+ # Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+ pkgname=kbuild
+-pkgver=0.1.9998_pre20120806
++pkgver=0.1.9998_pre20131130
+ _ver=${pkgver/_/-}
+ pkgrel=1
+ pkgdesc="A makefile framework for writing simple makefiles for complex tasks"
+@@ -14,13 +14,17 @@ makedepends="autoconf automake flex bison"
+ install=""
+ subpackages="$pkgname-doc"
+ source="http://dev.gentoo.org/~polynomial-c/kBuild-${_ver}-src.tar.xz
+- kbuild-0.1.5_p2-qa.patch
+ lchmod.patch
+ strlcpy.patch
+ underlinking.patch
+ sys_siglist.patch
+ kbuild-0.1.9998_pre20110817-gcc-4.7.patch
+- uclibc.patch"
++ 0001-define-ALLPERMS-is-missing.patch
++ sys-types.patch
++ uclibc.patch
++ kobjcache.patch
++ obstack.patch
++ glob.patch"
+
+ _builddir="$srcdir"/kBuild-$_ver
+ prepare() {
+@@ -60,11 +64,39 @@ package() {
+ || return 1
+ }
+
+-md5sums="520d65bd2356c26d1b9bbb25fd7d70ce kBuild-0.1.9998-pre20120806-src.tar.xz
+-79d4d445b28f0c50f2a7a8ca12bbed4b kbuild-0.1.5_p2-qa.patch
++md5sums="a9fad7d9c26dba44c2c1ad3d93d49372 kBuild-0.1.9998-pre20131130-src.tar.xz
+ b3dd26cc185c96658d9b554eef2f811c lchmod.patch
+-90cae3b53b4ec6fc5f1c336922083df0 strlcpy.patch
++9b101e058900afb9986689076a214d54 strlcpy.patch
+ ca09174d7c885fdea1e3c2dc580d80b3 underlinking.patch
+ 52c3450a3e2645f57871b0141c465776 sys_siglist.patch
+ 2fdb2fb96c48371b2a15785926c9144b kbuild-0.1.9998_pre20110817-gcc-4.7.patch
+-b3c2d0e6902f1285c09d81f74e573c4f uclibc.patch"
++4fda881d60b2c80502ad4321d18161a4 0001-define-ALLPERMS-is-missing.patch
++a4ad5a3bf960394856b9fafecfe921d4 sys-types.patch
++b3c2d0e6902f1285c09d81f74e573c4f uclibc.patch
++e92680df9641e25dd4a58e6a2733dbea kobjcache.patch
++4d8f14019970a974b6fde15fd4b991d9 obstack.patch
++b0c55468f3d4c0800687d16c37bf111f glob.patch"
++sha256sums="def0a44cc0a91b6aa8a80f73ace0cfc315f298ba3e0d3d81fe52834091b68586 kBuild-0.1.9998-pre20131130-src.tar.xz
++79909f11e631757140c5095af1347c9f48c065f25cdd875c555477529ca6a693 lchmod.patch
++132305af7aa1cc94f4920ffe97775efcb6f0495f165035051298984d9f5ca4c0 strlcpy.patch
++1c99c0579af3d9cf4148b7b61d98b92ff86eaec441b6630754007ae3c3b5a2cc underlinking.patch
++8adb0ffa45a0b49737bbde54b54405a7708a2281d608d8f713437fce77e11d07 sys_siglist.patch
++420caeee42dca3fa9a474faa3ae6e34a884d26792ab3b6567a3b9ecf678a90e7 kbuild-0.1.9998_pre20110817-gcc-4.7.patch
++c308a64bddc997826ee83dc8f165ad5072368cb2c837a97308e69238a0390d7e 0001-define-ALLPERMS-is-missing.patch
++21ec6669485f97e0af37f3120bea2f688ed96df9c59a89cf1043645464db7a46 sys-types.patch
++1f581e0cf8fefae174c8aeb1b279e956fc7712146bf4a58451f0b318795309e9 uclibc.patch
++1f9788d65c597346f64cd2513875ed65d4ac199ce879dc313ce2970f40013f77 kobjcache.patch
++7093e35ca03c4b82961157225c5509c42b9996128b31b5ec32154a72c154848e obstack.patch
++e13e0f02132824e07b3895666ab1952672a85a246e68e854d714dd8acdc0d445 glob.patch"
++sha512sums="66f418c0e052389d2b5cfc4d46bc8598ceaeded369151047e455e921bef494ec42099cdc368d24b572eacd809bb7c124d07e0fab54788af01664b72f571fb047 kBuild-0.1.9998-pre20131130-src.tar.xz
++3ab991b13a122e82125392d01e27ad8c06f2b5f5e0c5bb2fa024fdcf16a65f5f460c14222d84d50b31a2ad4040c89871ee2a47f885eca329c15bb9abb3f8f5df lchmod.patch
++fbab0dc51f4e2d14b020a6b63820a26eeee884ac9cfd5b59a6afc6243ffb7679c775ed8529f6161917bf3cc5e2a651c959706cdc404a4a79c1b29cc9f3a614a5 strlcpy.patch
++839c12659ae81e99c0c2f35f045ef8651c2d30ddb391ae76995ded6df19f4ca5ae728da96c16b7aab08cdf447030de645455751122a390755e0ff46c03cb23d6 underlinking.patch
++2e0cb32b6e296d92c4c092f798e83eee1fe49753826426fd957f9977149b64487547f71bde64b654a3f3a0511dfa9ac1c533ad0cd469c7bdd7e0acdfa3c2e3ac sys_siglist.patch
++7a0618e9dbd18ba10f1afd9c2a47f6efb136143a86008d2562eb2ff704f289b7150bbc10f2e3c57341b485252366ff46d49bd70c24cadba45f09496333ceaa76 kbuild-0.1.9998_pre20110817-gcc-4.7.patch
++4bdcae4362ff0ac6b401c65120f54e395a41b98d4bdea796a1e85405c3444853b94626c2be6d9d703ffd904fb89ea0a14d1e847a67eb56d81faf48246220e166 0001-define-ALLPERMS-is-missing.patch
++58ae3ec4a1535fddd4af67803c081c9ca4cd66244ea2a7ddfbf59eb5b849421377116376d893d5e643a15413b902463affa51153afeb2d2217bac135122b66a5 sys-types.patch
++41d568b05af4d9f650e736cafc4fd4285cc592726de1ee3f599b26cf2277a9436477ff512b99c2dbe1abc3d21cb9d4f24a0568aa71418e2114e294171cc008f0 uclibc.patch
++7afcc78589ee66c60dd7a73819b4776531a4fc0f73c8a8824f4b53967f7c903095206455d2b113288ad4cf337e67c0dc82cd679b994096c5d9270f83d55689ad kobjcache.patch
++dae18964bb4c7f46e277b147bae53cabb03d5bbd6199ec5a8deeaf6a6d12804b281ea6debf7eda44fee3bff12d6097d7b46385617a446e2a2a7570d83d03eb8e obstack.patch
++f843176d1ed988965947f0243b31b02431c3467249576fbac64cb561d7d64da71bdcadbd4eb4d36ed5f4483c1ac146c57f7f1f60bdbabaea2c0cd2dc80ed0446 glob.patch"
+diff --git a/testing/kbuild/allperms.patch b/testing/kbuild/allperms.patch
+new file mode 100644
+index 0000000..2e8bfbf
+--- /dev/null
++++ b/testing/kbuild/allperms.patch
+@@ -0,0 +1,30 @@
++diff --git a/src/kmk/kmkbuiltin/chmod.c b/src/kmk/kmkbuiltin/chmod.c
++index 792a286..8edce38 100644
++--- a/src/kmk/kmkbuiltin/chmod.c
+++++ b/src/kmk/kmkbuiltin/chmod.c
++@@ -66,6 +66,10 @@ static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
++ #include "getopt.h"
++ #include "kmkbuiltin.h"
++
+++#ifndef ALLPERMS
+++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
+++#endif
+++
++ extern void * bsd_setmode(const char *p);
++ extern mode_t bsd_getmode(const void *bbox, mode_t omode);
++ extern void bsd_strmode(mode_t mode, char *p);
++diff --git a/src/kmk/kmkbuiltin/install.c b/src/kmk/kmkbuiltin/install.c
++index 13bec72..08d8ffe 100644
++--- a/src/kmk/kmkbuiltin/install.c
+++++ b/src/kmk/kmkbuiltin/install.c
++@@ -127,6 +127,10 @@ extern mode_t bsd_getmode(const void *bbox, mode_t omode);
++ # define IS_SLASH(ch) ((ch) == '/')
++ #endif
++
+++#ifndef ALLPERMS
+++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
+++#endif
+++
++ static gid_t gid;
++ static uid_t uid;
++ static int dobackup, docompare, dodir, dopreserve, dostrip, nommap, safecopy, verbose, mode_given;
+diff --git a/testing/kbuild/glob.patch b/testing/kbuild/glob.patch
+new file mode 100644
+index 0000000..b17f012
+--- /dev/null
++++ b/testing/kbuild/glob.patch
+@@ -0,0 +1,19 @@
++--- ./src/kmk/Makefile.kmk.orig
+++++ ./src/kmk/Makefile.kmk
++@@ -60,6 +60,7 @@
++ TEMPLATE_BIN-KMK_INCS.haiku = glob
++ TEMPLATE_BIN-KMK_INCS.openbsd = glob
++ TEMPLATE_BIN-KMK_INCS.solaris = glob
+++TEMPLATE_BIN-KMK_INCS.linux = glob
++ TEMPLATE_BIN-KMK_LIBS = $(TEMPLATE_BIN-THREADED_LIBS) $(kmkmissing_1_TARGET) $(LIB_KUTIL)
++ ifdef ELECTRIC_HEAP # for electric heap (see electric.c) - windows only.
++ ifeq ($(KBUILD_TARGET),win)
++@@ -108,7 +109,7 @@
++ glob/fnmatch.c
++
++ kmkmissing_SOURCES.linux += \
++- kmkbuiltin/strlcpy.c
+++ glob/glob.c
++
++ kmkmissing_SOURCES.openbsd = \
++ kmkbuiltin/openbsd.c \
+diff --git a/testing/kbuild/kbuild-0.1.5_p2-qa.patch b/testing/kbuild/kbuild-0.1.5_p2-qa.patch
+deleted file mode 100644
+index 706c3a7..0000000
+--- a/testing/kbuild/kbuild-0.1.5_p2-qa.patch
++++ /dev/null
+@@ -1,26 +0,0 @@
+-* warning: implicit declaration of function ‘unlink’
+-* warning: too few arguments for format
+---- a/src/sed/lib/utils.c
+-+++ b/src/sed/lib/utils.c
+-@@ -35,6 +35,10 @@
+- # include <stdlib.h>
+- #endif /* HAVE_STDLIB_H */
+-
+-+#ifdef HAVE_UNISTD_H
+-+# include <unistd.h>
+-+#endif /* HAVE_UNISTD_H */
+-+
+- #include "utils.h"
+-
+- const char *myname;
+---- a/src/kmk/kmkbuiltin/printf.c
+-+++ b/src/kmk/kmkbuiltin/printf.c
+-@@ -206,7 +206,7 @@
+-
+- (void)funcname;
+- if (rc != 0)
+-- fatal (NILF, _("$(%s): failure rc=%d\n"), rc);
+-+ fatal (NILF, _("$(%s): failure rc=%d\n"), funcname, rc);
+- return o;
+- }
+- #endif
+diff --git a/testing/kbuild/kobjcache.patch b/testing/kbuild/kobjcache.patch
+new file mode 100644
+index 0000000..4fb4e02
+--- /dev/null
++++ b/testing/kbuild/kobjcache.patch
+@@ -0,0 +1,10 @@
++--- ./src/kObjCache/kObjCache.c.orig
+++++ ./src/kObjCache/kObjCache.c
++@@ -38,6 +38,7 @@
++ #include <errno.h>
++ #include <assert.h>
++ #include <sys/stat.h>
+++#include <sys/file.h>
++ #include <fcntl.h>
++ #include <limits.h>
++ #include <ctype.h>
+diff --git a/testing/kbuild/obstack.patch b/testing/kbuild/obstack.patch
+new file mode 100644
+index 0000000..8301a42
+--- /dev/null
++++ b/testing/kbuild/obstack.patch
+@@ -0,0 +1,42 @@
++--- ./src/sed/Makefile.kmk.orig
+++++ ./src/sed/Makefile.kmk
++@@ -56,36 +56,30 @@
++ sed/mbcs.c \
++ lib/getopt1.c \
++ lib/getopt.c \
+++ lib/obstack.c \
++ lib/utils.c
++ kmk_sed_SOURCES.darwin = \
++ lib/strverscmp.c \
++- lib/obstack.c \
++ lib/getline.c
++ kmk_sed_SOURCES.dragonfly = \
++ lib/strverscmp.c \
++- lib/obstack.c \
++ lib/getline.c
++ kmk_sed_SOURCES.freebsd = \
++ lib/strverscmp.c \
++- lib/obstack.c \
++ lib/getline.c
++ kmk_sed_SOURCES.haiku = \
++- lib/strverscmp.c \
++- lib/obstack.c
+++ lib/strverscmp.c
++ kmk_sed_SOURCES.openbsd = \
++ lib/strverscmp.c \
++- lib/obstack.c \
++ lib/getline.c
++ kmk_sed_SOURCES.solaris = \
++- lib/strverscmp.c \
++- lib/obstack.c
+++ lib/strverscmp.c
++ ifdef KBUILD_SOLARIS_10
++ kmk_sed_SOURCES.solaris += \
++ lib/getline.c
++ endif
++ kmk_sed_SOURCES.win = \
++ lib/strverscmp.c \
++- lib/obstack.c \
++ lib/mkstemp.c \
++ lib/getline.c \
++ ../lib/startuphacks-win.c
+diff --git a/testing/kbuild/strlcpy.patch b/testing/kbuild/strlcpy.patch
+index 42b25bd..d0b3a04 100644
+--- a/testing/kbuild/strlcpy.patch
++++ b/testing/kbuild/strlcpy.patch
+@@ -7,20 +7,7 @@ index 44b76ab..85fec01 100644
+ #include "kbuild_protection.h"
+
+ -#if defined(_MSC_VER) || defined(__gnu_linux__) || defined(__linux__)
+-+#if defined(_MSC_VER) || defined(__gnu_linux__) || defined(__linux__) && !defined(__UCLIBC__)
+++#if defined(_MSC_VER) || defined(__gnu_linux__) && !defined(__UCLIBC__)
+ extern char *strlcpy(char *, const char *, size_t);
+ #endif
+
+-diff --git a/src/kmk/Makefile.kmk b/src/kmk/Makefile.kmk
+-index 12b9697..db1deb2 100644
+---- a/src/kmk/Makefile.kmk
+-+++ b/src/kmk/Makefile.kmk
+-@@ -101,7 +101,7 @@ kmkmissing_SOURCES.freebsd = \
+- glob/fnmatch.c
+-
+- kmkmissing_SOURCES.linux += \
+-- kmkbuiltin/strlcpy.c
+-+ getloadavg.c
+-
+- kmkmissing_SOURCES.solaris = \
+- kmkbuiltin/strlcpy.c \
+diff --git a/testing/kbuild/sys-types.patch b/testing/kbuild/sys-types.patch
+new file mode 100644
+index 0000000..dccb48a
+--- /dev/null
++++ b/testing/kbuild/sys-types.patch
+@@ -0,0 +1,14 @@
++diff --git a/src/kmk/kmkbuiltin/ftsfake.h b/src/kmk/kmkbuiltin/ftsfake.h
++index 2518d30..5410256 100644
++--- a/src/kmk/kmkbuiltin/ftsfake.h
+++++ b/src/kmk/kmkbuiltin/ftsfake.h
++@@ -38,6 +38,9 @@
++ # include "kmkbuiltin/mscfakes.h"
++ #endif
++
+++/* for u_int */
+++#include <sys/types.h>
+++
++ typedef struct {
++ struct _ftsent *fts_cur; /* current node */
++ struct _ftsent *fts_child; /* linked list of children */
+--
+1.8.5.2
+
diff --git a/testing/kbuild/APKBUILD b/testing/kbuild/APKBUILD
new file mode 100644
index 0000000000..ead0e9af57
--- /dev/null
+++ b/testing/kbuild/APKBUILD
@@ -0,0 +1,102 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=kbuild
+pkgver=0.1.9998_pre20131130
+_ver=${pkgver/_/-}
+pkgrel=1
+pkgdesc="A makefile framework for writing simple makefiles for complex tasks"
+url="http://svn.netlabs.org/kbuild/wiki"
+arch="x86 x86_64"
+license="GPL3"
+depends=""
+depends_dev=""
+makedepends="autoconf automake flex bison"
+install=""
+subpackages="$pkgname-doc"
+source="http://dev.gentoo.org/~polynomial-c/kBuild-${_ver}-src.tar.xz
+ lchmod.patch
+ strlcpy.patch
+ underlinking.patch
+ sys_siglist.patch
+ kbuild-0.1.9998_pre20110817-gcc-4.7.patch
+ 0001-define-ALLPERMS-is-missing.patch
+ sys-types.patch
+ uclibc.patch
+ kobjcache.patch
+ obstack.patch
+ glob.patch"
+
+_builddir="$srcdir"/kBuild-$_ver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ cd "$_builddir"/src/kmk
+ aclocal -I config && autoheader && autoconf && automake --add-missing \
+ || return 1
+ cd "$_builddir"/src/sed
+ aclocal -I config && autoheader && autoconf && automake --add-missing \
+ || return 1
+
+ # the bootstrap process will create a symlink to the system shell,
+ # which happens to be (/bin/sh) a symlink to /bin/busybox
+ # and busybox will get confused since there are no applet named
+ # kmk_ash.
+ echo '#!/bin/sh' >"$srcdir"/sh
+ echo 'exec /bin/busybox sh "$@"' >> "$srcdir"/sh
+ chmod +x "$srcdir"/sh
+ sed -i -e "s:/bin/sh:$srcdir/sh:" "$_builddir"/bootstrap.gmk
+}
+
+build() {
+ cd "$_builddir"
+ kBuild/env.sh --full make -f bootstrap.gmk AUTORECONF=true \
+ || return 1
+}
+
+package() {
+ cd "$_builddir"
+ kBuild/env.sh kmk NIX_INSTALL_DIR=/usr PATH_INS="$pkgdir" install \
+ || return 1
+}
+
+md5sums="a9fad7d9c26dba44c2c1ad3d93d49372 kBuild-0.1.9998-pre20131130-src.tar.xz
+b3dd26cc185c96658d9b554eef2f811c lchmod.patch
+9b101e058900afb9986689076a214d54 strlcpy.patch
+ca09174d7c885fdea1e3c2dc580d80b3 underlinking.patch
+52c3450a3e2645f57871b0141c465776 sys_siglist.patch
+2fdb2fb96c48371b2a15785926c9144b kbuild-0.1.9998_pre20110817-gcc-4.7.patch
+4fda881d60b2c80502ad4321d18161a4 0001-define-ALLPERMS-is-missing.patch
+a4ad5a3bf960394856b9fafecfe921d4 sys-types.patch
+b3c2d0e6902f1285c09d81f74e573c4f uclibc.patch
+e92680df9641e25dd4a58e6a2733dbea kobjcache.patch
+4d8f14019970a974b6fde15fd4b991d9 obstack.patch
+db70c6fd949946029a6c95c0f7d565db glob.patch"
+sha256sums="def0a44cc0a91b6aa8a80f73ace0cfc315f298ba3e0d3d81fe52834091b68586 kBuild-0.1.9998-pre20131130-src.tar.xz
+79909f11e631757140c5095af1347c9f48c065f25cdd875c555477529ca6a693 lchmod.patch
+132305af7aa1cc94f4920ffe97775efcb6f0495f165035051298984d9f5ca4c0 strlcpy.patch
+1c99c0579af3d9cf4148b7b61d98b92ff86eaec441b6630754007ae3c3b5a2cc underlinking.patch
+8adb0ffa45a0b49737bbde54b54405a7708a2281d608d8f713437fce77e11d07 sys_siglist.patch
+420caeee42dca3fa9a474faa3ae6e34a884d26792ab3b6567a3b9ecf678a90e7 kbuild-0.1.9998_pre20110817-gcc-4.7.patch
+c308a64bddc997826ee83dc8f165ad5072368cb2c837a97308e69238a0390d7e 0001-define-ALLPERMS-is-missing.patch
+21ec6669485f97e0af37f3120bea2f688ed96df9c59a89cf1043645464db7a46 sys-types.patch
+1f581e0cf8fefae174c8aeb1b279e956fc7712146bf4a58451f0b318795309e9 uclibc.patch
+1f9788d65c597346f64cd2513875ed65d4ac199ce879dc313ce2970f40013f77 kobjcache.patch
+7093e35ca03c4b82961157225c5509c42b9996128b31b5ec32154a72c154848e obstack.patch
+93a1cd4ebfdd22179299bc9f029a1e7800ff842a5775555c4fe1a1f322f910c0 glob.patch"
+sha512sums="66f418c0e052389d2b5cfc4d46bc8598ceaeded369151047e455e921bef494ec42099cdc368d24b572eacd809bb7c124d07e0fab54788af01664b72f571fb047 kBuild-0.1.9998-pre20131130-src.tar.xz
+3ab991b13a122e82125392d01e27ad8c06f2b5f5e0c5bb2fa024fdcf16a65f5f460c14222d84d50b31a2ad4040c89871ee2a47f885eca329c15bb9abb3f8f5df lchmod.patch
+fbab0dc51f4e2d14b020a6b63820a26eeee884ac9cfd5b59a6afc6243ffb7679c775ed8529f6161917bf3cc5e2a651c959706cdc404a4a79c1b29cc9f3a614a5 strlcpy.patch
+839c12659ae81e99c0c2f35f045ef8651c2d30ddb391ae76995ded6df19f4ca5ae728da96c16b7aab08cdf447030de645455751122a390755e0ff46c03cb23d6 underlinking.patch
+2e0cb32b6e296d92c4c092f798e83eee1fe49753826426fd957f9977149b64487547f71bde64b654a3f3a0511dfa9ac1c533ad0cd469c7bdd7e0acdfa3c2e3ac sys_siglist.patch
+7a0618e9dbd18ba10f1afd9c2a47f6efb136143a86008d2562eb2ff704f289b7150bbc10f2e3c57341b485252366ff46d49bd70c24cadba45f09496333ceaa76 kbuild-0.1.9998_pre20110817-gcc-4.7.patch
+4bdcae4362ff0ac6b401c65120f54e395a41b98d4bdea796a1e85405c3444853b94626c2be6d9d703ffd904fb89ea0a14d1e847a67eb56d81faf48246220e166 0001-define-ALLPERMS-is-missing.patch
+58ae3ec4a1535fddd4af67803c081c9ca4cd66244ea2a7ddfbf59eb5b849421377116376d893d5e643a15413b902463affa51153afeb2d2217bac135122b66a5 sys-types.patch
+41d568b05af4d9f650e736cafc4fd4285cc592726de1ee3f599b26cf2277a9436477ff512b99c2dbe1abc3d21cb9d4f24a0568aa71418e2114e294171cc008f0 uclibc.patch
+7afcc78589ee66c60dd7a73819b4776531a4fc0f73c8a8824f4b53967f7c903095206455d2b113288ad4cf337e67c0dc82cd679b994096c5d9270f83d55689ad kobjcache.patch
+dae18964bb4c7f46e277b147bae53cabb03d5bbd6199ec5a8deeaf6a6d12804b281ea6debf7eda44fee3bff12d6097d7b46385617a446e2a2a7570d83d03eb8e obstack.patch
+006a65b7c4fe968ea44362804888a0214ff696a2ce9dfbb3e3c9bd5a595bd91b018919e35bc0a2f587677f7606acab57c6f7531bdf7f122fc08c8c99b04fddab glob.patch"
diff --git a/testing/kbuild/allperms.patch b/testing/kbuild/allperms.patch
new file mode 100644
index 0000000000..2e8bfbfb45
--- /dev/null
+++ b/testing/kbuild/allperms.patch
@@ -0,0 +1,30 @@
+diff --git a/src/kmk/kmkbuiltin/chmod.c b/src/kmk/kmkbuiltin/chmod.c
+index 792a286..8edce38 100644
+--- a/src/kmk/kmkbuiltin/chmod.c
++++ b/src/kmk/kmkbuiltin/chmod.c
+@@ -66,6 +66,10 @@ static char sccsid[] = "@(#)chmod.c 8.8 (Berkeley) 4/1/94";
+ #include "getopt.h"
+ #include "kmkbuiltin.h"
+
++#ifndef ALLPERMS
++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
++#endif
++
+ extern void * bsd_setmode(const char *p);
+ extern mode_t bsd_getmode(const void *bbox, mode_t omode);
+ extern void bsd_strmode(mode_t mode, char *p);
+diff --git a/src/kmk/kmkbuiltin/install.c b/src/kmk/kmkbuiltin/install.c
+index 13bec72..08d8ffe 100644
+--- a/src/kmk/kmkbuiltin/install.c
++++ b/src/kmk/kmkbuiltin/install.c
+@@ -127,6 +127,10 @@ extern mode_t bsd_getmode(const void *bbox, mode_t omode);
+ # define IS_SLASH(ch) ((ch) == '/')
+ #endif
+
++#ifndef ALLPERMS
++# define ALLPERMS (S_ISUID|S_ISGID|S_ISVTX|S_IRWXU|S_IRWXG|S_IRWXO)/* 07777 */
++#endif
++
+ static gid_t gid;
+ static uid_t uid;
+ static int dobackup, docompare, dodir, dopreserve, dostrip, nommap, safecopy, verbose, mode_given;
diff --git a/testing/kbuild/getloadavg.patch b/testing/kbuild/getloadavg.patch
new file mode 100644
index 0000000000..e145ed0e5a
--- /dev/null
+++ b/testing/kbuild/getloadavg.patch
@@ -0,0 +1,32 @@
+diff --git a/src/kmk/job.c b/src/kmk/job.c
+index 6d14300..16731fc 100644
+--- a/src/kmk/job.c
++++ b/src/kmk/job.c
+@@ -240,6 +240,27 @@ unsigned long job_counter = 0;
+
+ unsigned int jobserver_tokens = 0;
+
++#ifdef __UCLIBC__
++int getloadavg(double list[], int nelem)
++{
++ FILE *LOADAVG;
++ double avg[3] = { 0.0, 0.0, 0.0 };
++ int i, res = -1;
++
++ if ((LOADAVG = fopen("/proc/loadavg", "r"))) {
++ fscanf(LOADAVG, "%lf %lf %lf", &avg[0], &avg[1], &avg[2]);
++ res = 0;
++ fclose(LOADAVG);
++ }
++
++ for (i = 0; (i < nelem) && (i < 3); i++) {
++ list[i] = avg[i];
++ }
++
++ return res;
++}
++#endif
++
+ #ifdef WINDOWS32
+ /*
+ * The macro which references this function is defined in make.h.
diff --git a/testing/kbuild/glob.patch b/testing/kbuild/glob.patch
new file mode 100644
index 0000000000..57b4dafadc
--- /dev/null
+++ b/testing/kbuild/glob.patch
@@ -0,0 +1,19 @@
+--- ./src/kmk/Makefile.kmk.orig
++++ ./src/kmk/Makefile.kmk
+@@ -60,6 +60,7 @@
+ TEMPLATE_BIN-KMK_INCS.haiku = glob
+ TEMPLATE_BIN-KMK_INCS.openbsd = glob
+ TEMPLATE_BIN-KMK_INCS.solaris = glob
++TEMPLATE_BIN-KMK_INCS.linux = glob
+ TEMPLATE_BIN-KMK_LIBS = $(TEMPLATE_BIN-THREADED_LIBS) $(kmkmissing_1_TARGET) $(LIB_KUTIL)
+ ifdef ELECTRIC_HEAP # for electric heap (see electric.c) - windows only.
+ ifeq ($(KBUILD_TARGET),win)
+@@ -108,7 +109,7 @@
+ glob/fnmatch.c
+
+ kmkmissing_SOURCES.linux += \
+- kmkbuiltin/strlcpy.c
++ glob/glob.c getloadavg.c
+
+ kmkmissing_SOURCES.openbsd = \
+ kmkbuiltin/openbsd.c \
diff --git a/testing/kbuild/kbuild-0.1.9998_pre20110817-gcc-4.7.patch b/testing/kbuild/kbuild-0.1.9998_pre20110817-gcc-4.7.patch
new file mode 100644
index 0000000000..435b3f57fb
--- /dev/null
+++ b/testing/kbuild/kbuild-0.1.9998_pre20110817-gcc-4.7.patch
@@ -0,0 +1,12 @@
+diff -urN kBuild-0.1.9998-pre20110817-orig/src/sed/lib/regex_internal.c kBuild-0.1.9998-pre20110817/src/sed/lib/regex_internal.c
+--- kBuild-0.1.9998-pre20110817-orig/src/sed/lib/regex_internal.c 2011-08-17 14:28:42.000000000 -0700
++++ kBuild-0.1.9998-pre20110817/src/sed/lib/regex_internal.c 2012-06-16 13:55:05.341176965 -0700
+@@ -781,7 +781,7 @@
+ }
+
+ static unsigned char
+-internal_function __attribute ((pure))
++internal_function
+ re_string_fetch_byte_case (re_string_t *pstr)
+ {
+ if (BE (!pstr->mbs_allocated, 1))
diff --git a/testing/kbuild/kobjcache.patch b/testing/kbuild/kobjcache.patch
new file mode 100644
index 0000000000..4fb4e02550
--- /dev/null
+++ b/testing/kbuild/kobjcache.patch
@@ -0,0 +1,10 @@
+--- ./src/kObjCache/kObjCache.c.orig
++++ ./src/kObjCache/kObjCache.c
+@@ -38,6 +38,7 @@
+ #include <errno.h>
+ #include <assert.h>
+ #include <sys/stat.h>
++#include <sys/file.h>
+ #include <fcntl.h>
+ #include <limits.h>
+ #include <ctype.h>
diff --git a/testing/kbuild/lchmod.patch b/testing/kbuild/lchmod.patch
new file mode 100644
index 0000000000..de111867d4
--- /dev/null
+++ b/testing/kbuild/lchmod.patch
@@ -0,0 +1,27 @@
+--- ./src/kmk/kmkbuiltin/chmod.c.orig
++++ ./src/kmk/kmkbuiltin/chmod.c
+@@ -177,9 +177,9 @@
+ } else
+ fts_options = hflag ? FTS_PHYSICAL : FTS_LOGICAL;
+
+- if (hflag)
++/* if (hflag)
+ change_mode = lchmod;
+- else
++ else */
+ change_mode = chmod;
+
+ mode = *argv;
+diff --git a/src/kmk/kmkbuiltin/cp_utils.c b/src/kmk/kmkbuiltin/cp_utils.c
+index 1773815..a1ff924 100644
+--- a/src/kmk/kmkbuiltin/cp_utils.c
++++ b/src/kmk/kmkbuiltin/cp_utils.c
+@@ -359,7 +359,7 @@ setfile(struct stat *fs, int fd)
+
+ if (!gotstat || fs->st_mode != ts.st_mode)
+ if (fdval ? fchmod(fd, fs->st_mode) :
+- (islink ? lchmod(to.p_path, fs->st_mode) :
++ (islink ? chmod(to.p_path, fs->st_mode) :
+ chmod(to.p_path, fs->st_mode))) {
+ warn("chmod: %s", to.p_path);
+ rval = 1;
diff --git a/testing/kbuild/obstack.patch b/testing/kbuild/obstack.patch
new file mode 100644
index 0000000000..8301a427b0
--- /dev/null
+++ b/testing/kbuild/obstack.patch
@@ -0,0 +1,42 @@
+--- ./src/sed/Makefile.kmk.orig
++++ ./src/sed/Makefile.kmk
+@@ -56,36 +56,30 @@
+ sed/mbcs.c \
+ lib/getopt1.c \
+ lib/getopt.c \
++ lib/obstack.c \
+ lib/utils.c
+ kmk_sed_SOURCES.darwin = \
+ lib/strverscmp.c \
+- lib/obstack.c \
+ lib/getline.c
+ kmk_sed_SOURCES.dragonfly = \
+ lib/strverscmp.c \
+- lib/obstack.c \
+ lib/getline.c
+ kmk_sed_SOURCES.freebsd = \
+ lib/strverscmp.c \
+- lib/obstack.c \
+ lib/getline.c
+ kmk_sed_SOURCES.haiku = \
+- lib/strverscmp.c \
+- lib/obstack.c
++ lib/strverscmp.c
+ kmk_sed_SOURCES.openbsd = \
+ lib/strverscmp.c \
+- lib/obstack.c \
+ lib/getline.c
+ kmk_sed_SOURCES.solaris = \
+- lib/strverscmp.c \
+- lib/obstack.c
++ lib/strverscmp.c
+ ifdef KBUILD_SOLARIS_10
+ kmk_sed_SOURCES.solaris += \
+ lib/getline.c
+ endif
+ kmk_sed_SOURCES.win = \
+ lib/strverscmp.c \
+- lib/obstack.c \
+ lib/mkstemp.c \
+ lib/getline.c \
+ ../lib/startuphacks-win.c
diff --git a/testing/kbuild/strlcpy.patch b/testing/kbuild/strlcpy.patch
new file mode 100644
index 0000000000..d0b3a0471d
--- /dev/null
+++ b/testing/kbuild/strlcpy.patch
@@ -0,0 +1,13 @@
+diff --git a/src/kmk/kmkbuiltin/cp.c b/src/kmk/kmkbuiltin/cp.c
+index 44b76ab..85fec01 100644
+--- a/src/kmk/kmkbuiltin/cp.c
++++ b/src/kmk/kmkbuiltin/cp.c
+@@ -81,7 +81,7 @@ __FBSDID("$FreeBSD: src/bin/cp/cp.c,v 1.50 2004/04/06 20:06:44 markm Exp $");
+ #include "kmkbuiltin.h"
+ #include "kbuild_protection.h"
+
+-#if defined(_MSC_VER) || defined(__gnu_linux__) || defined(__linux__)
++#if defined(_MSC_VER) || defined(__gnu_linux__) && !defined(__UCLIBC__)
+ extern char *strlcpy(char *, const char *, size_t);
+ #endif
+
diff --git a/testing/kbuild/sys-types.patch b/testing/kbuild/sys-types.patch
new file mode 100644
index 0000000000..dccb48a23e
--- /dev/null
+++ b/testing/kbuild/sys-types.patch
@@ -0,0 +1,14 @@
+diff --git a/src/kmk/kmkbuiltin/ftsfake.h b/src/kmk/kmkbuiltin/ftsfake.h
+index 2518d30..5410256 100644
+--- a/src/kmk/kmkbuiltin/ftsfake.h
++++ b/src/kmk/kmkbuiltin/ftsfake.h
+@@ -38,6 +38,9 @@
+ # include "kmkbuiltin/mscfakes.h"
+ #endif
+
++/* for u_int */
++#include <sys/types.h>
++
+ typedef struct {
+ struct _ftsent *fts_cur; /* current node */
+ struct _ftsent *fts_child; /* linked list of children */
diff --git a/testing/kbuild/sys_siglist.patch b/testing/kbuild/sys_siglist.patch
new file mode 100644
index 0000000000..140b8a0169
--- /dev/null
+++ b/testing/kbuild/sys_siglist.patch
@@ -0,0 +1,28 @@
+diff --git a/src/ash/jobs.c b/src/ash/jobs.c
+index 146326a..cbf0c3e 100644
+--- a/src/ash/jobs.c
++++ b/src/ash/jobs.c
+@@ -463,8 +463,8 @@ showjob(struct output *out, struct job *jp, int mode)
+ #endif
+ st = WTERMSIG(ps->status);
+ st &= 0x7f;
+- if (st < NSIG && sys_siglist[st])
+- scopyn(sys_siglist[st], s + col, 32);
++ if (st < NSIG && strsignal(st))
++ scopyn(strsignal(st), s + col, 32);
+ else
+ fmtstr(s + col, 16, "Signal %d", st);
+ if (WCOREDUMP(ps->status)) {
+--- ./src/kash/jobs.c.orig
++++ ./src/kash/jobs.c
+@@ -396,8 +396,8 @@
+ #endif
+ st = WTERMSIG(ps->status);
+ st &= 0x7f;
+- if (st < NSIG && sys_siglist[st])
+- scopyn(sys_siglist[st], s + col, 32);
++ if (st < NSIG && strsignal(st))
++ scopyn(strsignal(st), s + col, 32);
+ else
+ fmtstr(s + col, 16, "Signal %d", st);
+ if (WCOREDUMP(ps->status)) {
diff --git a/testing/kbuild/uclibc.patch b/testing/kbuild/uclibc.patch
new file mode 100644
index 0000000000..f837ca3c78
--- /dev/null
+++ b/testing/kbuild/uclibc.patch
@@ -0,0 +1,22 @@
+--- ./src/lib/k/kDefs.h.orig
++++ ./src/lib/k/kDefs.h
+@@ -82,7 +82,7 @@
+ # define K_OS K_OS_FREEBSD
+ # elif defined(__HAIKU__)
+ # define K_OS K_OS_HAIKU
+-# elif defined(__gnu_linux__)
++# elif defined(__linux__)
+ # define K_OS K_OS_LINUX
+ # elif defined(__NetBSD__) /*??*/
+ # define K_OS K_OS_NETBSD
+--- ./src/kmk/kmkbuiltin/fts.c.orig
++++ ./src/kmk/kmkbuiltin/fts.c
+@@ -75,7 +75,7 @@
+ #endif
+
+ #if ! HAVE_NBTOOL_CONFIG_H
+-# if !defined(__sun__) && !defined(__gnu_linux__) && !defined(__HAIKU__)
++# if !defined(__sun__) && !defined(__linux__) && !defined(__HAIKU__)
+ # define HAVE_STRUCT_DIRENT_D_NAMLEN 1
+ # endif
+ #endif
diff --git a/testing/kbuild/underlinking.patch b/testing/kbuild/underlinking.patch
new file mode 100644
index 0000000000..e72c3c1f69
--- /dev/null
+++ b/testing/kbuild/underlinking.patch
@@ -0,0 +1,13 @@
+diff --git a/src/kmk/Makefile.kmk b/src/kmk/Makefile.kmk
+index db1deb2..00981b8 100644
+--- a/src/kmk/Makefile.kmk
++++ b/src/kmk/Makefile.kmk
+@@ -215,6 +215,8 @@ kmk_SOURCES = \
+ vpath.c \
+ remote-stub.c
+
++kmk_LIBS.linux = pthread
++
+ #kmk_LIBS.solaris = malloc
+ #kmk_DEFS.solaris += HAVE_MALLINFO
+
diff --git a/testing/libctl/APKBUILD b/testing/libctl/APKBUILD
new file mode 100644
index 0000000000..4078b1a2ce
--- /dev/null
+++ b/testing/libctl/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: Isaac Dunham <ibid.ag@gmail.com>
+# Maintainer:
+pkgname=libctl
+pkgver=3.2.2
+pkgrel=0
+pkgdesc="Guile-based library implementing flexible control files for scientific simulations"
+url="http://ab-initio.mit.edu/wiki/index.php/Libctl"
+arch="all"
+license="GPL"
+depends=""
+depends_dev="guile-dev gmp-dev"
+makedepends="$depends_dev gc-dev gfortran"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://ab-initio.mit.edu/libctl/libctl-$pkgver.tar.gz
+ gh-libguile.patch"
+
+_builddir="$srcdir"/libctl-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --enable-shared --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="5fd7634dc9ae8e7fa70a68473b9cbb68 libctl-3.2.2.tar.gz
+e28653da62d9aed4746025e83f7f5323 gh-libguile.patch"
+sha256sums="8abd8b58bc60e84e16d25b56f71020e0cb24d75b28bc5db86d50028197c7efbc libctl-3.2.2.tar.gz
+03da4add062a949c791dfa722254bc4cb265ff9b8c64c12effd92bed32fdcdaa gh-libguile.patch"
+sha512sums="646456c23490eb3e63e845d4866b16bd1d92b210f2279342560888bb4764e474b97e17ff34beb672d43afe4d42bbcbddbcf8bb49cedc23b886061a93de10e6df libctl-3.2.2.tar.gz
+50a18aa5f42ef26b0d5c3f31a93f156adc4e1a0a37af2db123301e9ef1ac20106705df44e9949e02b605f42be962378b95c150f78614edfae7339c084dfb6522 gh-libguile.patch"
diff --git a/testing/libctl/gh-libguile.patch b/testing/libctl/gh-libguile.patch
new file mode 100644
index 0000000000..ed3b40165f
--- /dev/null
+++ b/testing/libctl/gh-libguile.patch
@@ -0,0 +1,220 @@
+diff --git a/config.h.in b/config.h.in
+index c31e5a9..a79e273 100644
+--- a/config.h.in
++++ b/config.h.in
+@@ -50,7 +50,7 @@
+ /* Define if we have gh_vector_ref */
+ #undef HAVE_GH_VECTOR_REF
+
+-/* Define to 1 if you have the <guile/gh.h> header file. */
++/* Define to 1 if you have the <libguile.h> header file. */
+ #undef HAVE_GUILE_GH_H
+
+ /* Define to 1 if you have the <inttypes.h> header file. */
+diff --git a/configure b/configure
+index c51270d..48d783a 100755
+--- a/configure
++++ b/configure
+@@ -12878,7 +12878,7 @@ rm -f core conftest.err conftest.$ac_objext \
+ fi
+ rm -f core conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+-for ac_header in libguile.h guile/gh.h
++for ac_header in libguile.h libguile.h
+ do :
+ as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
+ ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
+@@ -12929,7 +12929,7 @@ $as_echo_n "checking for gh_enter... " >&6; }
+ ok=yes
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-#include <guile/gh.h>
++#include <libguile.h>
+
+ int
+ main ()
+@@ -12956,7 +12956,7 @@ $as_echo_n "checking for gh_eval_str... " >&6; }
+ ok=yes
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-#include <guile/gh.h>
++#include <libguile.h>
+
+ int
+ main ()
+@@ -12983,7 +12983,7 @@ $as_echo_n "checking for gh_load... " >&6; }
+ ok=yes
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-#include <guile/gh.h>
++#include <libguile.h>
+
+ int
+ main ()
+@@ -13010,7 +13010,7 @@ $as_echo_n "checking for gh_bool2scm... " >&6; }
+ ok=yes
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-#include <guile/gh.h>
++#include <libguile.h>
+
+ int
+ main ()
+@@ -13037,7 +13037,7 @@ $as_echo_n "checking for gh_vector_ref... " >&6; }
+ ok=yes
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-#include <guile/gh.h>
++#include <libguile.h>
+
+ int
+ main ()
+@@ -13064,7 +13064,7 @@ $as_echo_n "checking for gh_list_ref... " >&6; }
+ ok=yes
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-#include <guile/gh.h>
++#include <libguile.h>
+
+ int
+ main ()
+@@ -13091,7 +13091,7 @@ $as_echo_n "checking for gh_length... " >&6; }
+ ok=yes
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+-#include <guile/gh.h>
++#include <libguile.h>
+
+ int
+ main ()
+@@ -13121,7 +13121,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ #if defined(HAVE_LIBGUILE_H)
+ # include <libguile.h>
+ #else
+-# include <guile/gh.h>
++# include <libguile.h>
+ #endif
+
+ int
+@@ -13165,7 +13165,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ #if defined(HAVE_LIBGUILE_H)
+ # include <libguile.h>
+ #else
+-# include <guile/gh.h>
++# include <libguile.h>
+ #endif
+
+ int
+@@ -13198,7 +13198,7 @@ else
+ /* end confdefs.h. */
+
+ #include <stdlib.h>
+-#include <guile/gh.h>
++#include <libguile.h>
+ void main_entry(int argc, char *argv[])
+ {
+ gh_eval_str("(define foo 3.14159)");
+diff --git a/configure.ac b/configure.ac
+index 98e38c5..56532c9 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -82,7 +82,7 @@ AC_TRY_LINK_FUNC(gh_enter, AC_MSG_RESULT(yes),
+ [AC_TRY_LINK_FUNC(scm_boot_guile, AC_MSG_RESULT(yes),
+ [AC_MSG_RESULT(no)
+ AC_MSG_ERROR(Guile could not be found)])])
+-AC_CHECK_HEADERS([libguile.h guile/gh.h])
++AC_CHECK_HEADERS([libguile.h libguile.h])
+
+ ###########################################################################
+
+@@ -97,43 +97,43 @@ AC_MSG_RESULT($ok)
+
+ AC_MSG_CHECKING([for gh_enter])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <libguile.h>
+ ], [gh_enter(0,0,0);], [AC_DEFINE(HAVE_GH_ENTER, 1, [Define if we have gh_enter.])], ok=no)
+ AC_MSG_RESULT($ok)
+
+ AC_MSG_CHECKING([for gh_eval_str])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <libguile.h>
+ ], [gh_eval_str(0);], [AC_DEFINE(HAVE_GH_EVAL_STR, 1, [Define if we have gh_eval_str.])], ok=no)
+ AC_MSG_RESULT($ok)
+
+ AC_MSG_CHECKING([for gh_load])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <libguile.h>
+ ], [gh_load(0);], [AC_DEFINE(HAVE_GH_LOAD, 1, [Define if we have gh_load.])], ok=no)
+ AC_MSG_RESULT($ok)
+
+ AC_MSG_CHECKING([for gh_bool2scm])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <libguile.h>
+ ], [gh_bool2scm(0);], [AC_DEFINE(HAVE_GH_BOOL2SCM, 1, [Define if we have gh_bool2scm])], ok=no)
+ AC_MSG_RESULT($ok)
+
+ AC_MSG_CHECKING([for gh_vector_ref])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <libguile.h>
+ ], [gh_vector_ref(0,0);], [AC_DEFINE(HAVE_GH_VECTOR_REF, 1, [Define if we have gh_vector_ref])], ok=no)
+ AC_MSG_RESULT($ok)
+
+ AC_MSG_CHECKING([for gh_list_ref])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <libguile.h>
+ ], [gh_list_ref(0,0);], [AC_DEFINE(HAVE_GH_LIST_REF, 1, [Define if we have gh_list_ref])], ok=no)
+ AC_MSG_RESULT($ok)
+
+ AC_MSG_CHECKING([for gh_length])
+ ok=yes
+-AC_TRY_LINK([#include <guile/gh.h>
++AC_TRY_LINK([#include <libguile.h>
+ ], [gh_length(0);], [AC_DEFINE(HAVE_GH_LENGTH, 1, [Define if we have gh_length])], ok=no)
+ AC_MSG_RESULT($ok)
+
+@@ -142,7 +142,7 @@ ok=yes
+ AC_TRY_LINK([#if defined(HAVE_LIBGUILE_H)
+ # include <libguile.h>
+ #else
+-# include <guile/gh.h>
++# include <libguile.h>
+ #endif
+ ], [scm_flush_all_ports();], [AC_DEFINE(HAVE_SCM_FLUSH_ALL_PORTS, 1, [Define if we have scm_flush_all_ports])], ok=no)
+ AC_MSG_RESULT($ok)
+@@ -154,7 +154,7 @@ ok=yes
+ AC_TRY_LINK([#if defined(HAVE_LIBGUILE_H)
+ # include <libguile.h>
+ #else
+-# include <guile/gh.h>
++# include <libguile.h>
+ #endif
+ ], [SCM x; SCM_COMPLEXP(x);], [AC_DEFINE(HAVE_SCM_COMPLEXP, 1, [Define if we have SCM_COMPLEXP])], ok=no)
+ AC_MSG_RESULT($ok)
+@@ -163,7 +163,7 @@ AC_MSG_CHECKING([whether gh_lookup works properly])
+ ok=yes
+ AC_TRY_RUN([
+ #include <stdlib.h>
+-#include <guile/gh.h>
++#include <libguile.h>
+ void main_entry(int argc, char *argv[])
+ {
+ gh_eval_str("(define foo 3.14159)");
+diff --git a/src/ctl.h.in b/src/ctl.h.in
+index 1ecee3f..b0c0096 100644
+--- a/src/ctl.h.in
++++ b/src/ctl.h.in
+@@ -26,7 +26,7 @@
+ #ifdef HAVE_NO_GH
+ # include <libguile.h>
+ #else
+-# include <guile/gh.h>
++# include <libguile.h>
+ #endif
+
+ #ifdef __cplusplus
diff --git a/testing/libgdiplus/APKBUILD b/testing/libgdiplus/APKBUILD
new file mode 100644
index 0000000000..8f13610482
--- /dev/null
+++ b/testing/libgdiplus/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=libgdiplus
+pkgver=4.2
+pkgrel=1
+pkgdesc="An Open Source Implementation of the GDI+ API"
+url="http://www.mono-project.com"
+arch="all"
+license="LGPL"
+depends=""
+depends_dev="tiff-dev cairo-dev libexif-dev glib-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+source="http://download.mono-project.com/sources/libgdiplus/libgdiplus-$pkgver.tar.gz"
+
+_builddir="$srcdir"/libgdiplus-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="3e68075aa0911d5ebc2b3739e85af0ea libgdiplus-4.2.tar.gz"
+sha256sums="f332b9b8b44fd1c50b8d8d01a7296360b806c790b8297614739b3de1edbadfeb libgdiplus-4.2.tar.gz"
+sha512sums="102d1e07a106fa32640a20c4843bf82b3f628c5b7a3813d39c7712f2cd09d80dc5adb337a8d5bdbae065f876a0c433a5d8fcb7d761dff5ee08c48cac2cd2344e libgdiplus-4.2.tar.gz"
diff --git a/testing/libmbfl/APKBUILD b/testing/libmbfl/APKBUILD
new file mode 100644
index 0000000000..f1ec645ee2
--- /dev/null
+++ b/testing/libmbfl/APKBUILD
@@ -0,0 +1,110 @@
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+pkgname=libmbfl
+pkgver=1.3.2
+pkgrel=0
+pkgdesc="A streamable multibyte character code filter and converter library"
+url="https://github.com/moriyoshi/libmbfl"
+arch="all"
+license="LGPLv2.1"
+depends=
+makedepends="libtool autoconf automake"
+install=
+subpackages="$pkgname-dev"
+source="https://github.com/moriyoshi/libmbfl/archive/$pkgname-$pkgver.tar.gz
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-1.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-2.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-3.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-4.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-5.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-6.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-7.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-8.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-9.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-10.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-11.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-13.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-14.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-15.TXT
+ ftp://ftp.unicode.org/Public/MAPPINGS/ISO8859/8859-16.TXT
+ ftp://ftp.unicode.org/Public/UNIDATA/EastAsianWidth.txt
+ filters_makefile.patch"
+
+_builddir="$srcdir"/$pkgname-$pkgname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+ cp "$srcdir"/*.TXT "$srcdir"/*.txt filters/
+}
+
+build(){
+ cd "$_builddir"
+ ./buildconf || return 1
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="22a1fb428c9fb8a6cefbe6c44e60a67a libmbfl-1.3.2.tar.gz
+04f22df04cebd74fb65aa0f14c73aa9a 8859-1.TXT
+e1254b30bc85cd26419e3cbcd221bde0 8859-2.TXT
+05466acf5341fbf64fc83f8cb4d38197 8859-3.TXT
+0d7f82192ed7edfa29365118520e479f 8859-4.TXT
+b1937e0d002863973f71f717a895ade2 8859-5.TXT
+2be96800894d08174bee321eb7a69f2e 8859-6.TXT
+30a928e51972cf052e0e07e3e090a934 8859-7.TXT
+7388bc3a3fc90aa94a7c33f897cc50b8 8859-8.TXT
+0f1c09d8374ba15515351c2acddfed1f 8859-9.TXT
+893e17d4a8154f6794fb2516f2a31137 8859-10.TXT
+3b2a17877945be528e3238aa1e9f4be9 8859-11.TXT
+e259f8e7fa5bc2afd4fa16bb837d07c0 8859-13.TXT
+9c812fe49ba18422737f92f1d5210bc7 8859-14.TXT
+997b91806425e100ab76f82fc618bd1a 8859-15.TXT
+a23f0901df4c1ffa1aa4943d83774d93 8859-16.TXT
+e4782d8f5ea275085b68bb0914a1599b EastAsianWidth.txt
+fa059f370036988652491a7e5ba0cc88 filters_makefile.patch"
+sha256sums="b20abb2712d5d8e51d8e3e38bd96b68e3a3c3e85e53f353801ab71a819e39d4d libmbfl-1.3.2.tar.gz
+2a06a462bf74ae65a77b700f235ac05156ac20f4aaefe39f09cc20d50628bb5e 8859-1.TXT
+020946e114335b17e7d29fe8a8449786cffed714cf409b11d0b3a375197188d1 8859-2.TXT
+23b2d7815946cb1232c71a1543033afc396c750ffa19a3771662cf23e6194552 8859-3.TXT
+e717699903bef2144234279a598ce39b44502942c9cc23a2ce2069a65f46b00d 8859-4.TXT
+9a2efea39673f95c5daa277c46ad09a41e95f27c225270424a604d033db9bd8f 8859-5.TXT
+7012241bd7143a3bf98861e497cd3cc092edebc3e063fc7d576420f22d22f11e 8859-6.TXT
+94f4a1c89ba6b2e1c1f8b30676cb5d15f232dbac36ae4ad20018a65e0f3fb9a3 8859-7.TXT
+cbe3205c5c6f92589d6a8673d56c51d89659ae290185457e6e2f81fee7a1ad2d 8859-8.TXT
+4397082eb5cbbc299264b3b73405cc0946ec5c79328eb9de75f8a5da1ab8e712 8859-9.TXT
+3441c37377c6721586255282ef4302c0ca61796674361959b3a2591f823a0e67 8859-10.TXT
+a6c8891b5e43bbcf55ac356b0a31be8c8322a09fba183b7b7507e9252587bc13 8859-11.TXT
+375cc8d45b331c29e5630bf5c821c85572ffba60487d4d279341bbd13f46750f 8859-13.TXT
+5e72e1c79b2907504111c0965953261c4584cb984465cd88d616452c12fd3782 8859-14.TXT
+bc72d7bd5be1d15bdad8e684f9ae9f573c361bb73812c3084ed1b7622a05e58f 8859-15.TXT
+9164ce844b2bf3f56805c2e9ab8453cc53868757e7f75c4b8dcee7376894d55c 8859-16.TXT
+ccc571829b384b8a2c24b7a62f8aa6a891a6e8c48f08513ef84fd6da26dba4bb EastAsianWidth.txt
+12a14d533f539604c19e926e6527e653bddafce8f2153653d180051015b947cb filters_makefile.patch"
+sha512sums="266b50a87f1e9114d84c349dd78d765a48ce6d604a011510bf8a82badb54736a44fb5642e3607fed4006ddb0b5f7394935d2a6eff13140b382620832b9e9f3fe libmbfl-1.3.2.tar.gz
+9152a07fae83cde8ee22b741f5ee24fd3148eb3f9af9cf9bc8107e0c7a21e8ec43c54255257ed1120be69b4e360545f3facc11b45638ea4ea7b394483a99e5b1 8859-1.TXT
+bc481c48c9879e87b4da465f14d7a1019181d17335ad86a033a8b82952936f7345c08794e77c34b32a5cfd83b836d257c3145a79ebc656cbfd0d01ef33709206 8859-2.TXT
+59a2e89347341237909a40332d577518b3f00493a14d1c868b7bb4eeb0a398149579f724e4160e21ea091928215d9b32894cba72cff2d518a92a789524924cde 8859-3.TXT
+36ea52a15188edf8cdcab7b183bf28b7d2a3e69205fac3cd753a67fcd0a5ea6608fd7ab3724ad5ec4768bd1e2a7a6b14cef4cfd3e8d8c253f7a785b10eb694a7 8859-4.TXT
+ca816ce33039ce77178eafccb94f114bfa06394c100f883ac7e5ee1d233d5e2cc6d683403959e857eb8b702f253dfb7b54edb925283fae82ab2704cef1e58a45 8859-5.TXT
+c9c4720b59440f39a4d9c3e4318cebb7e67536ba2c9e9d211c5e52dec9a1a4e5b3f9233917e1dde59b21b3aa88cf245c7e04890ac4d1b9c203b72cd21b5c18f1 8859-6.TXT
+4a72ff7adddcf62447195f03fefc0e2f2452c9836198dd1566374f98661e1eede8bdb75e5fd1333b3f6b73cd93cf427aef19cbc317759b25f96bd780ba1c2743 8859-7.TXT
+e644bc0e88baa93c52d97caf269a68d83b803aabb340d7ee51d8f51fc4e6de04b7178befab604bc0fd1e5e18149f62a0269be1354caa37a91b49955f72da450b 8859-8.TXT
+1784890a296b718ca18924dbe794ae7073dcb66d31290dd652e3a5cd52131cacb343bb92e3baad044385a153cee6380e394b325fa84a4250b3d90521cd503c6d 8859-9.TXT
+9fd4f9c3634b02adccf25d4a816ccf527028bab935c7bb4d7b4fcacb130d70aaaa44f90cf33997cbf38864641162f386dc7f19a686bf36d1762f9abc92d21035 8859-10.TXT
+59c8e871ce6ba3847aec2b2136a677637c422ac1efe18f96be70a8614dd6e56f14b00f7ae855d508eca24a283513011039d371a61c5a2cefd5b493dc13aa6ed3 8859-11.TXT
+f2d47a222c0052723c194014f96c591dbd9b766f5bb7d605dcca0e39cd56908244a7386078783888119aa9604e46eee31f6287af877083ceb40959ba18a32577 8859-13.TXT
+eb62606eb2bce8c2a29f963b4ad8efab8e4b261f29190b6f0467ba834190d701a371b5bbef8f52b7a2394ddf2be95c1b687f1b9bdfa11dacda6941120c95b86b 8859-14.TXT
+363c9fb2c3f6ce07b6a2afd6f0160550212dfa70c38985a6f525b912a79b1cb35c90cfbe435b7025a1b53d8bbc4cf3a5d32b1bd4b12f059d98799099191157cb 8859-15.TXT
+2bc12bb3e041f44cf30236997ebc4f6f6d210a8665ff74f67d33af415778ac8e6b83cc09dae826ccabdfb9724f142b4b0ff4b81c8ea71b3c7d6d332abba23d66 8859-16.TXT
+1f66848d3dd3ebf68847de3132bb8a9fe5686964c28df69b8f39a6990b5d13fd0fa92cad0945dbed67b310063fb5c51ec85b0aa8ca7e69a55f09457d554d00f0 EastAsianWidth.txt
+7964e0fc8e8825136cca30f81f5929746a326119b238f1c72c16fd7ea51787ef0cdc05180290d28d71ce07cf86e6c0aba7a57ec922f3c5bfa16f85aac5245a57 filters_makefile.patch"
diff --git a/testing/libmbfl/filters_makefile.patch b/testing/libmbfl/filters_makefile.patch
new file mode 100644
index 0000000000..1863b18f9a
--- /dev/null
+++ b/testing/libmbfl/filters_makefile.patch
@@ -0,0 +1,20 @@
+--- old/filters/Makefile.am
++++ new/filters/Makefile.am
+@@ -55,7 +55,7 @@
+ mbfilter_euc_kr.c \
+ mbfilter_uhc.c \
+ mbfilter_iso2022_jp_ms.c \
+- mbfilter_iso2022_jp_2004.c \
++ mbfilter_iso2022jp_2004.c \
+ mbfilter_gb18030.c \
+ mbfilter_iso2022_kr.c \
+ mbfilter_cp866.c \
+@@ -90,7 +90,7 @@
+ mbfilter_htmlent.h \
+ mbfilter_hz.h \
+ mbfilter_iso2022_jp_ms.h \
+- mbfilter_iso2022_jp_2004.h \
++ mbfilter_iso2022jp_2004.h \
+ mbfilter_iso2022_kr.h \
+ mbfilter_iso8859_1.h \
+ mbfilter_iso8859_10.h \
diff --git a/testing/liboauth/APKBUILD b/testing/liboauth/APKBUILD
new file mode 100644
index 0000000000..2e0c42518f
--- /dev/null
+++ b/testing/liboauth/APKBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=liboauth
+pkgver=1.0.3
+pkgrel=0
+pkgdesc="OAuth library functions"
+url="http://liboauth.sourceforge.net/"
+arch="all"
+license="MIT"
+depends=""
+depends_dev="nss-dev curl-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://liboauth.sourceforge.net/pool/liboauth-$pkgver.tar.gz"
+
+_builddir="$srcdir"/liboauth-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ update_config_sub || return 1
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-static \
+ --enable-nss \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="689b46c2b3ab1a39735ac33f714c4f7f liboauth-1.0.3.tar.gz"
+sha256sums="0df60157b052f0e774ade8a8bac59d6e8d4b464058cc55f9208d72e41156811f liboauth-1.0.3.tar.gz"
+sha512sums="5a13818dbb3e0df76f7a3fde451eff4f90c9bebfe2076a294921af0c07c2b0789f717f0f862ac6961562d4227e016dc198ddd7efb9c7ac599c3bfbcdb2ac33fa liboauth-1.0.3.tar.gz"
diff --git a/testing/libsieve/APKBUILD b/testing/libsieve/APKBUILD
new file mode 100644
index 0000000000..befaaab520
--- /dev/null
+++ b/testing/libsieve/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=libsieve
+pkgver=2.2.7
+pkgrel=1
+pkgdesc="Sieve interpretator lib"
+url="http://libsieve.sourceforge.net/"
+arch="all"
+license="LGPL2+"
+depends=
+depends_dev=
+makedepends="$depends_dev flex"
+install=""
+subpackages="$pkgname-dev"
+source="http://downloads.sourceforge.net/sourceforge/libsieve/libsieve-$pkgver.tar.gz"
+
+_builddir="$srcdir/$pkgname-$pkgver/src"
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="7415e7cfe40cfc6cf43ae26efb5f0fb7 libsieve-2.2.7.tar.gz"
diff --git a/testing/libsigsegv/APKBUILD b/testing/libsigsegv/APKBUILD
new file mode 100644
index 0000000000..3a1d5fbeec
--- /dev/null
+++ b/testing/libsigsegv/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=libsigsegv
+pkgver=2.10
+pkgrel=1
+pkgdesc="Page fault detection library"
+url="http://www.gnu.org/software/libsigsegv/"
+arch="all"
+license="GPL2"
+depends=""
+depends_dev=""
+makedepends=""
+install=""
+subpackages="$pkgname-dev"
+source="http://ftp.gnu.org/gnu/libsigsegv/libsigsegv-$pkgver.tar.gz"
+
+_builddir="$srcdir"/libsigsegv-$pkgver
+prepare() {
+ cd "$_builddir"
+ update_config_sub || return 1
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make || return 1
+}
+
+package() {
+ make DESTDIR="$pkgdir" \
+ -C "$_builddir" install || return 1
+}
+
+md5sums="7f96fb1f65b3b8cbc1582fb7be774f0f libsigsegv-2.10.tar.gz"
+sha256sums="8460a4a3dd4954c3d96d7a4f5dd5bc4d9b76f5754196aa245287553b26d2199a libsigsegv-2.10.tar.gz"
+sha512sums="9464b3343af5042169f208781ffa9d1f7e5e1ee8654c1e6aca5581157b43eedc5ee504a56eb905c61443273bcfc8da6822ecc6499c5f589570ad0ba02d8d8cc2 libsigsegv-2.10.tar.gz"
diff --git a/testing/libtermkey/APKBUILD b/testing/libtermkey/APKBUILD
new file mode 100644
index 0000000000..551da0288e
--- /dev/null
+++ b/testing/libtermkey/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Marvin Steadfast <marvin@xsteadfastx.org>
+# Maintainer: Marvin Steadfast <marvin@xsteadfastx.org>
+pkgname=libtermkey
+pkgver=0.18
+pkgrel=0
+pkgdesc="Library for easy processing of keyboard entry from terminal-based programs"
+url="http://www.leonerd.org.uk/code/libtermkey"
+arch="all"
+license="MIT"
+depends=""
+depends_dev="libtool unibilium-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc $pkgname-dev"
+source="http://www.leonerd.org.uk/code/${pkgname}/${pkgname}-${pkgver}.tar.gz"
+
+_builddir="$srcdir"/"$pkgname"-"$pkgver"
+build() {
+ cd "$_builddir"
+ make PREFIX=/usr || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="3be2e3e5a851a49cc5e8567ac108b520 libtermkey-0.18.tar.gz"
+sha256sums="239746de41c845af52bb3c14055558f743292dd6c24ac26c2d6567a5a6093926 libtermkey-0.18.tar.gz"
+sha512sums="7507d7bf22ab075e932401b2194dcc69b40138955dc398c86327a072603df2a1010474fa9a1c75aa7cab936fa500e5e53118675b0ec6e9a85b66a1b6b7f5332e libtermkey-0.18.tar.gz"
diff --git a/testing/libuecc/APKBUILD b/testing/libuecc/APKBUILD
new file mode 100644
index 0000000000..cf350b42f0
--- /dev/null
+++ b/testing/libuecc/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
+# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
+pkgname=libuecc
+pkgver=6
+pkgrel=0
+pkgdesc="Very small Elliptic Curve Cryptography library"
+url="http://git.universe-factory.net/libuecc/"
+arch="all"
+license="BSD"
+depends=""
+depends_dev="cmake"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://git.universe-factory.net/${pkgname}/snapshot/${pkgname}-${pkgver}.tar"
+
+_builddir="$srcdir/${pkgname}-${pkgver}"
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ mkdir build
+ cd build
+ cmake -D CMAKE_INSTALL_PREFIX=/usr ..
+ make
+}
+
+package() {
+ cd "$_builddir/build"
+ make install DESTDIR="${pkgdir}"
+ install -Dm644 "$_builddir"/COPYRIGHT \
+ $pkgdir/usr/share/licenses/$pkgname/COPYRIGHT
+}
+
+md5sums="d3d126e293db0d5262d2985bd911665f libuecc-6.tar"
+sha256sums="fe61715b7cd8458616840f71ab8c0c7e5f49480a9cfb2c1965fbb9d713f071b6 libuecc-6.tar"
+sha512sums="0ef6adb12429cd847d7b1e7a79c453675c97e74deb2937733b1cf588ae7fccc45cba43e3d38568217943b941e206a7f47a323829ccde8a2d572381767e82d954 libuecc-6.tar"
diff --git a/testing/lua-lpeg/APKBUILD b/testing/lua-lpeg/APKBUILD
new file mode 100644
index 0000000000..1f603b0ae3
--- /dev/null
+++ b/testing/lua-lpeg/APKBUILD
@@ -0,0 +1,70 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=lua-lpeg
+pkgver=0.12.2
+_lua_versions="5.1 5.2 5.3"
+pkgrel=0
+pkgdesc="Pattern-matching library for Lua"
+url="http://www.inf.puc-rio.br/~roberto/lpeg"
+arch="all"
+license="MIT"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-$pkgver.tar.gz"
+for _v in $_lua_versions; do
+ makedepends="$makedepends lua$_v-dev"
+ subpackages="$subpackages lua$_v-lpeg:split_${_v/./_}"
+done
+
+_builddir="$srcdir"/lpeg-$pkgver
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+
+ sed 's/^CFLAGS =/CFLAGS +=/' -i makefile || return 1
+ sed 's/^COPT =/# COPT =/' -i makefile || return 1
+
+ for _ver in $_lua_versions; do
+ cp -r "$_builddir" "$srcdir"/$pkgname-$_ver || return 1
+ done
+}
+
+build() {
+ for _ver in $_lua_versions; do
+ cd "$srcdir"/$pkgname-$_ver
+ make LUADIR=/usr/include/lua$_ver || return 1
+ done
+}
+
+package() {
+ arch="noarch"
+ mkdir -p "$pkgdir"
+}
+
+_split() {
+ local _ver="$1"
+ pkgdesc="Pattern-matching library for Lua $_ver"
+ install_if="lua$_ver $pkgname=$pkgver-r$pkgrel"
+ cd "$srcdir"/$pkgname-$_ver || return 1
+ install -Dm755 lpeg.so \
+ "$subpkgdir"/usr/lib/lua/$_ver/lpeg.so || return 1
+ install -Dm644 re.lua \
+ "$subpkgdir"/usr/share/lua/$_ver/re.lua || return 1
+}
+
+for _v in $_lua_versions; do
+ eval "split_${_v/./_}() { _split $_v; }"
+done
+
+md5sums="fabb614eb46e370d4f6b8fd82d17ca7e lpeg-0.12.2.tar.gz"
+sha256sums="6aad270b91d1b1c6fd75f68e162329a04a644e50e917d55f46cc8384b7120004 lpeg-0.12.2.tar.gz"
+sha512sums="81505674473d83e2c777d470cd6ba4eead48ecc32e58e52bc192ca7a167f882e722c5a0cae62937fb3f5f71d6216de1ba4ea3d932e72265028f293d778df5e9e lpeg-0.12.2.tar.gz"
diff --git a/testing/lua5.2-penlight/APKBUILD b/testing/lua5.2-penlight/APKBUILD
new file mode 100644
index 0000000000..f4bd333a8b
--- /dev/null
+++ b/testing/lua5.2-penlight/APKBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+_luaver=5.2
+pkgname=lua${_luaver}-penlight
+pkgver=1.3.0
+pkgrel=0
+pkgdesc="Lua libraries for extended operations on tables, lists and strings"
+url="https://github.com/stevedonovan/Penlight"
+arch="noarch"
+license="GPL"
+depends="lua${_luaver}-filesystem"
+makedepends="wget"
+install=
+subpackages="$pkgname-doc"
+source="penlight-$pkgver.tar.gz::https://github.com/stevedonovan/Penlight/archive/$pkgver.tar.gz"
+
+_builddir="$srcdir"/Penlight-$pkgver
+
+build() {
+ return 0
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir"/usr/share/lua/$_luaver/ \
+ "$pkgdir"/usr/share/doc/$pkgname
+ cp -r lua/pl "$pkgdir"/usr/share/lua/$_luaver/ || return 1
+ cp -r doc/* "$pkgdir"/usr/share/doc/$pkgname/ || return 1
+ cp -r examples "$pkgdir"/usr/share/doc/$pkgname/ || return 1
+}
+
+md5sums="7add43a98a940fb066b873c1298c4489 penlight-1.3.0.tar.gz"
+sha256sums="5f0be532df2c72926280f22eb61a2f62557f7d29b576c82fd573f2d35a8f1114 penlight-1.3.0.tar.gz"
+sha512sums="d38764f25219646e0772ed2df50bb8c31bf2067b7676d841848735a5c9fd81d169b0972c4db46ad3ceb53849fa25ec2bae0c5e053c03533fb383afdd1e9d44f9 penlight-1.3.0.tar.gz"
diff --git a/testing/mhash/APKBUILD b/testing/mhash/APKBUILD
new file mode 100644
index 0000000000..255e51c00c
--- /dev/null
+++ b/testing/mhash/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=mhash
+pkgver=0.9.9.9
+pkgrel=1
+pkgdesc="A thread-safe hash library which provides a uniform interface to hash algorithms (MD5, SHA-1, HAVAL, etc"
+url="http://mhash.sourceforge.net/"
+arch="all"
+license="LGPL"
+depends=
+depends_dev=
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/sourceforge/mhash/$pkgname-$pkgver.tar.bz2"
+
+_builddir="$srcdir/$pkgname-$pkgver"
+
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="f91c74f9ccab2b574a98be5bc31eb280 mhash-0.9.9.9.tar.bz2"
diff --git a/testing/mobile-broadband-provider-info/APKBUILD b/testing/mobile-broadband-provider-info/APKBUILD
new file mode 100644
index 0000000000..f89e952488
--- /dev/null
+++ b/testing/mobile-broadband-provider-info/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer:
+pkgname=mobile-broadband-provider-info
+pkgver=20120614
+pkgrel=0
+pkgdesc="Mobile broadband settings for various service providers"
+url="https://git.gnome.org/browse/mobile-broadband-provider-info/"
+arch="noarch"
+license="custom"
+depends=""
+depends_dev=""
+makedepends="$depends_dev autoconf automake"
+install=""
+subpackages="$pkgname-doc"
+source="https://git.gnome.org/browse/$pkgname/snapshot/$pkgname-$pkgver.tar.xz"
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./autogen.sh
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="${pkgdir}" install
+ install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
+}
+
+md5sums="5431cb495272fc92c1e4b393ce1f0008 mobile-broadband-provider-info-20120614.tar.xz"
+sha256sums="cc376f22853525c0ed01bf5f196d56f4579b7af9846610bfb369200ad0f4d357 mobile-broadband-provider-info-20120614.tar.xz"
+sha512sums="3557701254cdb47f7e7ab148dcc6d836a3894dd72103019680b785965b67ae8ad73b21fc024f1feaefe43e7d704093b614fe86c08098fadc65cf9bf172a45629 mobile-broadband-provider-info-20120614.tar.xz"
diff --git a/testing/nx-libs/APKBUILD b/testing/nx-libs/APKBUILD
new file mode 100644
index 0000000000..68df0da9c2
--- /dev/null
+++ b/testing/nx-libs/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Jean-Charles de Longueville <jch@hellea.eu>
+# Maintainer:
+pkgname=nx-libs
+pkgver=3.5.0.31
+pkgrel=0
+pkgdesc="NoMachine libraries (redistributed by x2go)"
+url="http://x2go.org"
+arch="all"
+license="GPLv2+"
+depends="font-cursor-misc font-misc-misc"
+depends_dev=""
+makedepends="$depends_dev libx11-dev zlib-dev libjpeg-turbo-dev libpng-dev libfontenc-dev linux-headers libxml2-dev bash automake autoconf"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://code.x2go.org/releases/source/$pkgname/$pkgname-$pkgver-full.tar.gz
+ xf86bigfont.patch
+ fix-musl-headers-x86.patch
+ "
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+
+ #Every Makefile has /usr/local as PREFIX, so replace that
+ sed -i -e 's,/usr/local,/usr,' nx-X11/config/cf/site.def
+}
+
+build() {
+ cd "$_builddir"
+ make -j1 PREFIX=/usr USRLIBDIR=/usr/lib SHLIBDIR=/usr/lib CONFIGURE="./configure --prefix=/usr --libdir=/usr/lib --includedir=/usr/include" || return 1
+}
+
+package() {
+ cd "$_builddir"
+ #find ./ -name Makefile | xargs sed -e 's#/usr/local#/usr#g' -i
+ make PREFIX=/usr DESTDIR="$pkgdir" USRLIBDIR=/usr/lib SHLIBDIR=/usr/lib install CONFIGURE="./configure --prefix=/usr --libdir=/usr/lib --includedir=/usr/include" || return 1
+}
+
+md5sums="d163193f2c344aad263da0fc4fe4b853 nx-libs-3.5.0.31-full.tar.gz
+6030f6b55bcd54be7a5f9c5e796d3759 xf86bigfont.patch
+5f26a25ccc1d50693c0b4efe287a95f2 fix-musl-headers-x86.patch"
+sha256sums="2130db3bf5c0b081604aef5546fd2c2a5f4db26ce2297a8da3cb3bcf11286128 nx-libs-3.5.0.31-full.tar.gz
+51dc9bad9cc410654bf6c657abdd1bfb2ec5e6e6349ffb701b39cc11e46d2c2e xf86bigfont.patch
+a09d175c62e1ae6017e161ccb7ed56b38da26ad2fa95b74357c9e4e78034b56f fix-musl-headers-x86.patch"
+sha512sums="88870ec0453ab8e1fe3274ed86ac577256b14ea2ec448491f975be6d673ef8e60fb342601f05da819e202adc2bf668327e1f6c49b1ba79eb52faa87ed9e8985e nx-libs-3.5.0.31-full.tar.gz
+ee090f4e7f5933cbea6398ac461539cbdc8b7fd62f32934c78298c1e217d2a60e7f796bffdb88d36816bbfa9becd810846f5b988b5191e5a5b9da5def5d730fa xf86bigfont.patch
+d4a881b66f0258d6d9fb947a526868944e58217d534316dfa3f0837035415467a1e8841bf6c5b821ccedcc0c9e07b425f05243ddbd22aaec7ea2165c87d9211e fix-musl-headers-x86.patch"
diff --git a/testing/nx-libs/Makefile.patch b/testing/nx-libs/Makefile.patch
new file mode 100644
index 0000000000..35037d4f81
--- /dev/null
+++ b/testing/nx-libs/Makefile.patch
@@ -0,0 +1,11 @@
+--- nx-libs-3.5.0.28/Makefile
++++ ../Makefile
+@@ -14,7 +14,7 @@
+ BINDIR=$(PREFIX)/bin
+ NXLIBDIR=$(PREFIX)/lib/nx
+ X2GOLIBDIR=$(PREFIX)/lib/x2go
+-CONFIGURE ?= ./configure
++CONFIGURE ?= ./configure --prefix=usr
+
+ SHELL:=/bin/bash
+
diff --git a/testing/nx-libs/fix-musl-headers-x86.patch b/testing/nx-libs/fix-musl-headers-x86.patch
new file mode 100644
index 0000000000..3f51b8e4b1
--- /dev/null
+++ b/testing/nx-libs/fix-musl-headers-x86.patch
@@ -0,0 +1,11 @@
+--- ./nx-X11/extras/Mesa/src/mesa/main/glheader.h.orig
++++ ./nx-X11/extras/Mesa/src/mesa/main/glheader.h
+@@ -62,7 +62,7 @@
+ #include <stdlib.h>
+ #include <stdio.h>
+ #include <string.h>
+-#if defined(__linux__) && defined(__i386__)
++#if defined(__GLIBC__) && defined(__i386__)
+ #include <fpu_control.h>
+ #endif
+ #endif
diff --git a/testing/nx-libs/xf86bigfont.patch b/testing/nx-libs/xf86bigfont.patch
new file mode 100644
index 0000000000..94578dd778
--- /dev/null
+++ b/testing/nx-libs/xf86bigfont.patch
@@ -0,0 +1,11 @@
+--- nx-libs-3.5.0.28/nx-X11/programs/Xserver/Xext/xf86bigfont.c
++++ ../xf86bigfont.c
+@@ -46,7 +46,7 @@
+ /* Linux libc4 and libc5 only (because glibc doesn't include kernel headers):
+ Linux 2.0.x and 2.2.x define SHMLBA as PAGE_SIZE, but forget to define
+ PAGE_SIZE. It is defined in <asm/page.h>. */
+-#include <asm/page.h>
++#include <limits.h>
+ #endif
+ #ifdef SVR4
+ #include <sys/sysmacros.h>
diff --git a/testing/perl-alien-libgumbo/APKBUILD b/testing/perl-alien-libgumbo/APKBUILD
new file mode 100644
index 0000000000..458ff82b37
--- /dev/null
+++ b/testing/perl-alien-libgumbo/APKBUILD
@@ -0,0 +1,54 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer:
+pkgname=perl-alien-libgumbo
+_pkgreal=Alien-LibGumbo
+pkgver=0.02
+pkgrel=2
+pkgdesc="Perl module for Alien-LibGumbo"
+url="http://search.cpan.org/dist/Alien-LibGumbo/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl perl-alien-base gumbo-parser"
+cpanmakedepends="perl-module-build perl-alien-base perl-archive-extract
+ perl-path-class libtool autoconf automake"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+source="http://search.cpan.org/CPAN/authors/id/R/RU/RUZ/$_pkgreal-$pkgver.tar.gz"
+subpackages="$pkgname-doc"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ if [ -e Build.PL ]; then
+ perl Build.PL installdirs=vendor || return 1
+ else
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ fi
+}
+
+build() {
+ ./Build PERL_MM_USE_DEFAULT=1 INSTALLDIRS=vendor || return 1
+}
+
+package() {
+ cd "$_builddir"
+ install -m0644 -D lib/Alien/LibGumbo.pm \
+ "$pkgdir"/usr/share/perl5/vendor_perl/Alien/LibGumbo.pm
+ install -m0644 -D blib/lib/Alien/LibGumbo/Install/Files.pm \
+ "$pkgdir"/usr/share/perl5/vendor_perl/Alien/LibGumbo/Install/Files.pm
+ install -m0644 -D blib/lib/Alien/LibGumbo/ConfigData.pm \
+ "$pkgdir"/usr/share/perl5/vendor_perl/Alien/LibGumbo/ConfigData.pm
+ install -m0644 -D blib/libdoc/Alien::LibGumbo::ConfigData.3pm \
+ "$pkgdir"/usr/share/man/man3
+ mkdir -p "$pkgdir"/usr/share/perl5/vendor_perl/auto/share/dist/Alien-LibGumbo/lib
+ ln -s /usr/lib/libgumbo.so.1.0.0 \
+ "$pkgdir"/usr/share/perl5/vendor_perl/auto/share/dist/Alien-LibGumbo/lib/libgumbo.so.1
+ ln -s /usr/lib/libgumbo.so.1.0.0 \
+ "$pkgdir"/usr/share/perl5/vendor_perl/auto/share/dist/Alien-LibGumbo/lib/libgumbo.so
+}
+
+md5sums="9dbcfb65d56c17c09082079bbb42848c Alien-LibGumbo-0.02.tar.gz"
+sha256sums="ae4a4ec476dbfe7b9a2ba30041f43e01497c9b6ab761bc88b096a17a156c235f Alien-LibGumbo-0.02.tar.gz"
+sha512sums="bbfac21491382f536aea2ff0c5e4f6b8bbc31a317f42fce75dcd3ced97f3733b9fac19a06807016ee78fbc1b56e0a684469e3349c488610259ffc130224dfb04 Alien-LibGumbo-0.02.tar.gz"
diff --git a/testing/perl-apache2-sitecontrol/APKBUILD b/testing/perl-apache2-sitecontrol/APKBUILD
new file mode 100644
index 0000000000..516e88eb71
--- /dev/null
+++ b/testing/perl-apache2-sitecontrol/APKBUILD
@@ -0,0 +1,39 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-apache2-sitecontrol
+_pkgreal=Apache2-SiteControl
+pkgver=1.05
+pkgrel=1
+pkgdesc="Perl module for Apache2-SiteControl"
+url="http://search.cpan.org/dist/Apache2-SiteControl/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends="apache2 perl-crypt-cast5 perl-crypt-cbc"
+depends="$cpandepends"
+makedepends="perl-dev perl-libapreq2 perl-apache-authcookie perl-apache-session $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/A/AW/AWKAY/Apache2/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+}
+
+build() {
+ cd "$_builddir"
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="28beba3deeb24b3a4980f6491eb655f7 Apache2-SiteControl-1.05.tar.gz"
+sha256sums="4e9ee37e1a8e3d5df4587e9085621c2f6d253035c2cd2749cb16f6d8e7dbcc4c Apache2-SiteControl-1.05.tar.gz"
+sha512sums="ee329ca6abeee251e9c7028da89e0d7fa524f39c7b4714ced2fd9b3aef976f31695c482718c6e1a8da5254cd002df5c13ef289acf6a483900cf1d174e39a6d0a Apache2-SiteControl-1.05.tar.gz"
diff --git a/testing/perl-bind-config-parser/APKBUILD b/testing/perl-bind-config-parser/APKBUILD
new file mode 100644
index 0000000000..8ad62261e9
--- /dev/null
+++ b/testing/perl-bind-config-parser/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-bind-config-parser
+_pkgreal=BIND-Config-Parser
+pkgver=0.01
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/BIND-Config-Parser/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-parse-recdescent"
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/M/MA/MATTD/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="42385eb83eac4c85e867b4fd37b41b13 BIND-Config-Parser-0.01.tar.gz"
diff --git a/testing/perl-carp-assert/APKBUILD b/testing/perl-carp-assert/APKBUILD
new file mode 100644
index 0000000000..93691b4e24
--- /dev/null
+++ b/testing/perl-carp-assert/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-carp-assert
+_pkgreal=Carp-Assert
+pkgver=0.20
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Carp-Assert/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="9dafe361b9e5e93e8e3e70e015f6b191 Carp-Assert-0.20.tar.gz"
diff --git a/testing/perl-class-accessor-grouped/APKBUILD b/testing/perl-class-accessor-grouped/APKBUILD
new file mode 100644
index 0000000000..ce5efafea4
--- /dev/null
+++ b/testing/perl-class-accessor-grouped/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-class-accessor-grouped
+_pkgreal=Class-Accessor-Grouped
+pkgver=0.10004
+pkgrel=0
+pkgdesc="Lets you build groups of accessors"
+url="http://search.cpan.org/dist/Class-Accessor-Grouped/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-class-xsaccessor perl-class-inspector perl-sub-name"
+cpanmakedepends="perl-test-exception"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/R/RI/RIBASUSHI/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="7f415adb577ee181a77c6b04cd5fadab Class-Accessor-Grouped-0.10004.tar.gz"
diff --git a/testing/perl-class-dbi-abstractsearch/APKBUILD b/testing/perl-class-dbi-abstractsearch/APKBUILD
new file mode 100644
index 0000000000..ea67c7e328
--- /dev/null
+++ b/testing/perl-class-dbi-abstractsearch/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-class-dbi-abstractsearch
+_pkgreal=Class-DBI-AbstractSearch
+pkgver=0.07
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Class-DBI-AbstractSearch/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-class-dbi perl-sql-abstract-limit"
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="d40e7301201135fe0246251097132a54 Class-DBI-AbstractSearch-0.07.tar.gz"
diff --git a/testing/perl-class-dbi/APKBUILD b/testing/perl-class-dbi/APKBUILD
new file mode 100644
index 0000000000..fdcdc05cd1
--- /dev/null
+++ b/testing/perl-class-dbi/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-class-dbi
+_pkgreal=Class-DBI
+pkgver=v3.0.17
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Class-DBI/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-universal-moniker perl-ima-dbi perl-clone perl-class-data-inheritable perl-class-accessor perl-class-trigger"
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="df59962bab98a0d31bf1d04d7270831b Class-DBI-v3.0.17.tar.gz"
diff --git a/testing/perl-common-sense/APKBUILD b/testing/perl-common-sense/APKBUILD
new file mode 100644
index 0000000000..1221fd0894
--- /dev/null
+++ b/testing/perl-common-sense/APKBUILD
@@ -0,0 +1,35 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer:
+pkgname=perl-common-sense
+_pkgreal=common-sense
+pkgver=3.73
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/~logie/Dancer-Plugin-Swig-0.01/local/lib/perl5/darwin-thread-multi-2level/common/sense.pod"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+source="http://cpansearch.perl.org/src/LOGIE/Dancer-Plugin-Swig-0.01/local/lib/perl5/darwin-thread-multi-2level/common/sense.pm"
+
+_builddir="$srcdir"
+
+prepare() {
+ cd "$_builddir"
+}
+
+build() {
+ cd "$_builddir"
+}
+
+package() {
+ cd "$_builddir"
+ install -D -m0644 sense.pm "$pkgdir"/usr/share/perl5/vendor_perl/common/sense.pm
+}
+
+md5sums="e13866c7b4863a8b534c66e13ddee900 sense.pm"
+sha256sums="bcdb5fb9044c9f8730a5fc37ecc8823b1d9de0724c36b9e18eddd2820ace6711 sense.pm"
+sha512sums="b767595bba71f0c6e3a6591b7fbe55e698d222c8caef296ff6c1b125cc3ee40c1cc1d0626182a47c1fa3642450119f884f3252d8c6c75e060d1408501c94aa7b sense.pm"
diff --git a/testing/perl-dancer-plugin-swig/APKBUILD b/testing/perl-dancer-plugin-swig/APKBUILD
new file mode 100644
index 0000000000..e2cd680bc4
--- /dev/null
+++ b/testing/perl-dancer-plugin-swig/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer:
+pkgname=perl-dancer-plugin-swig
+_pkgreal=Dancer-Plugin-Swig
+pkgver=0.02
+pkgrel=0
+pkgdesc="A plugin for swig client"
+url="http://search.cpan.org/dist/Dancer-Plugin-Swig/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl perl-dancer perl-webservice-swigclient"
+cpanmakedepends="perl-test-most perl-test-easy"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/L/LO/LOGIE/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="15776c04e45734be860a74211ac535c6 Dancer-Plugin-Swig-0.02.tar.gz"
+sha256sums="ea67214c5915634736a55df09e8228a74014d7c5c039a6c661e82d66490721a5 Dancer-Plugin-Swig-0.02.tar.gz"
+sha512sums="81a72c1af8a2e7e9c01b0a6c7d79d54f54eda3fa1394670108d516ab1688a9bbce7e1130fba6e2d08d5feb8342dd2cf3c6c3541db4a0f69fd3b22b3595c3652f Dancer-Plugin-Swig-0.02.tar.gz"
diff --git a/testing/perl-data-compare/APKBUILD b/testing/perl-data-compare/APKBUILD
new file mode 100644
index 0000000000..2f5d1596ad
--- /dev/null
+++ b/testing/perl-data-compare/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <fcolista@alpinelinux.org>
+# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
+pkgname=perl-data-compare
+_pkgreal=Data-Compare
+pkgver=1.25
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Data-Compare/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-file-find-rule"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DC/DCANTRELL/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="6a397ab5833237f3ca05ed7277b19a7a Data-Compare-1.25.tar.gz"
+sha256sums="1d4b36db545fa9fbacd8c012618f6a7846238ee12ab627a2764cfaf45ad4ea73 Data-Compare-1.25.tar.gz"
+sha512sums="6db1235672030aa1afe52de1de9fac1f8a2af9eed99a3143d6c5b30669908125f584638fe06b8b33208f6d7fb734ccec7381c9411408a3f4fde1998707f748c9 Data-Compare-1.25.tar.gz"
diff --git a/testing/perl-data-dump/APKBUILD b/testing/perl-data-dump/APKBUILD
new file mode 100644
index 0000000000..40ad08f2b1
--- /dev/null
+++ b/testing/perl-data-dump/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer:
+pkgname=perl-data-dump
+_pkgreal=Data-Dump
+pkgver=1.23
+pkgrel=0
+pkgdesc="Pretty printing of data structures"
+url="http://search.cpan.org/dist/Data-Dump/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="762c111e525c82ff23d62c90821b26e9 Data-Dump-1.23.tar.gz"
+sha256sums="af53b05ef1387b4cab4427e6789179283e4f0da8cf036e8db516ddb344512b65 Data-Dump-1.23.tar.gz"
+sha512sums="6fd6c23bb6df7f7396219149dbfd23132fc2ea1dd344c32f62fc27a1afeeb28d7ebf2d429184bb6d1189f412e218f9e62a966b49fdd9ad5564e5152d67a02b96 Data-Dump-1.23.tar.gz"
diff --git a/testing/perl-dbix-datasource/APKBUILD b/testing/perl-dbix-datasource/APKBUILD
new file mode 100644
index 0000000000..bf163da4cd
--- /dev/null
+++ b/testing/perl-dbix-datasource/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-dbix-datasource
+_pkgreal=DBIx-DataSource
+pkgver=0.02
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/DBIx-DataSource/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-dbi"
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/I/IV/IVAN/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="12d60ad75ceced40286d18fcdcb5a40b DBIx-DataSource-0.02.tar.gz"
diff --git a/testing/perl-email-mime/APKBUILD b/testing/perl-email-mime/APKBUILD
new file mode 100644
index 0000000000..6b3049fb06
--- /dev/null
+++ b/testing/perl-email-mime/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-email-mime
+_pkgreal=Email-MIME
+pkgver=1.926
+pkgrel=0
+pkgdesc="easy MIME message handling"
+url="http://search.cpan.org/dist/Email-MIME/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-email-mime-contenttype perl-email-mime-encodings perl-email-simple perl-email-address perl-email-messageid perl-mime-types"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="fd8b06d1bf7b8599bdcf808f49908451 Email-MIME-1.926.tar.gz"
+sha256sums="458b8dd539827a671352f4e9c759322e74e630b8e934fc942dbc06525a7d01a2 Email-MIME-1.926.tar.gz"
+sha512sums="79eb9e98dcfda1fdd023ab7c42fe151cb9fc482844648be9bd9cbb73cc9583f1a78f8aa5e056e3c45a63fbe87db2aaafd7d460481697e22e787286f929807db3 Email-MIME-1.926.tar.gz"
diff --git a/testing/perl-email-simple/APKBUILD b/testing/perl-email-simple/APKBUILD
new file mode 100644
index 0000000000..da7118f771
--- /dev/null
+++ b/testing/perl-email-simple/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-email-simple
+_pkgreal=Email-Simple
+pkgver=2.203
+pkgrel=1
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Email-Simple/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-email-date-format"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="bb4bd46417522d86ae21186370c9b49d Email-Simple-2.203.tar.gz"
+sha256sums="a528d7531ff773e80d79e0d30b1845ee453561c5f060623397a609e315baeb43 Email-Simple-2.203.tar.gz"
+sha512sums="69dbacb379dac96d478e9fb98b11de724516e9d591b09a5f1f3866c3c3fc23458d0914271f52b2625b18cc06f229a20a7711341a88616b27c9ed5843a25786d1 Email-Simple-2.203.tar.gz"
diff --git a/testing/perl-extutils-pkgconfig/APKBUILD b/testing/perl-extutils-pkgconfig/APKBUILD
new file mode 100644
index 0000000000..280b4fbb8f
--- /dev/null
+++ b/testing/perl-extutils-pkgconfig/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-extutils-pkgconfig
+_pkgreal=ExtUtils-PkgConfig
+pkgver=1.15
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/ExtUtils-PkgConfig/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/X/XA/XAOC/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="1872e659cf2bb0b2471d75fce735e622 ExtUtils-PkgConfig-1.15.tar.gz"
+sha256sums="69b3192e22b37e930238f332b5bfa9e14e69bec1427ba70c8515fbba1137b0b3 ExtUtils-PkgConfig-1.15.tar.gz"
+sha512sums="975cc64d07f488bd0b89516ed3304797f8d74774f49e888e72788ef54f432ebb77a70af610e25f275baaea08a7756ce78c964e28bf2c853783a35e67b4aeeeaf ExtUtils-PkgConfig-1.15.tar.gz"
diff --git a/testing/perl-extutils-xsbuilder/APKBUILD b/testing/perl-extutils-xsbuilder/APKBUILD
new file mode 100644
index 0000000000..540ab4ce2b
--- /dev/null
+++ b/testing/perl-extutils-xsbuilder/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-extutils-xsbuilder
+_pkgreal=ExtUtils-XSBuilder
+pkgver=0.28
+pkgrel=0
+pkgdesc="Automatic XS glue code generation"
+url="http://search.cpan.org/dist/ExtUtils-XSBuilder/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-parse-recdescent perl-tie-ixhash"
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/G/GR/GRICHTER/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="1d33ddeacc01426a02e23c71c2e4cd04 ExtUtils-XSBuilder-0.28.tar.gz"
diff --git a/testing/perl-glib-ex-objectbits/APKBUILD b/testing/perl-glib-ex-objectbits/APKBUILD
new file mode 100644
index 0000000000..9929886066
--- /dev/null
+++ b/testing/perl-glib-ex-objectbits/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=perl-glib-ex-objectbits
+_pkgreal=Glib-Ex-ObjectBits
+pkgver=16
+pkgrel=0
+pkgdesc="Helpers for Glib objects."
+url="http://search.cpan.org/dist/Glib-Ex-ObjectBits/"
+arch="noarch"
+license="gpl_3"
+cpandepends="perl-devel-globaldestruction perl-glib"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="54be83717715e110e8934d6334d916aa Glib-Ex-ObjectBits-16.tar.gz"
+sha256sums="629a846ec03ed354d71464489f8dfa37ea7274c38e39041c03bf233673812c8f Glib-Ex-ObjectBits-16.tar.gz"
+sha512sums="e5820d251512121f4b44cfd67bcf44b1d94dfb756c5e646436684c45ff2d12f12cbfef4d9deb5deaaec0195ae1113448f0427dfe7f175ebd0ed878fb4ddcf671 Glib-Ex-ObjectBits-16.tar.gz"
diff --git a/testing/perl-gtk2-ex-widgetbits/APKBUILD b/testing/perl-gtk2-ex-widgetbits/APKBUILD
new file mode 100644
index 0000000000..e134523b95
--- /dev/null
+++ b/testing/perl-gtk2-ex-widgetbits/APKBUILD
@@ -0,0 +1,39 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-gtk2-ex-widgetbits
+_pkgreal=Gtk2-Ex-WidgetBits
+pkgver=48
+pkgrel=0
+pkgdesc="Helpers for Gtk2 widgets."
+url="http://search.cpan.org/dist/Gtk2-Ex-WidgetBits/"
+arch="noarch"
+license="open_source"
+cpandepends="perl-glib perl-glib-ex-objectbits perl-gtk2 perl-scope-guard perl-pango"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/K/KR/KRYDE/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="f65aadb9213492b2ceaad874c5b49943 Gtk2-Ex-WidgetBits-48.tar.gz"
diff --git a/testing/perl-hash-merge/APKBUILD b/testing/perl-hash-merge/APKBUILD
new file mode 100644
index 0000000000..ceb4210757
--- /dev/null
+++ b/testing/perl-hash-merge/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-hash-merge
+_pkgreal=Hash-Merge
+pkgver=0.12
+pkgrel=0
+pkgdesc="Merges arbitrarily deep hashes into a single hash"
+url="http://search.cpan.org/dist/Hash-Merge/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-clone"
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DM/DMUEY/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="875e2d9101bde2f6b410dd12f7e10964 Hash-Merge-0.12.tar.gz"
diff --git a/testing/perl-html-template/APKBUILD b/testing/perl-html-template/APKBUILD
new file mode 100644
index 0000000000..7e8ef4a86d
--- /dev/null
+++ b/testing/perl-html-template/APKBUILD
@@ -0,0 +1,39 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-html-template
+_pkgreal=HTML-Template
+pkgver=2.95
+pkgrel=0
+pkgdesc="Perl module to use HTML-like templating language"
+url="http://search.cpan.org/dist/HTML-Template/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/W/WO/WONKO/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="6f08e9631af52e6a5f6e4648b89265fe HTML-Template-2.95.tar.gz"
+sha256sums="78100adaea7a56ae65826220fcb0c18a188df25a27227f96175cf7169fbb501d HTML-Template-2.95.tar.gz"
+sha512sums="4b52856c7ac97a6c7985c73492aa5074f90b6b7f89dfb2434487a2cfeb9d521e55afe4e77c33285042e3d391fe6e9fc86a3f58bb6850d94f1331bb7be9809be7 HTML-Template-2.95.tar.gz"
diff --git a/testing/perl-io-socket-inet6/APKBUILD b/testing/perl-io-socket-inet6/APKBUILD
new file mode 100644
index 0000000000..9577993b42
--- /dev/null
+++ b/testing/perl-io-socket-inet6/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Timo Teräs <timo.teras@iki.fi>
+# Maintainer: Timo Teräs <timo.teras@iki.fi>
+pkgname=perl-io-socket-inet6
+_pkgreal=IO-Socket-INET6
+pkgver=2.72
+pkgrel=0
+pkgdesc="Object interface for AF_INET|AF_INET6 domain sockets"
+url="http://search.cpan.org/dist/IO-Socket-INET6/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-socket6"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends perl-module-build"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ perl Build.PL installdirs=vendor || return 1
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ ./Build ### && ./Build test #no ipv6 in buildozer
+}
+
+package() {
+ cd "$_builddir"
+ ./Build install destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="510ddc1bd75a8340ca7226123fb545c1 IO-Socket-INET6-2.72.tar.gz"
+sha256sums="85e020fa179284125fc1d08e60a9022af3ec1271077fe14b133c1785cdbf1ebb IO-Socket-INET6-2.72.tar.gz"
+sha512sums="c6dc0bbcc81682d317597de26d5023de84781e4bd2af224145cc4980db7fcbc93295a7d0a80c1eaa649c6aebf4057d0b0159f47e6a6379d4b545b49305f28a37 IO-Socket-INET6-2.72.tar.gz"
diff --git a/testing/perl-json-maybexs/APKBUILD b/testing/perl-json-maybexs/APKBUILD
new file mode 100644
index 0000000000..8cba726846
--- /dev/null
+++ b/testing/perl-json-maybexs/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer:
+pkgname=perl-json-maybexs
+_pkgreal=JSON-MaybeXS
+pkgver=1.003005
+pkgrel=0
+pkgdesc="Use L<Cpanel::JSON::XS> with a fallback to L<JSON::XS> and L<JSON::PP>"
+url="http://search.cpan.org/dist/JSON-MaybeXS/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-cpanel-json-xs"
+cpanmakedepends=" perl-test-without-module "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="653c088177982f8ac4e6b1697c2c94f4 JSON-MaybeXS-1.003005.tar.gz"
+sha256sums="bdb4694b564f10459d49b9658693ceb8b91b66db0fc5e9f19cf15f3ce46cc80a JSON-MaybeXS-1.003005.tar.gz"
+sha512sums="101b5b693eabeaf4e8417d021b3d311b9c8669a0121b97af7781cfbdb3ba24b8aef80d15a3cf4d78b40e47230e9f1c4450c73741675ec6d5ea018c6b06ea49d7 JSON-MaybeXS-1.003005.tar.gz"
diff --git a/testing/perl-module-install/APKBUILD b/testing/perl-module-install/APKBUILD
new file mode 100644
index 0000000000..d90ffc46d3
--- /dev/null
+++ b/testing/perl-module-install/APKBUILD
@@ -0,0 +1,44 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer:
+pkgname=perl-module-install
+_pkgreal=Module-Install
+pkgver=1.16
+pkgrel=0
+pkgdesc="Perl module for Module-Install"
+url="http://search.cpan.org/dist/Module-Install/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends="perl-file-remove perl-module-build perl-module-scandeps perl-yaml-tiny"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ if [ -e Build.PL ]; then
+ perl Build.PL installdirs=vendor || return 1
+ else
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ fi
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="daec67c3950dcecaa155389b9bdfc1ed Module-Install-1.16.tar.gz"
+sha256sums="afac1264255f4d822d44f84df1aa9affad207f9ae805e803d93c845fa120025e Module-Install-1.16.tar.gz"
+sha512sums="479a3b1a3e489c100bcb25c9f90445abcc90d194238804849b7d3ca1fa171a625b99f8390ce8967e96b10e854d843d117c70e566f12309b3ccdf32113f006422 Module-Install-1.16.tar.gz"
diff --git a/testing/perl-net-appliance-session/APKBUILD b/testing/perl-net-appliance-session/APKBUILD
new file mode 100644
index 0000000000..5393940307
--- /dev/null
+++ b/testing/perl-net-appliance-session/APKBUILD
@@ -0,0 +1,39 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-net-appliance-session
+_pkgreal=Net-Appliance-Session
+pkgver=3.121640
+pkgrel=0
+pkgdesc="Run command-line sessions to network appliances"
+url="http://search.cpan.org/dist/Net-Appliance-Session/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-moose perl-net-cli-interact"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/O/OL/OLIVER/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="cf824fe5475e2bcbebed419c07f63cfb Net-Appliance-Session-3.121640.tar.gz"
diff --git a/testing/perl-net-cidr-lite/APKBUILD b/testing/perl-net-cidr-lite/APKBUILD
new file mode 100644
index 0000000000..7e4bd9f859
--- /dev/null
+++ b/testing/perl-net-cidr-lite/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-net-cidr-lite
+_pkgreal=Net-CIDR-Lite
+pkgver=0.21
+pkgrel=0
+pkgdesc="Perl extension for merging IPv4 or IPv6 CIDR addresses"
+url="http://search.cpan.org/dist/Net-CIDR-Lite/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev perl-test-pod perl-test-pod-coverage $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DO/DOUGW/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="12280b3754886b876918f03f53aee4f5 Net-CIDR-Lite-0.21.tar.gz"
+sha256sums="cfa125e8a2aef9259bc3a44e07cbdfb7894b64d22e7c0cee92aee2f5c7915093 Net-CIDR-Lite-0.21.tar.gz"
+sha512sums="c8a5b00a26fb823e637825eac72ca7002f401a1a623d8b77b694848975124f24fba86830df8d41f6bdba4d2e2f0f93b2b155ac1511b607efa67942189614dc7c Net-CIDR-Lite-0.21.tar.gz"
diff --git a/testing/perl-net-dns-sec/APKBUILD b/testing/perl-net-dns-sec/APKBUILD
new file mode 100644
index 0000000000..0310e13f66
--- /dev/null
+++ b/testing/perl-net-dns-sec/APKBUILD
@@ -0,0 +1,43 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-net-dns-sec
+_pkgreal=Net-DNS-SEC
+pkgver=1.02
+pkgrel=0
+pkgdesc="DNSSEC extensions to Net::DNS"
+url="http://search.cpan.org/dist/Net-DNS-SEC/"
+arch="noarch"
+license="mit"
+cpandepends="perl-crypt-openssl-dsa perl-net-dns perl-crypt-openssl-rsa
+ perl-crypt-openssl-random perl-digest-bubblebabble perl-mime-base32
+ perl-crypt-openssl-bignum"
+cpanmakedepends=" "
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/N/NL/NLNETLABS/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="3d11216697d0fe43e74484b59f94188d Net-DNS-SEC-1.02.tar.gz"
+sha256sums="e78090addfd4a5d4068b173e6e071d984ae8b67dd803f8f33b73eb7692085fbf Net-DNS-SEC-1.02.tar.gz"
+sha512sums="cbbf0a4eb6948047a991cf473b0824cfa69c7f7e2d07190fbc9fe62be79106635ebfc02ab02a559079f2936ff354f5ff9275fd16cf37d7bc2d78a87cf0b103b0 Net-DNS-SEC-1.02.tar.gz"
diff --git a/testing/perl-net-iptrie/APKBUILD b/testing/perl-net-iptrie/APKBUILD
new file mode 100644
index 0000000000..88b7adb65a
--- /dev/null
+++ b/testing/perl-net-iptrie/APKBUILD
@@ -0,0 +1,38 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-net-iptrie
+_pkgreal=Net-IPTrie
+pkgver=0.7
+pkgrel=0
+pkgdesc="Perl module for building IPv4 and IPv6 address space hierarchies"
+url="http://search.cpan.org/dist/Net-IPTrie/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-netaddr-ip"
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/C/CV/CVICENTE/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ perl Build.PL installdirs=vendor || return 1
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ ./Build && ./Build test
+}
+
+package() {
+ cd "$_builddir"
+ ./Build install destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="c465a27fdac74109b34dfbc271adb90d Net-IPTrie-0.7.tar.gz"
diff --git a/testing/perl-net-irr/APKBUILD b/testing/perl-net-irr/APKBUILD
new file mode 100644
index 0000000000..45f4081724
--- /dev/null
+++ b/testing/perl-net-irr/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-net-irr
+_pkgreal=Net-IRR
+pkgver=0.08
+pkgrel=0
+pkgdesc="Perl interface to the Internet Route Registry daemon"
+url="http://search.cpan.org/dist/Net-IRR/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev cairo-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/T/TC/TCAINE/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="188a1c6fc339a97042acbc0a136964d3 Net-IRR-0.08.tar.gz"
diff --git a/testing/perl-object-insideout/APKBUILD b/testing/perl-object-insideout/APKBUILD
new file mode 100644
index 0000000000..a4e187dbb8
--- /dev/null
+++ b/testing/perl-object-insideout/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+# Maintainer: Kiyoshi Aman <kiyoshi.aman@gmail.com>
+pkgname=perl-object-insideout
+_pkgreal=Object-InsideOut
+pkgver=3.81
+pkgrel=0
+pkgdesc="Comprehensive inside-out object support module"
+url="http://search.cpan.org/dist/Object-InsideOut/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends="perl-exception-class"
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/J/JD/JDHEDDEN/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ perl Build.PL installdirs=vendor || return 1
+}
+
+build() {
+ cd "$_builddir"
+ ./Build && ./Build test
+}
+
+package() {
+ cd "$_builddir"
+ ./Build install destdir="$pkgdir" || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="560170295e21857232d547ccd3b0adf0 Object-InsideOut-3.81.tar.gz"
diff --git a/testing/perl-parallel-forkmanager/APKBUILD b/testing/perl-parallel-forkmanager/APKBUILD
new file mode 100644
index 0000000000..0537ab84be
--- /dev/null
+++ b/testing/perl-parallel-forkmanager/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-parallel-forkmanager
+_pkgreal=Parallel-ForkManager
+pkgver=0.7.9
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Parallel-ForkManager/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/D/DL/DLUX/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="b49dbc6fafb697945d33ffbded0009f7 Parallel-ForkManager-0.7.9.tar.gz"
diff --git a/testing/perl-radiusperl/APKBUILD b/testing/perl-radiusperl/APKBUILD
new file mode 100644
index 0000000000..cde96744b2
--- /dev/null
+++ b/testing/perl-radiusperl/APKBUILD
@@ -0,0 +1,38 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-radiusperl
+_pkgreal=Authen-Radius
+pkgver=0.23
+pkgrel=0
+pkgdesc="Perl module for RadiusPerl"
+url="http://search.cpan.org/dist/RadiusPerl/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends="perl-data-hexdump perl-digest-perl-md5 perl-data-dumper"
+depends="$cpandepends"
+makedepends="perl-dev freeradius-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/M/MA/MANOWAR/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+build() {
+ cd "$_builddir"
+ mkdir -p ${pkgdir}/etc/raddb
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor || return 1
+ sed -i "s:/etc/raddb:$pkgdir/etc/raddb:" install-radius-db.PL
+ make
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p ${pkgdir}/etc/raddb
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="556c5bea85f67ab83ec247a74c65e27e Authen-Radius-0.23.tar.gz"
+sha256sums="43c0f3a5bee279156de78b7fbd99f22401994ae82e1adeda09c88b5c53dd50c3 Authen-Radius-0.23.tar.gz"
+sha512sums="110dde66ebb23cea256c093e139deb51eb755c051deaf1e221be20b9a7d689b234d2033d911c30f4212f47848751793c7c33393841270e230334f8528c68f61a Authen-Radius-0.23.tar.gz"
diff --git a/testing/perl-time-local/APKBUILD b/testing/perl-time-local/APKBUILD
new file mode 100644
index 0000000000..62ae9966d7
--- /dev/null
+++ b/testing/perl-time-local/APKBUILD
@@ -0,0 +1,37 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=perl-time-local
+_pkgreal=Time-Local
+pkgver=1.2000
+pkgrel=0
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Time-Local/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=""
+cpanmakedepends=""
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="dc9c362e980830d62b1e9653ca4f27fd Time-Local-1.2000.tar.gz"
diff --git a/testing/perl-types-serialiser/APKBUILD b/testing/perl-types-serialiser/APKBUILD
new file mode 100644
index 0000000000..90557dcba9
--- /dev/null
+++ b/testing/perl-types-serialiser/APKBUILD
@@ -0,0 +1,41 @@
+# Automatically generated by apkbuild-cpan, template 1
+# Contributor:
+# Maintainer:
+pkgname=perl-types-serialiser
+_pkgreal=Types-Serialiser
+pkgver=1.0
+pkgrel=1
+pkgdesc="unknown"
+url="http://search.cpan.org/dist/Types-Serialiser/"
+arch="noarch"
+license="GPL PerlArtistic"
+cpandepends=
+cpanmakedepends="perl-common-sense"
+depends="$cpandepends"
+makedepends="perl-dev $cpanmakedepends"
+subpackages="$pkgname-doc"
+source="http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/$_pkgreal-$pkgver.tar.gz"
+
+_builddir="$srcdir/$_pkgreal-$pkgver"
+
+prepare() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
+}
+
+build() {
+ cd "$_builddir"
+ export CFLAGS=`perl -MConfig -E 'say $Config{ccflags}'`
+ make && make test
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
+}
+
+md5sums="76460a2bfbc644672499af89192e03fe Types-Serialiser-1.0.tar.gz"
+sha256sums="7ad3347849d8a3da6470135018d6af5fd8e58b4057cd568c3813695f2a04730d Types-Serialiser-1.0.tar.gz"
+sha512sums="b786bcd3ee976a6ad948cc98a9c71d2cdcd30f485528eff059091f6d86ae7078c10ba2dc2982326fcf0184dbfbdddea84daff324c6ec6a129fe6aac01253c8fb Types-Serialiser-1.0.tar.gz"
diff --git a/testing/pulseaudio/0001-padsp-Make-it-compile-on-musl.patch b/testing/pulseaudio/0001-padsp-Make-it-compile-on-musl.patch
new file mode 100644
index 0000000000..22f524313d
--- /dev/null
+++ b/testing/pulseaudio/0001-padsp-Make-it-compile-on-musl.patch
@@ -0,0 +1,70 @@
+From f6ab3c3aa7a1841c8add04828029356d2a8c88e7 Mon Sep 17 00:00:00 2001
+From: Khem Raj <raj.khem@gmail.com>
+Date: Mon, 6 Apr 2015 21:56:31 -0700
+Subject: [PATCH] padsp: Make it compile on musl
+
+break assumptions on glibc and there is no stat64 on non
+glibc C libraries
+
+See pulseaudio bug
+
+https://bugs.freedesktop.org/show_bug.cgi?id=85319
+
+Upstream-Status: Pending
+Signed-off-by: Khem Raj <raj.khem@gmail.com>
+---
+ src/utils/padsp.c | 15 +++++++++------
+ 1 file changed, 9 insertions(+), 6 deletions(-)
+
+diff --git a/src/utils/padsp.c b/src/utils/padsp.c
+index e61373c..684721a 100644
+--- src/utils/padsp.c
++++ src/utils/padsp.c
+@@ -2368,7 +2368,7 @@ fail:
+ return ret;
+ }
+
+-#ifdef sun
++#ifndef __GLIBC__
+ int ioctl(int fd, int request, ...) {
+ #else
+ int ioctl(int fd, unsigned long request, ...) {
+@@ -2508,10 +2508,13 @@ int stat(const char *pathname, struct stat *buf) {
+
+ return 0;
+ }
+-
+ #ifdef HAVE_OPEN64
+-
++#undef stat64
++#ifdef __GLIBC__
+ int stat64(const char *pathname, struct stat64 *buf) {
++#else
++int stat64(const char *pathname, struct stat *buf) {
++#endif
+ struct stat oldbuf;
+ int ret;
+
+@@ -2544,7 +2547,7 @@ int stat64(const char *pathname, struct stat64 *buf) {
+
+ return 0;
+ }
+-
++#undef open64
+ int open64(const char *filename, int flags, ...) {
+ va_list args;
+ mode_t mode = 0;
+@@ -2670,8 +2673,8 @@ FILE* fopen(const char *filename, const char *mode) {
+ }
+
+ #ifdef HAVE_OPEN64
+-
+-FILE *fopen64(const char *filename, const char *mode) {
++#undef fopen64
++FILE *fopen64(const char *__restrict filename, const char *__restrict mode) {
+
+ debug(DEBUG_LEVEL_VERBOSE, __FILE__": fopen64(%s)\n", filename?filename:"NULL");
+
+--
+2.1.4
+
diff --git a/testing/pulseaudio/APKBUILD b/testing/pulseaudio/APKBUILD
new file mode 100644
index 0000000000..8885170df9
--- /dev/null
+++ b/testing/pulseaudio/APKBUILD
@@ -0,0 +1,147 @@
+# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net>
+# Contributor: Carlo Landmeter <clandmeter@gmail.com>
+# Maintainer:
+pkgname=pulseaudio
+pkgver=8.0
+pkgrel=0
+pkgdesc="A featureful, general-purpose sound server"
+url="http://www.freedesktop.org/wiki/Software/PulseAudio"
+arch="all"
+license="LGPL"
+depends=""
+depends_dev="libcap-dev json-c-dev libsndfile-dev dbus-dev alsa-lib-dev tdb-dev
+ speexdsp-dev sbc-dev bluez-dev jack-dev avahi-dev openssl-dev eudev-dev"
+makedepends="$depends_dev automake autoconf m4 intltool libtool bash"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-bluez
+ $pkgname-alsa $pkgname-utils $pkgname-jack $pkgname-zeroconf $pkgname-system
+ $pkgname-bash-completion:bashcomp $pkgname-zsh-completion:zshcomp"
+source="http://freedesktop.org/software/pulseaudio/releases/pulseaudio-$pkgver.tar.xz
+ 0001-padsp-Make-it-compile-on-musl.patch
+ $pkgname.initd
+ $pkgname.confd"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p0 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --localstatedir=/var \
+ --disable-bluez4 \
+ --disable-nls \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make -j1 DESTDIR="$pkgdir" install || return 1
+}
+
+system() {
+ arch="noarch"
+ depends="$pkgname"
+ pkgdesc="Pulseaudio system-wide init scripts"
+ install -D -m755 "$srcdir"/$pkgname.initd \
+ "$subpkgdir"/etc/init.d/$pkgname || return 1
+ install -D -m644 "$srcdir"/$pkgname.confd \
+ "$subpkgdir"/etc/conf.d/$pkgname || return 1
+ mv "$pkgdir"/etc/dbus-1 "$subpkgdir"/etc
+}
+
+libs() {
+ pkgdesc="Pulseaudio libraries"
+ mkdir -p "$subpkgdir"/usr/lib \
+ "$subpkgdir"/etc/pulse || return 1
+ mv "$pkgdir"/usr/lib/pulseaudio \
+ "$subpkgdir"/usr/lib/ || return 1
+ mv "$pkgdir"/usr/lib/libpulse.so.0* \
+ "$pkgdir"/usr/lib/libpulse-simple.so.0* \
+ "$subpkgdir"/usr/lib/ || return 1
+ mv "$pkgdir"/etc/pulse/client.conf \
+ "$subpkgdir"/etc/pulse/ || return 1
+}
+
+bluez() {
+ pkgdesc="Pulseaudio bluetooth support"
+ mkdir -p "$subpkgdir"/usr/lib/pulse-$pkgver/modules
+ mv "$pkgdir"/usr/lib/pulse-$pkgver/modules/*bluez*.so \
+ "$pkgdir"/usr/lib/pulse-$pkgver/modules/*bluetooth*.so \
+ "$subpkgdir"/usr/lib/pulse-$pkgver/modules/ || return 1
+}
+
+alsa() {
+ pkgdesc="Pulseaudio alsa support"
+ mkdir -p "$subpkgdir"/usr/lib/pulse-$pkgver/modules
+ mv "$pkgdir"/usr/lib/pulse-$pkgver/modules/*alsa*.so \
+ "$subpkgdir"/usr/lib/pulse-$pkgver/modules/ || return 1
+}
+
+utils() {
+ pkgdesc="Pulseaudio utilities"
+ mkdir -p "$subpkgdir"/usr/bin
+ mv "$pkgdir"/usr/bin/pa* \
+ "$pkgdir"/usr/bin/esdcompat \
+ "$subpkgdir"/usr/bin/ || return 1
+}
+
+jack() {
+ pkgdesc="Pulseaudio jack support"
+ mkdir -p "$subpkgdir"/usr/lib/pulse-$pkgver/modules
+ mv "$pkgdir"/usr/lib/pulse-$pkgver/modules/*jack*.so \
+ "$subpkgdir"/usr/lib/pulse-$pkgver/modules/ || return 1
+}
+
+zeroconf() {
+ pkgdesc="Pulseaudio zeroconf support"
+ mkdir -p "$subpkgdir"/usr/lib/pulse-$pkgver/modules
+ mv "$pkgdir"/usr/lib/pulse-$pkgver/modules/*avahi*.so \
+ "$pkgdir"/usr/lib/pulse-$pkgver/modules/*zeroconf*.so \
+ "$pkgdir"/usr/lib/pulse-$pkgver/modules/*raop*.so \
+ "$subpkgdir"/usr/lib/pulse-$pkgver/modules/ || return 1
+}
+
+bashcomp() {
+ pkgdesc="Bash completion for $pkgname"
+ arch="noarch"
+ depends=""
+ install_if="$pkgname=$pkgver-r$pkgrel bash-completion"
+ install -dm755 "$subpkgdir"/usr/share || return 1
+ mv "$pkgdir"/usr/share/bash-completion "$subpkgdir"/usr/share
+}
+
+zshcomp() {
+ pkgdesc="Zsh completion for $pkgname"
+ arch="noarch"
+ depends=""
+ install_if="$pkgname=$pkgver-r$pkgrel zsh"
+ install -dm755 "$subpkgdir"/usr/share || return 1
+ mv "$pkgdir"/usr/share/zsh "$subpkgdir"/usr/share
+}
+
+md5sums="8678442ba0bb4b4c33ac6f62542962df pulseaudio-8.0.tar.xz
+be814e7c1f53062f1a506c71a97dd6cb 0001-padsp-Make-it-compile-on-musl.patch
+884cb9a843361844904e8c85542e72fb pulseaudio.initd
+bf7487ba2c48fc8a56bca41c97a18934 pulseaudio.confd"
+sha256sums="690eefe28633466cfd1ab9d85ebfa9376f6b622deec6bfee5091ac9737cd1989 pulseaudio-8.0.tar.xz
+1c0ffd3a95b4bc65b97bd8bc6cca0fce386cecf2807e96ddd146521b47003004 0001-padsp-Make-it-compile-on-musl.patch
+bbd37d052962ddbf6ae633e4e3896da292d3e916a9123558a9b973096dda842d pulseaudio.initd
+c03661e8cc902d27ff6b52f291207f2b008957571b942abdd92a873a52aae0dd pulseaudio.confd"
+sha512sums="7008abf768f720839353038ffd3e35e442f82452aa7e27d446f75d403096b042643d2b2b1d153454302bd5a51f9217f4979c8995b80ba2695f141e6a29e164fa pulseaudio-8.0.tar.xz
+0542ade084625e278bf1efdf4a72ed282e4876e98a7358d3c2746659ac3cac4098850468447b6018413022ee7dc085ac2ef34cc661d88e1d150a920cfcf79620 0001-padsp-Make-it-compile-on-musl.patch
+34fe54ece5df60ce63a7955cd828a2716670fef71f40960698ae5518fdaf9cd599f4d8f8852e2c88d715600a9ad06a38984415e5eb320071012e5eb6e5c1b8b1 pulseaudio.initd
+75b54581591519d63a3362b155c0f9b0501a60763ab394693a456c44d0216138cf3a40bdd0f7442028663bc045e9ffee286f8f8eaf2ee3bb17379b43615fee0e pulseaudio.confd"
diff --git a/testing/pulseaudio/pulseaudio.confd b/testing/pulseaudio/pulseaudio.confd
new file mode 100644
index 0000000000..1d31d342a0
--- /dev/null
+++ b/testing/pulseaudio/pulseaudio.confd
@@ -0,0 +1,7 @@
+# Config file for /etc/init.d/pulseaudio
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/files/pulseaudio.conf.d,v 1.6 2006/07/29 15:34:18 flameeyes Exp $
+
+# For more see "pulseaudio -h".
+
+# Startup options
+PA_OPTS="--log-target=syslog --disallow-module-loading=1"
diff --git a/testing/pulseaudio/pulseaudio.initd b/testing/pulseaudio/pulseaudio.initd
new file mode 100644
index 0000000000..6dc11bf82b
--- /dev/null
+++ b/testing/pulseaudio/pulseaudio.initd
@@ -0,0 +1,81 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/pulseaudio/files/pulseaudio.init.d-5,v 1.1 2011/03/27 16:58:49 ssuominen Exp $
+
+depend() {
+ need localmount
+ use net
+
+ local script="/etc/pulse/system.pa"
+
+ for opt in ${PA_OPTS}; do
+ case "$opt" in
+ --file=*) script="${opt#*=}" ;;
+ -F*) script="${opt#-F}" ;;
+ esac
+ done
+
+ config "$script"
+
+ local needs="$(get_options need)"
+ if [ -n "${needs}" ]; then
+ need ${needs}
+ return
+ fi
+
+ if egrep -q '^[[:space:]]*load-module[[:space:]]+module-console-kit' "$script"; then
+ needs="${needs} consolekit"
+ fi
+
+#ifdef UDEV
+ if egrep -q '^[[:space:]]*load-module[[:space:]]+module-udev-detect' "$script"; then
+ needs="${needs} udev"
+ fi
+#endif
+
+#ifdef AVAHI
+ if egrep -q '^[[:space:]]*load-module[[:space:]]+module-zeroconf-publish' "$script"; then
+ needs="${needs} avahi-daemon"
+ fi
+#endif
+
+#ifdef BLUETOOTH
+ if egrep -q '^[[:space:]]*load-module[[:space:]]+module-bt-proximity' "$script"; then
+ needs="${needs} bluetooth"
+ fi
+#endif
+
+#ifdef ALSA
+ if egrep -q '^[[:space:]]*load-module[[:space:]]+module-alsa-(sink|source)' "$script" ||
+ egrep -q '^[[:space:]]*load-module[[:space:]]+module-(udev-)?detect' "$script" ||
+ egrep -q '^[[:space:]]*add-autoload-source[[:space:]]+(input|output)[[:space:]]+module-alsa-(sink|source)' "$script"; then
+ needs="${needs} alsa" # in Alpine install alsa-utils to provide /etc/init.d/alsa (not alsasound as in Gentoo).
+ fi
+#endif
+
+ need "${needs}"
+ save_options need "${needs}"
+}
+
+start() {
+ if [ -z "${PULSEAUDIO_SHOULD_NOT_GO_SYSTEMWIDE}" ]; then
+ eerror "Please don't use system wide PulseAudio unless you read the"
+ eerror "documentation available at http://www.freedesktop.org/wiki/Software/PulseAudio/Documentation/User/SystemWide/"
+ eerror ""
+ eerror "When you're done, please set the variable PULSEAUDIO_SHOULD_NOT_GO_SYSTEMWIDE in"
+ eerror "/etc/conf.d/pulseaudio . Please remember that upstream does not support this mode"
+ eerror "when used for standard desktop configurations."
+ return 1
+ fi
+ ebegin "Starting pulseaudio"
+ PA_ALL_OPTS="${PA_OPTS} --fail=1 --daemonize=1 --system"
+ start-stop-daemon --start --exec /usr/bin/pulseaudio -- ${PA_ALL_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping pulseaudio"
+ start-stop-daemon --stop --quiet --exec /usr/bin/pulseaudio --pidfile /var/run/pulse/pid
+ eend $?
+}
diff --git a/testing/py-beautifulsoup4/APKBUILD b/testing/py-beautifulsoup4/APKBUILD
new file mode 100644
index 0000000000..1d41e2d6c6
--- /dev/null
+++ b/testing/py-beautifulsoup4/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
+# Maintainer: Fabian Affolter <fabian@affolter-engineering.ch>
+pkgname=py-beautifulsoup4
+_pkgname=beautifulsoup4
+pkgver=4.3.2
+pkgrel=0
+pkgdesc="A Python HTML/XML parser"
+url="http://www.crummy.com/software/BeautifulSoup/index.html"
+arch="noarch"
+license="MIT"
+depends="python"
+depends_dev=""
+makedepends="python-dev py-setuptools"
+install=""
+subpackages=""
+source="http://www.crummy.com/software/BeautifulSoup/bs4/download/${pkgver:0:3}/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ python setup.py build || return 1
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+md5sums="b8d157a204d56512a4cc196e53e7d8ee beautifulsoup4-4.3.2.tar.gz"
+sha256sums="a2b29bd048ca2fe54a046b29770964738872a9747003a371344a93eedf7ad58e beautifulsoup4-4.3.2.tar.gz"
+sha512sums="3d55e553a1a2109378e2961a0feb23a8f038f4ff7bd335a21a26d588d39761f6735888e6ca2d001587e9a6a3b8259a1a09b92b310aa17e9b76fd85601a1ca592 beautifulsoup4-4.3.2.tar.gz"
diff --git a/testing/py-jabberbot/APKBUILD b/testing/py-jabberbot/APKBUILD
new file mode 100644
index 0000000000..e0cb560d70
--- /dev/null
+++ b/testing/py-jabberbot/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Francesco Colista <francesco.colista@gmail.com>
+# Maintainer: Francesco Colista <francesco.colista@gmail.com>
+pkgname=py-jabberbot
+_pkgname=python-jabberbot
+pkgver=0.15
+pkgrel=0
+pkgdesc="A simple Jabber Bot for Python"
+url="http://pypi.python.org/pypi/jabberbot"
+arch="noarch"
+license="GPL3+"
+depends="py-xmpppy python"
+makedepends="python-dev"
+install=""
+subpackages=""
+source="http://thpinfo.com/2007/$_pkgname/jabberbot-$pkgver.tar.gz"
+
+_builddir=$srcdir/jabberbot-$pkgver
+build() {
+ cd "$_builddir"
+ python setup.py build
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --root="$pkgdir"
+}
+
+md5sums="081be2f6d8c82740b9906bf5b8562e7d jabberbot-0.15.tar.gz"
+sha256sums="b8b946958e15f5413adcb02fecf7cffd6d008669a692ef6a2bc4bf3717c06a1d jabberbot-0.15.tar.gz"
+sha512sums="57cf8cbd79fd530565308b644b7e22d985e7ce5319eb8d5b127546ded4bf49d3c196a7780321aaf093cb948d1217e4ef7c265b7a3b0f411e5c1999feb591b749 jabberbot-0.15.tar.gz"
diff --git a/testing/py-tkinter/APKBUILD b/testing/py-tkinter/APKBUILD
new file mode 100644
index 0000000000..1effa6fc70
--- /dev/null
+++ b/testing/py-tkinter/APKBUILD
@@ -0,0 +1,87 @@
+# Maintainer: Isaac Dunham <ibid.ag@gmail.com>
+# This depends on the current packaging of Python,
+# which includes idle, the tkinter and idle *.py* files, but not _tkinter.so
+pkgname=py-tkinter
+_pkgname=python
+pkgver=2.7.9
+_verbase=${pkgver%.*}
+pkgrel=0
+pkgdesc="Tk interface for Python"
+url="http://www.python.org"
+arch="all"
+license="custom"
+subpackages=""
+depends=""
+makedepends="expat-dev openssl-dev zlib-dev ncurses-dev bzip2-dev
+ libffi-dev tk-dev python-dev"
+source="http://www.$pkgname.org/ftp/$_pkgname/$pkgver/Python-$pkgver.tar.xz
+ find_library.patch
+ unchecked-ioctl.patch
+ "
+
+prepare() {
+ cd "$srcdir/Python-$pkgver"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1
+ esac
+ done
+
+ # verify that python version corresponds with system python version
+ _pyver=$(python -c 'import platform; print platform.python_version()')
+ if [ "$_pyver" != "$pkgver" ]; then
+ error "$pkgver does not correspond with python $_pyver"
+ return 1
+ fi
+
+ # Make sure we use system libs
+ rm -r Modules/expat Modules/_ctypes/libffi* Modules/zlib || return 1
+
+ # make sure our /dev/shm is world writeable
+ if ! touch /dev/shm/"$pkgname-$pkgver"; then
+ error "/dev/shm is not world writeable. this will cause a broken python build"
+ return 1
+ fi
+ rm /dev/shm/"$pkgname-$pkgver"
+}
+
+build() {
+ cd "$srcdir/Python-$pkgver"
+ export OPT="$CFLAGS"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --enable-shared \
+ --with-threads \
+ --enable-ipv6 \
+ --with-system-ffi \
+ --with-system-expat \
+ --with-system-zlib \
+ --enable-unicode=ucs4 \
+ --with-tcltk-libs="`pkg-config --libs tk`" \
+ --with-tcltk-includes="`pkg-config --cflags tk`" \
+ || return 1
+ make sharedmods || return 1
+}
+
+package() {
+ cd "$srcdir/Python-$pkgver"
+ make -j1 DESTDIR="$pkgdir" sharedinstall || return 1
+ find "$pkgdir/" -type f ! -name _tkinter.so -exec rm -f '{}' + \
+ || return 1
+ find "$pkgdir/" -type l -exec rm -f '{}' + || return 1
+ find "$pkgdir/" -type d -exec rmdir -p '{}' \; || true
+ ls "$pkgdir/usr/lib/$_pkgname$_verbase/lib-dynload/_tkinter.so" \
+ || return 1
+}
+
+md5sums="38d530f7efc373d64a8fb1637e3baaa7 Python-2.7.9.tar.xz
+5d8ca92fa6f187573104593470a9d3d5 find_library.patch
+dada786a50fa332686a9b9260d84c110 unchecked-ioctl.patch"
+sha256sums="90d27e14ea7e03570026850e2e50ba71ad20b7eb31035aada1cf3def8f8d4916 Python-2.7.9.tar.xz
+63b2b1489c2b97b450bb2d19b64f2ae6cca5c43d549c131c7807fbe52b7bbf21 find_library.patch
+f9d37609bab83d9ffff96ec9a33e16568cfb14980d389f7fe34a1c837397e359 unchecked-ioctl.patch"
+sha512sums="6939182463272a6bb9da0e327bfb9efc574a87820f2ae39eaf02d9fae053dbe0004330e916e6828becfef94cbe294acb0a88a600f8930b99b94fcfc4efc44ff4 Python-2.7.9.tar.xz
+cbb18c23b1b55025ba8a08debd545b68317eef2732f9f631d2629ed71b603b9a90843bca5df9db7072e83e29c928b0e9c557d0710955692052607db36a241c08 find_library.patch
+5a8e013a4132d71c4360771f130d27b37275ae59330cf9a75378dc8a11236017f540eb224f2a148984e82ca3fb6b29129375b1080ba05b81044faa717520ab82 unchecked-ioctl.patch"
diff --git a/testing/py-tkinter/find_library.patch b/testing/py-tkinter/find_library.patch
new file mode 100644
index 0000000000..c4975250bb
--- /dev/null
+++ b/testing/py-tkinter/find_library.patch
@@ -0,0 +1,11 @@
+--- ./Lib/ctypes/util.py.orig
++++ ./Lib/ctypes/util.py
+@@ -227,7 +227,7 @@
+ abi_type = mach_map.get(machine, 'libc6')
+
+ # XXX assuming GLIBC's ldconfig (with option -p)
+- expr = r'\s+(lib%s\.[^\s]+)\s+\(%s' % (re.escape(name), abi_type)
++ expr = r'\s+(lib%s\.[^\s]+)\s+\(' % (re.escape(name))
+ f = os.popen('/sbin/ldconfig -p 2>/dev/null')
+ try:
+ data = f.read()
diff --git a/testing/py-tkinter/unchecked-ioctl.patch b/testing/py-tkinter/unchecked-ioctl.patch
new file mode 100644
index 0000000000..4d5564c2cb
--- /dev/null
+++ b/testing/py-tkinter/unchecked-ioctl.patch
@@ -0,0 +1,11 @@
+--- ./Modules/fcntlmodule.c.orig
++++ ./Modules/fcntlmodule.c
+@@ -118,7 +118,7 @@
+ int mutate_arg = 1;
+ char buf[IOCTL_BUFSZ+1]; /* argument plus NUL byte */
+
+- if (PyArg_ParseTuple(args, "O&Iw#|i:ioctl",
++ if (PyArg_ParseTuple(args, "O&Iw#|n:ioctl",
+ conv_descriptor, &fd, &code,
+ &str, &len, &mutate_arg)) {
+ char *arg;
diff --git a/testing/py-xdg/APKBUILD b/testing/py-xdg/APKBUILD
new file mode 100644
index 0000000000..c22458d32f
--- /dev/null
+++ b/testing/py-xdg/APKBUILD
@@ -0,0 +1,36 @@
+# Contributor: August Klein <amatcoder@gmail.com>
+# Maintainer: August Klein <amatcoder@gmail.com>
+pkgname=py-xdg
+_pkgname=pyxdg
+pkgver=0.25
+pkgrel=0
+pkgdesc="A python library to access freedesktop.org standards"
+url="http://freedesktop.org/wiki/Software/pyxdg"
+arch="noarch"
+license="LGPL"
+depends=""
+depends_dev="python-dev"
+makedepends="$depends_dev"
+install=""
+subpackages=""
+source="http://people.freedesktop.org/~takluyver/$_pkgname-$pkgver.tar.gz"
+
+_builddir="$srcdir"/$_pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+package() {
+ cd "$_builddir"
+ python setup.py install --prefix=/usr --root="$pkgdir" || return 1
+}
+
+md5sums="bedcdb3a0ed85986d40044c87f23477c pyxdg-0.25.tar.gz"
+sha256sums="81e883e0b9517d624e8b0499eb267b82a815c0b7146d5269f364988ae031279d pyxdg-0.25.tar.gz"
+sha512sums="86cbf3a54fb8e79043db60dcdbb3fb10013ae25a900fa3592edc8a24bf3f440c19bc04626c7906293c785fcb56eab9d87d209b723b5baa872376ba1eb86758b6 pyxdg-0.25.tar.gz"
diff --git a/testing/qt5-qtkeychain/APKBUILD b/testing/qt5-qtkeychain/APKBUILD
new file mode 100644
index 0000000000..1c93dbf85c
--- /dev/null
+++ b/testing/qt5-qtkeychain/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: Leonardo Arena <rnalrd@alpinelinux.org>
+# Maintainer:
+pkgname=qt5-qtkeychain
+_realname=qtkeychain
+pkgver=0.5.0
+pkgrel=0
+pkgdesc="Qt API to store passwords and other secret data"
+url="https://github.com/frankosterfeld/qtkeychain"
+arch="all"
+license="BSD"
+depends=
+depends_dev=
+makedepends="$depends_dev cmake qt5-qttools-dev"
+install=
+subpackages="$pkgname-dev"
+replaces="qtkeychain"
+source="$pkgname-$pkgver.tar.gz::https://github.com/frankosterfeld/qtkeychain/archive/v$pkgver.tar.gz"
+
+
+_builddir="$srcdir"/$_realname-$pkgver
+
+prepare() {
+ cd "$_builddir"
+ # apply patches here
+}
+
+build() {
+ cd "$_builddir"
+ cmake \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DCMAKE_INSTALL_LIBDIR=lib \
+ -DCMAKE_INSTALL_LIBEXECDIR=lib/${_realname} \
+ -DCMAKE_BUILD_TYPE=Release
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+
+ # remove the 2 lines below (and this) if there is no init.d script
+ # install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
+ # install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/$pkgname
+}
+
+md5sums="ed813a5db320883c2cf34db16a72b2a1 qt5-qtkeychain-0.5.0.tar.gz"
+sha256sums="e62d7ae9c8ae04784d8a5d0f213aaa22f1c02427e800ce88739e997f499bb514 qt5-qtkeychain-0.5.0.tar.gz"
+sha512sums="abc9d27b318a984c95b55f821f8bba7d8f34e6316958cf41b44aa4451371e5f629f17b9a0d1356cd6455f19979d562157a260f835c8f037037b0ac7bf64b94e5 qt5-qtkeychain-0.5.0.tar.gz"
diff --git a/testing/qt5-qtxmlpatterns/APKBUILD b/testing/qt5-qtxmlpatterns/APKBUILD
new file mode 100644
index 0000000000..ebcd8f28e6
--- /dev/null
+++ b/testing/qt5-qtxmlpatterns/APKBUILD
@@ -0,0 +1,49 @@
+# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
+pkgname=qt5-qtxmlpatterns
+pkgver=5.5.0
+pkgrel=0
+pkgdesc="Qt5 - QtXmlPatterns component"
+url="http://qt-project.org/"
+arch="all"
+license="LGPLv2 with exceptions or GPLv3 with exceptions"
+depends=""
+depends_dev="qt5-qtbase-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev"
+
+_ver=${pkgver/_/-}
+_ver=${_ver/beta0/beta}
+_ver=${_ver/rc0/rc}
+_V=${_ver/rc/RC}
+case $pkgver in
+*_beta*|*_rc*) _rel=development_releases;;
+*) _rel=official_releases;;
+esac
+
+source="http://download.qt-project.org/$_rel/qt/${pkgver%.*}/$_ver/submodules/qtxmlpatterns-opensource-src-$_V.tar.xz"
+
+_builddir="$srcdir"/qtxmlpatterns-opensource-src-$_V
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ qmake-qt5 && make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make install INSTALL_ROOT="$pkgdir" || return 1
+}
+
+md5sums="138ab73b2376fcfca92a4bb6ab47e4a4 qtxmlpatterns-opensource-src-5.5.0.tar.xz"
+sha256sums="672882c670c13c5caec199173cdabffd38474d06979d261bdc6e19738e0cef53 qtxmlpatterns-opensource-src-5.5.0.tar.xz"
+sha512sums="793a196831b1862c9f79f4d143938b3f80e6e13ebe0fa7fa3532dbaede376365632864f89cfb819c62c573a51cae4b427934436df209895444b8d4feea09621b qtxmlpatterns-opensource-src-5.5.0.tar.xz"
diff --git a/testing/tidyhtml/APKBUILD b/testing/tidyhtml/APKBUILD
new file mode 100644
index 0000000000..596af37d55
--- /dev/null
+++ b/testing/tidyhtml/APKBUILD
@@ -0,0 +1,33 @@
+# Maintainer: Valery Kartel <valery.kartel@gmail.com>
+# Contributor: Valery Kartel <valery.kartel@gmail.com>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
+
+pkgname=tidyhtml
+_pkgreal=tidy-html5
+pkgver=5.1.25
+pkgrel=0
+pkgdesc="Tool to tidy down your HTML code to a clean style"
+arch=all
+url="http://www.html-tidy.org"
+license="custom"
+depends=
+makedepends="cmake"
+subpackages="$pkgname-dev $pkgname-libs"
+source="$_pkgreal-$pkgver.tar.gz::https://codeload.github.com/htacg/$_pkgreal/tar.gz/$pkgver"
+
+_builddir="$srcdir"/$_pkgreal-$pkgver
+
+build(){
+ cd "$_builddir"
+ cmake CMakeLists.txt -DCMAKE_INSTALL_PREFIX=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="5fd96deef635ab8cea3dc74079f54d95 tidy-html5-5.1.25.tar.gz"
+sha256sums="be81e967537984fbd207b4b19d02e7be73cbf201f07bf55aa5560c9b1d19b106 tidy-html5-5.1.25.tar.gz"
+sha512sums="d58757858cdc41b064e6002d30ff5a7059dca9c4a25f4f8a7cb8ffbfc175b1bddc92c0f7139660872a86024e9d96797637872bc44dda1652d13dec883be296f8 tidy-html5-5.1.25.tar.gz"
diff --git a/testing/uhttpmock/APKBUILD b/testing/uhttpmock/APKBUILD
new file mode 100644
index 0000000000..5cf165bd89
--- /dev/null
+++ b/testing/uhttpmock/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Natanael Copa <ncopa@alpinelinux.org>
+# Maintainer:
+pkgname=uhttpmock
+pkgver=0.5.0
+pkgrel=0
+pkgdesc="HTTP web service mocking library"
+url="http://gitorious.org/uhttpmock/"
+arch="all"
+license="LGPLv2"
+depends=""
+depends_dev="libsoup-dev glib-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://tecnocode.co.uk/downloads/uhttpmock/$pkgname-$pkgver.tar.xz"
+
+_builddir="$srcdir"/uhttpmock-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="ebc54cbbe9b6695282a179af223fe374 uhttpmock-0.5.0.tar.xz"
+sha256sums="26da182a2db2579c5ba4dad9096d52099e0766228c295cfbaed6de4046f7d16e uhttpmock-0.5.0.tar.xz"
+sha512sums="952b618f3a12d7190f3812bc0bd53dd655a83d27f29bb749e62b36a08492bf535b85db7f5ff66f15c72bf5574696149f00476041f225ca6039ad87b221f5a1c6 uhttpmock-0.5.0.tar.xz"
diff --git a/testing/unibilium/APKBUILD b/testing/unibilium/APKBUILD
new file mode 100644
index 0000000000..71a09780bd
--- /dev/null
+++ b/testing/unibilium/APKBUILD
@@ -0,0 +1,30 @@
+# Contributor: Marvin Steadfast <marvin@xsteadfastx.org>
+# Maintainer: Marvin Steadfast <marvin@xsteadfastx.org>
+pkgname=unibilium
+pkgver=1.2.0
+pkgrel=0
+pkgdesc="A terminfo parsing library"
+url="https://github.com/mauke/unibilium/"
+arch="all"
+license="LGPL3"
+depends=""
+depends_dev="libtool"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="$pkgname-$pkgver.tar.gz::https://github.com/mauke/unibilium/archive/v$pkgver.tar.gz"
+
+_builddir="$srcdir"/"$pkgname"-"$pkgver"
+build() {
+ cd "$_builddir"
+ make PREFIX=/usr || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make PREFIX=/usr DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="9b1c97839a880a373da6c097443b43c4 unibilium-1.2.0.tar.gz"
+sha256sums="623af1099515e673abfd3cae5f2fa808a09ca55dda1c65a7b5c9424eb304ead8 unibilium-1.2.0.tar.gz"
+sha512sums="7aff79669200810c2910006aba657ca2276123ecb3e6e0ba01fa2d1c3cdf838c391594e6035ef150deb6185c4f1e43fe1b0bfb59b23c6697d801a5bdee37a0ee unibilium-1.2.0.tar.gz"
diff --git a/testing/xmlrpc-epi/APKBUILD b/testing/xmlrpc-epi/APKBUILD
new file mode 100644
index 0000000000..94660a433a
--- /dev/null
+++ b/testing/xmlrpc-epi/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: William Pitcock <nenolod@dereferenced.org>
+# Maintainer:
+pkgname=xmlrpc-epi
+pkgver=0.54.2
+pkgrel=1
+pkgdesc="A versatile xmlrpc and soap implementation"
+url="http://xmlrpc-epi.sourceforge.net/"
+arch="all"
+license="MIT"
+depends=
+depends_dev="expat-dev"
+makedepends="$depends_dev autoconf automake libtool"
+install=""
+subpackages="$pkgname-dev"
+source="http://sourceforge.net/projects/xmlrpc-epi/files/xmlrpc-epi-base/$pkgver/xmlrpc-epi-$pkgver.tar.bz2"
+
+_builddir="$srcdir"//$pkgname-$pkgver
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+
+ msg "disabling sample build"
+ sed -i 's:src sample:src:g' Makefile.am Makefile.in
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --infodir=/usr/share/info \
+ --localstatedir=/var \
+ || return 1
+ make -j1 || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+
+ mkdir "$pkgdir"/usr/include/xmlrpc-epi
+ cp -R "$pkgdir"/usr/include/*.h "$pkgdir"/usr/include/xmlrpc-epi
+}
+
+md5sums="081e605491429cda17c5f021f211b8fd xmlrpc-epi-0.54.2.tar.bz2"
+sha256sums="c74ef8fb680b140890138a82f37619714b67f69025a775b9ba2009d62cded0b8 xmlrpc-epi-0.54.2.tar.bz2"
+sha512sums="2a8e818bd0eff4d1b0ad0c1cb26f93bc65d941096cf9f4555d1969c69601c452ab26edccee511b06efc9927c5deb7bd2a93fe44da23e5e4f78f6c77ca8e1e9c5 xmlrpc-epi-0.54.2.tar.bz2"
diff --git a/testing/zziplib/APKBUILD b/testing/zziplib/APKBUILD
new file mode 100644
index 0000000000..77ce928541
--- /dev/null
+++ b/testing/zziplib/APKBUILD
@@ -0,0 +1,50 @@
+# Contributor: Mika Havela <mika.havela@gmail.com>
+# Maintainer: Mika Havela <mika.havela@gmail.com>
+pkgname=zziplib
+pkgver=0.13.62
+pkgrel=2
+pkgdesc="Lightweight library to easily extract data from zip files"
+url="http://zziplib.sourceforge.net"
+arch="all"
+license="LGPL2+ or MPL 1.1"
+depends=""
+depends_dev="zlib-dev"
+makedepends="$depends_dev perl python"
+install=""
+subpackages="$pkgname-dev $pkgname-doc $pkgname-utils"
+source="http://downloads.sourceforge.net/zziplib/zziplib-${pkgver}.tar.bz2"
+
+_builddir="$srcdir"/zziplib-${pkgver}
+prepare() {
+ local i
+ cd "$_builddir"
+ for i in $source; do
+ case $i in
+ *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
+ esac
+ done
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --prefix=/usr \
+ --disable-static \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="${pkgdir}" install || return 1
+}
+
+utils() {
+ pkgdesc="Utilities for the zziplib library"
+ install -d "$subpkgdir"/usr
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+md5sums="5fe874946390f939ee8f4abe9624b96c zziplib-0.13.62.tar.bz2"
+sha256sums="a1b8033f1a1fd6385f4820b01ee32d8eca818409235d22caf5119e0078c7525b zziplib-0.13.62.tar.bz2"
+sha512sums="fd3b9e9015ba7603bdebd8f6a2ac6d11003705bfab22f3a0025f75455042664aea69440845b59e6f389417dff5ac777f49541d8cbacb2a220e67d20bb6973e25 zziplib-0.13.62.tar.bz2"