aboutsummaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorCarlo Landmeter <clandmeter@gmail.com>2015-09-21 14:52:47 +0200
committerCarlo Landmeter <clandmeter@gmail.com>2015-09-21 14:52:47 +0200
commite7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc (patch)
treec6b816e7ba8f9b659e1be415ebf1dac4262c3b82 /main
parent452d447d89b3a3775b7f602d7352a8cfe8a0f9d4 (diff)
downloadaports-e7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc.tar.bz2
aports-e7e9a1cfb9e52fb060cd0c01bb34e9567a04abbc.tar.xz
testing/*: move to main
Diffstat (limited to 'main')
-rw-r--r--main/bluefish/APKBUILD43
-rw-r--r--main/cadaver/APKBUILD47
-rw-r--r--main/cdw/APKBUILD54
-rw-r--r--main/cdw/cdw_colors.c.patch10
-rw-r--r--main/cdw/cdw_fs.c.patch11
-rw-r--r--main/cdw/main.c.patch14
-rw-r--r--main/ciwiki/APKBUILD49
-rw-r--r--main/darkstat/APKBUILD45
-rw-r--r--main/dillo/APKBUILD63
-rw-r--r--main/dillo/dillo.desktop9
-rw-r--r--main/dillo/dillo.pngbin0 -> 6135 bytes
-rw-r--r--main/fltk/APKBUILD63
-rw-r--r--main/fltk/ewmh-crash.patch23
-rw-r--r--main/frotz/APKBUILD48
-rw-r--r--main/frotz/Makefile.patch49
-rw-r--r--main/geeqie/APKBUILD41
-rw-r--r--main/ldapvi/APKBUILD56
-rw-r--r--main/ldapvi/GNUmakefile.in.diff17
-rw-r--r--main/ldapvi/ldapvi_getline.patch36
-rw-r--r--main/ldapvi/ldapvi_vim_modeline_fix.patch11
-rw-r--r--main/lensfun/APKBUILD44
-rw-r--r--main/libdbi/APKBUILD42
-rw-r--r--main/libmaa/APKBUILD41
-rw-r--r--main/lzip/APKBUILD41
-rw-r--r--main/moc/APKBUILD65
-rw-r--r--main/monkey/APKBUILD53
-rw-r--r--main/sc/APKBUILD46
-rw-r--r--main/sc/sc_7.16-2.patch782
-rw-r--r--main/sipcalc/APKBUILD43
-rw-r--r--main/snownews/APKBUILD44
-rw-r--r--main/snownews/configure.patch11
-rw-r--r--main/stalonetray/APKBUILD42
-rw-r--r--main/termrec/APKBUILD42
-rw-r--r--main/tsocks/APKBUILD53
-rw-r--r--main/tsocks/configure.patch71
35 files changed, 2109 insertions, 0 deletions
diff --git a/main/bluefish/APKBUILD b/main/bluefish/APKBUILD
new file mode 100644
index 0000000000..4b98ec0fe6
--- /dev/null
+++ b/main/bluefish/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=bluefish
+pkgver=2.2.7
+pkgrel=0
+pkgdesc="Bluefish is an editor targeted towards programmers and webdevelopers"
+url="http://bluefish.openoffice.nl/"
+arch="all"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="libtool libxml2-dev python-dev gtk+3.0-dev enchant-dev \
+ gucharmap-dev"
+install=""
+subpackages="$pkgname-lang $pkgname-doc"
+source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgver}/${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 || return 1
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+
+}
+
+md5sums="533c3ef1e7d5ec369893c0fd4094605c bluefish-2.2.7.tar.bz2"
+sha256sums="23534b73b929754e15b86d12904ca3ffc1b069da5dcd4f34a67e842fe9e858df bluefish-2.2.7.tar.bz2"
+sha512sums="8b9eca746062d47d646805b02370eb9529d449d6a6a9f175353022d9df9060a9736430b6579cdd52717caab75661204e4c940c4a78fb8f6e29845e84a65395ce bluefish-2.2.7.tar.bz2"
diff --git a/main/cadaver/APKBUILD b/main/cadaver/APKBUILD
new file mode 100644
index 0000000000..a649383870
--- /dev/null
+++ b/main/cadaver/APKBUILD
@@ -0,0 +1,47 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=cadaver
+pkgver=0.23.3
+pkgrel=1
+pkgdesc="Cadaver is a command line webDAV client for Linux"
+url="http://webdav.org/cadaver/"
+arch="all"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="gettext-dev libproxy-dev openssl-dev"
+install=""
+subpackages="$pkgname-lang $pkgname-doc"
+source="http://webdav.org/cadaver/${pkgname}-${pkgver}.tar.gz"
+
+_builddir=${srcdir}/${pkgname}-${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 \
+ --with-ssl=openssl \
+ || return 1
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make prefix=$pkgdir/usr install
+}
+
+md5sums="502ecd601e467f8b16056d2acca39a6f cadaver-0.23.3.tar.gz"
+sha256sums="fd4ce68a3230ba459a92bcb747fc6afa91e46d803c1d5ffe964b661793c13fca cadaver-0.23.3.tar.gz"
+sha512sums="48fe0a266be0ca7239f325377e5e2a8dc57a5d60466c7160e36c060ad24c09a50727695b9fa931844b1e66e173ebbb838f390d6c60fd07b614bd3b636cd4dd41 cadaver-0.23.3.tar.gz"
diff --git a/main/cdw/APKBUILD b/main/cdw/APKBUILD
new file mode 100644
index 0000000000..6996d68654
--- /dev/null
+++ b/main/cdw/APKBUILD
@@ -0,0 +1,54 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=cdw
+pkgver=0.8.0
+pkgrel=1
+pkgdesc="cdw is a front-end for cd recoding tools"
+url="http://cdw.sf.net"
+arch="all"
+license="GPL2"
+depends="cdrkit"
+depends_dev="ncurses-dev libcdio-dev libburn-dev bison gettext-dev"
+makedepends="$depends_dev linux-headers"
+install=""
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz
+ main.c.patch
+ cdw_fs.c.patch
+ cdw_colors.c.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
+}
+
+build() {
+ cd "$_builddir"
+ export LIBS="-lintl" && ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd "$_builddir"
+ chmod +x ${srcdir}/${pkgname}-${pkgver}/install-sh
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="60a8d094343b50b436a013737261e92c cdw-0.8.0.tar.gz
+1a35f4cfe4ebf18bb9df4553c0da877c main.c.patch
+36c9275ca278920db0a42029a94307cc cdw_fs.c.patch
+919951dbb5ffa814b56b2f98529cc180 cdw_colors.c.patch"
+sha256sums="8f5bd7ed41bc07a84c5aa693bed3c38420e60ba6a3b5ae6ff8e41d78a4665fd2 cdw-0.8.0.tar.gz
+f20a3a158c9feb9503b412a7ebf924c158f688a2f117bffbe1af41555e2dea80 main.c.patch
+f233fa0622d7f348a5d96529657525bc4b943f520d317812f4bf0635ee9d40a2 cdw_fs.c.patch
+34baba8bac6649cce0f5d69978366df8a7dd92ff6cb61941468eae9e6de539c4 cdw_colors.c.patch"
+sha512sums="67fd9e397800187baafff425fd77ae9ba679a7b396736004f305accea3c3c9ca215d70dac0410fd8ef9ed016f7ce11c3859c84bfa04e3234cee84201605175d0 cdw-0.8.0.tar.gz
+1c3bd9ec2faad0833ba0042a5a760f0b691f6db9cac3badf7059ed85d791d5b843f03c5c798c33e3a15c0398feee95cd861d01b4a883954af4b558871978c670 main.c.patch
+292a822db0e3c5aec8f61af4463a868183d8a9faf05b2e2f023ad95bd918bc8a5b24eb6b990d0313a60f6f5494f9aba4fc36e53348d1f7ec0838eaeaf72a70ae cdw_fs.c.patch
+60f882f246ca3739e207d91c95ddf41b03f306012fa771ecf5f9a62497756b8e4d615c2bbc71bfa02cab3cd77b6f6ecf7367a9ef92319f46764f89412b1e2cff cdw_colors.c.patch"
diff --git a/main/cdw/cdw_colors.c.patch b/main/cdw/cdw_colors.c.patch
new file mode 100644
index 0000000000..87bff5b052
--- /dev/null
+++ b/main/cdw/cdw_colors.c.patch
@@ -0,0 +1,10 @@
+--- cdw-0.8.0/src/user_interface/cdw_colors.c
++++ cdw-0.8.0/src/user_interface/cdw_colors.c.changed
+@@ -22,6 +22,7 @@
+ #include <stdio.h>
+ #include <string.h>
+ #include <stdlib.h>
++#include <limits.h>
+ // #include <dirent.h> /* PATH_MAX */
+
+ #include "cdw_ncurses.h"
diff --git a/main/cdw/cdw_fs.c.patch b/main/cdw/cdw_fs.c.patch
new file mode 100644
index 0000000000..a7ddfd9394
--- /dev/null
+++ b/main/cdw/cdw_fs.c.patch
@@ -0,0 +1,11 @@
+--- cdw-0.8.0/src/native_file_system/cdw_fs.c
++++ cdw-0.8.0/src/native_file_system/cdw_fs.c.changed
+@@ -24,6 +24,8 @@
+ #include <string.h>
+ #include <errno.h>
+ #include <stdlib.h>
++#include <limits.h>
++#include <paths.h>
+
+ #include "cdw_fs.h"
+ #include "cdw_file_picker.h"
diff --git a/main/cdw/main.c.patch b/main/cdw/main.c.patch
new file mode 100644
index 0000000000..b9ff47346c
--- /dev/null
+++ b/main/cdw/main.c.patch
@@ -0,0 +1,14 @@
+--- cdw-0.8.0/src/main.c
++++ cdw-0.8.0/src/main.c.changed
+@@ -44,9 +44,9 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
+-#include <mcheck.h>
++/* #include <mcheck.h> */
+ #include <signal.h> /* sig_atomic_t */
+-
++#include <limits.h>
+ #include <dirent.h> /* PATH_MAX */
+
+ #include "main.h"
diff --git a/main/ciwiki/APKBUILD b/main/ciwiki/APKBUILD
new file mode 100644
index 0000000000..feb6e7ebe9
--- /dev/null
+++ b/main/ciwiki/APKBUILD
@@ -0,0 +1,49 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=ciwiki
+pkgver=2.0.3
+pkgrel=0
+pkgdesc="A personal lightweight wiki written in C"
+url="http://ciwiki.sourceforge.net/"
+arch="all"
+license="GPL3"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/project/${pkgname}/${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"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --libexecdir=/usr/lib/ciwiki \
+ || return 1
+ make
+
+}
+
+package() {
+ cd "$_builddir"
+ make install DESTDIR="$pkgdir"
+
+}
+
+md5sums="5c4e5e14e99566bd6ea430747ff8f6dd ciwiki-2.0.3.tar.gz"
+sha256sums="ffd23f8b9a3769c2aaf191b24092fb65c0b3fe9ea5831a1a53e7822678ce2569 ciwiki-2.0.3.tar.gz"
+sha512sums="eaccbe366ec3215993471d371f2c4d885139dbb6afae2767cf1cd4580555054524591b0e77a4281d00f52dafa0ee93d532ac49ed6b486885f813340debab45f2 ciwiki-2.0.3.tar.gz"
diff --git a/main/darkstat/APKBUILD b/main/darkstat/APKBUILD
new file mode 100644
index 0000000000..5194f5c4c1
--- /dev/null
+++ b/main/darkstat/APKBUILD
@@ -0,0 +1,45 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=darkstat
+pkgver=3.0.718
+pkgrel=0
+pkgdesc="Captures network traffic, calculates statistics about usage, and serves reports over HTTP"
+url="https://unix4lyfe.org/darkstat/"
+arch="all"
+license="BSD"
+depends=""
+depends_dev=""
+makedepends="zlib-dev libpcap-dev"
+install=""
+subpackages="$pkgname-doc"
+source="https://unix4lyfe.org/${pkgname}/${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 \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ || return 1
+ make
+ }
+
+package() {
+ cd "$_builddir"
+ make DESTDIR=${pkgdir} install
+}
+
+md5sums="1fb31ac01d4689493c917fa622a002e7 darkstat-3.0.718.tar.bz2"
+sha256sums="682f3e53f4e89ea6ad08236b4225a5e0859428299765d8d995374cd7fa22adff darkstat-3.0.718.tar.bz2"
+sha512sums="73ed670a9c684b2f0b087da3f238c2828407c82201d1bff945a3d711bbaa231b9d87ddc9e21aa855abcd7d63c27f8f529f5a2c6fb48f52a3f0b6e88c49d33969 darkstat-3.0.718.tar.bz2"
diff --git a/main/dillo/APKBUILD b/main/dillo/APKBUILD
new file mode 100644
index 0000000000..c8ed871f71
--- /dev/null
+++ b/main/dillo/APKBUILD
@@ -0,0 +1,63 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=dillo
+pkgver=3.0.5
+pkgrel=0
+pkgdesc="Very small and fast GUI web browser"
+url="http://www.dillo.org"
+arch="all"
+license="GPL"
+depends=""
+makedepends="fltk-dev zlib-dev libx11-dev libpng-dev libjpeg-turbo-dev
+ openssl-dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://www.dillo.org/download/${pkgname}-${pkgver}.tar.bz2
+ dillo.desktop
+ dillo.png
+ "
+
+_builddir=$srcdir/${pkgname}-${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 \
+ --enable-ipv6 \
+ --enable-ssl \
+ || return 1
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ install -Dm644 "$srcdir"/dillo.desktop \
+ "$pkgdir"/usr/share/applications/dillo.desktop \
+ || return 1
+ install -Dm644 "$srcdir"/dillo.png \
+ "$pkgdir"/usr/share/pixmaps/dillo.png \
+ || return 1
+}
+
+md5sums="554aad93b6107bba696f4da022c41561 dillo-3.0.5.tar.bz2
+ffb9cdcb3506b5aeba9e0d1bcaa4006d dillo.desktop
+2ca5fb738b70051cac592acef3cb56e1 dillo.png"
+sha256sums="db1be16c1c5842ebe07b419aa7c6ef11a45603a75df2877f99635f4f8345148b dillo-3.0.5.tar.bz2
+54848080de1911a2af8ff786fbe92bdad8fe8b7b8a0d580c9c79b0a98f9fdcde dillo.desktop
+de629745e6f3a271475a501e2b94558b3deb7bf9a407bcef16426e600e1731f3 dillo.png"
+sha512sums="d0e86f57e50da762debf592b6deb94de5ee58f84e0cae1159890262540a463aea8143d2b99c634021c1f273f91c2fe0918f30d72c3eaf91fdb541e741469b155 dillo-3.0.5.tar.bz2
+393a749d33f78e4c8a99c0c94a9708b26d235356f0c8dfa942af4e8da7eb9aa2453911894461714986449dfd15a4b492ef9071fac6b230f52a8f2e562f1bf016 dillo.desktop
+cfc9bcf1bfd0fff7fc625c7d288c92d0f33418b963a4e344844fd2bcb33823b3215a8a1a86162dcd1c614eea2323bb361c11bd8bd15859b771c63943c1b40833 dillo.png"
diff --git a/main/dillo/dillo.desktop b/main/dillo/dillo.desktop
new file mode 100644
index 0000000000..83c34448ce
--- /dev/null
+++ b/main/dillo/dillo.desktop
@@ -0,0 +1,9 @@
+[Desktop Entry]
+Name=Dillo
+GenericName=Web Browser
+Comment=Very small and fast GUI web browser
+Exec=dillo
+Icon=dillo
+Terminal=false
+Type=Application
+Categories=Network;GTK;WebBrowser;
diff --git a/main/dillo/dillo.png b/main/dillo/dillo.png
new file mode 100644
index 0000000000..8d572038b8
--- /dev/null
+++ b/main/dillo/dillo.png
Binary files differ
diff --git a/main/fltk/APKBUILD b/main/fltk/APKBUILD
new file mode 100644
index 0000000000..fa0192c856
--- /dev/null
+++ b/main/fltk/APKBUILD
@@ -0,0 +1,63 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=fltk
+pkgver=1.3.3
+pkgrel=0
+pkgdesc="A cross-platform C++ GUI toolkit"
+url="http://fltk.org"
+arch="all"
+license="GPL"
+depends=""
+depends_dev="libx11-dev libxext-dev libxft-dev"
+makedepends="$depends_dev libpng-dev libjpeg-turbo-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-dev $pkgname-fluid"
+source="http://fltk.org/pub/fltk/$pkgver/$pkgname-$pkgver-source.tar.gz
+ ewmh-crash.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
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --enable-shared \
+ --enable-threads \
+ --with-optim="$CXXFLAGS" \
+ || return 1
+ make V=1 || return 1
+
+}
+
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+ # remove static libs
+ rm "$pkgdir"/usr/lib/*.a || return 1
+}
+
+fluid() {
+ pkgdesc="Fast Light User Interface Designer"
+ depends=
+ mkdir -p "$subpkgdir"/usr/
+ mv "$pkgdir"/usr/bin "$subpkgdir"/usr/
+}
+
+md5sums="9ccdb0d19dc104b87179bd9fd10822e3 fltk-1.3.3-source.tar.gz
+0b1a9c825de9de368550d10728878019 ewmh-crash.patch"
+sha256sums="f8398d98d7221d40e77bc7b19e761adaf2f1ef8bb0c30eceb7beb4f2273d0d97 fltk-1.3.3-source.tar.gz
+15adf29c8d2885bc356943f05b3f22b2db42a5278a9a27d8b1bd3f342f3f4416 ewmh-crash.patch"
+sha512sums="277ba27e35c20e2d4fc5296bf418c5ab78c821870476e21d49f723765b99b3a559eed4ecd5215ac26d53a1091ada003e17f1553194cebaa97dd854809dd2885d fltk-1.3.3-source.tar.gz
+7e7c43620c91f83da190227d829ebe652ccf1e02ad40e6b3d2631959716304612f447f2dffba0f19fc2c5191692e23581c438945f61669f4974845a1ac1e9929 ewmh-crash.patch"
diff --git a/main/fltk/ewmh-crash.patch b/main/fltk/ewmh-crash.patch
new file mode 100644
index 0000000000..6b7d08e1bb
--- /dev/null
+++ b/main/fltk/ewmh-crash.patch
@@ -0,0 +1,23 @@
+commit 6bea02745202d86a10da82d34f1f6a9233267297
+Author: lauri <cand.svn@fltk.example.org>
+Date: Tue Nov 4 17:26:47 2014 +0000
+
+ The EWMH check requires an open display.
+
+ Fixes a crash when a program calls take_focus() before any window has been show()n.
+
+
+ git-svn-id: http://seriss.com/public/fltk/fltk/branches/branch-1.3@10434 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
+
+diff --git a/src/Fl_x.cxx b/src/Fl_x.cxx
+index 8e7100b..a0767a3 100644
+--- a/src/Fl_x.cxx
++++ b/src/Fl_x.cxx
+@@ -2211,6 +2211,7 @@ int Fl_X::ewmh_supported() {
+ static int result = -1;
+
+ if (result == -1) {
++ fl_open_display();
+ result = 0;
+ unsigned long nitems;
+ unsigned long *words = 0;
diff --git a/main/frotz/APKBUILD b/main/frotz/APKBUILD
new file mode 100644
index 0000000000..b751c25dd1
--- /dev/null
+++ b/main/frotz/APKBUILD
@@ -0,0 +1,48 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=frotz
+pkgver=2.43
+pkgrel=0
+pkgdesc="A Portable Z-Machine Interpreter"
+url="http://frotz.sourceforge.net/"
+arch="all"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="ncurses-dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/$pkgver/$pkgname-${pkgver}d.tar.gz
+ Makefile.patch"
+
+_builddir="$srcdir/$pkgname-${pkgver}d"
+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"
+ make
+}
+
+package() {
+ cd "$_builddir"
+ strip $pkgname
+ install -m755 -d "${pkgdir}/usr/bin"
+ install -m755 -d "${pkgdir}/usr/share/man/man6"
+ install -m755 $pkgname "${pkgdir}/usr/bin/"
+ install -m644 doc/${pkgname}.6 ${pkgdir}/usr/share/man/man6/${pkgname}.6
+}
+
+md5sums="6f4211c9180c75214cda1020c7db2629 frotz-2.43d.tar.gz
+d3ebe35d8a03f93e40d6996c0118b3df Makefile.patch"
+sha256sums="c56a2f77f630db04ad968fc7c0b2114e3f855fdae8ce226e600f20dcba2c5985 frotz-2.43d.tar.gz
+cea5fd75899721016b1a9d7443483926f203c9ab0d78ec74bfb975725041f7d6 Makefile.patch"
+sha512sums="53d0ba3fc841539b815512585daaf9505b500975d46a9fb6905c3840b98e2acb05cabc28ac4758296554ef5f1921385850b8c0410e8fed4c1ce7d200090dc1b7 frotz-2.43d.tar.gz
+50bd0db62eb09bb316dbab106d2bba0ad389e151fefbc587dbd15faf238b559276ce9d603333d5da8760623d014e2587609b96401e616f22062cb0a6aaa2f346 Makefile.patch"
diff --git a/main/frotz/Makefile.patch b/main/frotz/Makefile.patch
new file mode 100644
index 0000000000..ead06f88d0
--- /dev/null
+++ b/main/frotz/Makefile.patch
@@ -0,0 +1,49 @@
+--- src/frotz-2.43d/Makefile 2012-01-03 08:32:58.000000000 +0000
++++ ../Makefile 2014-12-01 13:08:50.390040011 +0000
+@@ -14,19 +14,19 @@
+ #-malign-jumps=2
+
+ # Define where you want Frotz installed. Usually this is /usr/local
+-PREFIX = /usr/local
++PREFIX = /usr
+
+-MAN_PREFIX = $(PREFIX)
+-#MAN_PREFIX = /usr/local/share
++#MAN_PREFIX = $(PREFIX)
++MAN_PREFIX = /usr/share
+
+-CONFIG_DIR = $(PREFIX)/etc
+-#CONFIG_DIR = /etc
++#CONFIG_DIR = $(PREFIX)/etc
++CONFIG_DIR = /etc
+
+ # Define where you want Frotz to look for frotz.conf.
+ #
+-CONFIG_DIR = /usr/local/etc
+-#CONFIG_DIR = /etc
+-#CONFIG_DIR = /usr/pkg/etc
++#CONFIG_DIR = /usr/local/etc
++#CONFIG_DIR = /etc
++#CONFIG_DIR = /usr/pkg/etc
+ #CONFIG_DIR =
+
+ # Uncomment this if you want color support. Most, but not all curses
+@@ -73,15 +73,15 @@
+ # curses library won't work, comment out the first option and uncomment
+ # the second.
+ #
+-CURSES = -lcurses
+-#CURSES = -lncurses
++#CURSES = -lcurses
++CURSES = -lncurses
+
+ # Uncomment this if your need to use ncurses instead of the
+ # vendor-supplied curses library. This just tells the compile process
+ # which header to include, so don't worry if ncurses is all you have
+ # (like on Linux). You'll be fine.
+ #
+-#CURSES_DEF = -DUSE_NCURSES_H
++CURSES_DEF = -DUSE_NCURSES_H
+
+ # Uncomment this if you're compiling Unix Frotz on a machine that lacks
+ # the memmove(3) system call. If you don't know what this means, leave it
diff --git a/main/geeqie/APKBUILD b/main/geeqie/APKBUILD
new file mode 100644
index 0000000000..a9c76dc6b4
--- /dev/null
+++ b/main/geeqie/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=geeqie
+pkgver=1.1
+pkgrel=1
+pkgdesc="Geeqie is a lightweight Gtk+ based image viewer and organiser"
+url="http://geeqie.sourceforge.net/"
+arch="all"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="gtk+2.0-dev lcms-dev exiv2-dev libtool doxygen lcms-dev"
+install=""
+subpackages="$pkgname-doc $pkgname-lang"
+source="http://downloads.sourceforge.net/project/$pkgname/$pkgname/${pkgname}-${pkgver}/${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"
+ ./configure --prefix=/usr
+ make || exit 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="${pkgdir}" install
+}
+
+md5sums="e63351988625c84b0fd80bc4eefd923b geeqie-1.1.tar.gz"
+sha256sums="5544e81c29917a647f19bfe800d9f0dd1cd5b890329feebd9abd80927e1afecf geeqie-1.1.tar.gz"
+sha512sums="3949b2717c70adb4e6b2c6db002042bcd1c3e9a5345991d3cba41de1765709ccf70fadfcde9dd221b1da03ef14512c746ab424cbc0d09617c52dbf445ee0243d geeqie-1.1.tar.gz"
diff --git a/main/ldapvi/APKBUILD b/main/ldapvi/APKBUILD
new file mode 100644
index 0000000000..64cd5529ca
--- /dev/null
+++ b/main/ldapvi/APKBUILD
@@ -0,0 +1,56 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=ldapvi
+pkgver=1.7
+pkgrel=0
+pkgdesc="ldapvi is an interactive LDAP client for Unix terminals"
+url="http://www.lichteblau.com/ldapvi/"
+arch="all"
+license="GNU"
+depends=""
+depends_dev="openldap-dev popt-dev readline-dev glib-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://www.lichteblau.com/download/${pkgname}-${pkgver}.tar.gz
+ GNUmakefile.in.diff
+ ldapvi_vim_modeline_fix.patch
+ ldapvi_getline.patch"
+
+_builddir=$srcdir/${pkgname}-${pkgver}
+prepare() {
+ local i
+ cd "$_builddir"
+ patch -Np0 -i "$srcdir"/GNUmakefile.in.diff
+ 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
+ make
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/share/doc/ldapvi" \
+ "$pkgdir/usr/share/man/man1"
+ make DESTDIR="$pkgdir" MANDIR="$pkgdir"/usr/share/man/man1 \
+ DOCDIR="$pkgdir/usr/share/doc/ldapvi" install || return 1
+}
+md5sums="6dc2f5441ac5f1e2b5b036e3521012cc ldapvi-1.7.tar.gz
+615743d94e3353f0d0f72ba488746e04 GNUmakefile.in.diff
+fbd6e48d389196b73f1a38be5539a47d ldapvi_vim_modeline_fix.patch
+b58b3b443368002ef78aefb6c3c14a05 ldapvi_getline.patch"
+sha256sums="6f62e92d20ff2ac0d06125024a914b8622e5b8a0a0c2d390bf3e7990cbd2e153 ldapvi-1.7.tar.gz
+a8ea4025c97489f35478b8f8fdd5b4c19adb90ae5c6b51157797ce38a83f8d72 GNUmakefile.in.diff
+8ef83d5a74288edb0aeef9bb07ebe9d2866cfa2c960c891953016536f8016e8d ldapvi_vim_modeline_fix.patch
+6b6571bdfaf8c2b20da3a44cdc136453e6a904a405262e97dedfef0d089661e1 ldapvi_getline.patch"
+sha512sums="4b38cee0763aa33703afbd5e358a458b1468abf58e43ea885879b2117bc1c0bbc375d91c6a43467ec08035b8b3b7dd4b024f2937c37741c7a5513ea9192aed36 ldapvi-1.7.tar.gz
+f97bd3c285fc9f76970af7f82bb7adaca70e4bcad634c06b07171afbad6ef83526aca4b6840a66d78ed7cb9b9040a91756c860364f97c45561c88cc4f827fb02 GNUmakefile.in.diff
+df070ac52c0046378909dada3c017d23f49a20ea36cbc6df349a830678acce7524266da191b47d8a6b6dd95a9a0399a0ce826e44766e44fba9e75d356cd69960 ldapvi_vim_modeline_fix.patch
+34fd4ce7432a578ae5b3ec4c82a369410b5bda4daac4da70d7e176b49fed57f5e8a8bd5255a4dd348be9fc9f6a12c1d1adc2a9fd547cc8ea05b25dd9c66b8f28 ldapvi_getline.patch"
diff --git a/main/ldapvi/GNUmakefile.in.diff b/main/ldapvi/GNUmakefile.in.diff
new file mode 100644
index 0000000000..67bb1e6d64
--- /dev/null
+++ b/main/ldapvi/GNUmakefile.in.diff
@@ -0,0 +1,17 @@
+--- GNUmakefile.in 2006-11-04 13:53:40.000000000 +0100
++++ GNUmakefile.in.new 2006-12-28 00:29:18.000000000 +0100
+@@ -25,10 +25,10 @@
+
+ .PHONY: install
+ install: ldapvi
+- mkdir -p @bindir@ @mandir@/man1/ @prefix@/share/doc/ldapvi
+- @INSTALL_PROGRAM@ ldapvi @bindir@
+- @INSTALL_PROGRAM@ -m 644 ldapvi.1 @mandir@/man1/
+- @INSTALL_PROGRAM@ -m 644 manual/manual.css manual/manual.xml manual/bg.png manual/html.xsl @prefix@/share/doc/ldapvi
++ mkdir -p $(DESTDIR)@bindir@ $(DESTDIR)@mandir@/man1/ $(DESTDIR)@prefix@/share/doc/ldapvi
++ @INSTALL_PROGRAM@ ldapvi $(DESTDIR)@bindir@
++ @INSTALL_PROGRAM@ -m 644 ldapvi.1 $(DESTDIR)@mandir@/man1/
++ @INSTALL_PROGRAM@ -m 644 manual/manual.css manual/manual.xml manual/bg.png manual/html.xsl $(DESTDIR)@prefix@/share/doc/ldapvi
+
+ distclean:
+ rm -rf configure GNUmakefile config.h config.log autom4te.cache config.status
diff --git a/main/ldapvi/ldapvi_getline.patch b/main/ldapvi/ldapvi_getline.patch
new file mode 100644
index 0000000000..f839107b3d
--- /dev/null
+++ b/main/ldapvi/ldapvi_getline.patch
@@ -0,0 +1,36 @@
+diff -uNr ldapvi-1.7.orig/common.h ldapvi-1.7/common.h
+--- ldapvi-1.7.orig/common.h 2007-05-05 12:17:26.000000000 +0200
++++ ldapvi-1.7/common.h 2009-06-20 18:51:31.000000000 +0200
+@@ -273,7 +273,7 @@
+ char *home_filename(char *name);
+ void read_ldapvi_history(void);
+ void write_ldapvi_history(void);
+-char *getline(char *prompt, char *value);
++char *ldapvi_getline(char *prompt, char *value);
+ char *get_password();
+ char *append(char *a, char *b);
+ void *xalloc(size_t size);
+diff -uNr ldapvi-1.7.orig/ldapvi.c ldapvi-1.7/ldapvi.c
+--- ldapvi-1.7.orig/ldapvi.c 2007-05-05 12:17:26.000000000 +0200
++++ ldapvi-1.7/ldapvi.c 2009-06-20 18:51:31.000000000 +0200
+@@ -470,7 +470,7 @@
+ bo->authmethod = LDAP_AUTH_SASL;
+ puts("Switching to SASL authentication.");
+ }
+- bo->sasl_mech = getline("SASL mechanism", bo->sasl_mech);
++ bo->sasl_mech = ldapvi_getline("SASL mechanism", bo->sasl_mech);
+ }
+
+ static int
+diff -uNr ldapvi-1.7.orig/misc.c ldapvi-1.7/misc.c
+--- ldapvi-1.7.orig/misc.c 2007-05-05 12:17:26.000000000 +0200
++++ ldapvi-1.7/misc.c 2009-06-20 18:51:31.000000000 +0200
+@@ -315,7 +315,7 @@
+ }
+
+ char *
+-getline(char *prompt, char *value)
++ldapvi_getline(char *prompt, char *value)
+ {
+ tdialog d;
+ init_dialog(&d, DIALOG_DEFAULT, prompt, value);
diff --git a/main/ldapvi/ldapvi_vim_modeline_fix.patch b/main/ldapvi/ldapvi_vim_modeline_fix.patch
new file mode 100644
index 0000000000..b91bff4894
--- /dev/null
+++ b/main/ldapvi/ldapvi_vim_modeline_fix.patch
@@ -0,0 +1,11 @@
+--- ldapvi-1.7.orig/ldapvi.c 2014-05-07 15:43:26.727507056 +0400
++++ ldapvi-1.7/ldapvi.c 2014-05-07 15:43:07.787295850 +0400
+@@ -1414,7 +1414,7 @@
+ int nlines = 0;
+
+ if (print_binary_mode == PRINT_UTF8 && !cmdline->ldif) {
+- fputs("# -*- coding: utf-8 -*- vim:encoding=utf-8:\n", s);
++ fputs("# -*- coding: utf-8 -*- \n", s);
+ nlines++;
+ }
+ if (cmdline->ldif) {
diff --git a/main/lensfun/APKBUILD b/main/lensfun/APKBUILD
new file mode 100644
index 0000000000..a514a0ece4
--- /dev/null
+++ b/main/lensfun/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=lensfun
+pkgver=0.3.1
+pkgrel=0
+pkgdesc="Image manipulation library to rectify lens defects."
+url="http://lensfun.sourceforge.net/"
+arch="all"
+license="LGPL3"
+depends=""
+depends_dev=""
+makedepends="py-docutils cmake doxygen libpng glib-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://downloads.sourceforge.net/project/${pkgname}/${pkgver}/${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"
+ cmake \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DBUILD_DOC=On \
+ -DLENSFUN_INSTALL_PREFIX=/usr || return 1
+ make all || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install
+ }
+
+md5sums="7f577385f98b260ea5384b99c6eb03aa lensfun-0.3.1.tar.gz"
+sha256sums="216c23754212e051c8b834437e46af3812533bd770c09714e8c06c9d91cdb535 lensfun-0.3.1.tar.gz"
+sha512sums="cd0f142bb7d6aa154f587d89502da35473a7a02660246bd025ccd5d1982f55425359405898e11ce9094351ad44a2d6786b9ff07d227f75699e99e4de8f40938c lensfun-0.3.1.tar.gz"
diff --git a/main/libdbi/APKBUILD b/main/libdbi/APKBUILD
new file mode 100644
index 0000000000..55c097ff21
--- /dev/null
+++ b/main/libdbi/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=libdbi
+pkgver=0.9.0
+pkgrel=0
+pkgdesc="Database independent abstraction layer for C"
+url="http://libdbi.sourceforge.net/"
+arch="all"
+license="LGPL2+"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc $pkgname-dev"
+source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${pkgname}-${pkgver}.tar.gz"
+options=libtool
+
+_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
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+
+md5sums="05e2ceeac4bc85fbe40de8b4b22d9ab3 libdbi-0.9.0.tar.gz"
+sha256sums="dafb6cdca524c628df832b6dd0bf8fabceb103248edb21762c02d3068fca4503 libdbi-0.9.0.tar.gz"
+sha512sums="ee8777195af43057409d051a6055ec0467cd926d48da076458b09f91d2f0995a1cc4bc071762e401b7bdcd8a4173fd8ea3472db3a1518e34b4c5b5ed24e4e2ce libdbi-0.9.0.tar.gz"
diff --git a/main/libmaa/APKBUILD b/main/libmaa/APKBUILD
new file mode 100644
index 0000000000..fc5f9748e2
--- /dev/null
+++ b/main/libmaa/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=libmaa
+pkgver=1.3.2
+pkgrel=0
+pkgdesc="Provides many low-level data structures which are helpful for writing compilers"
+url="http://sourceforge.net/projects/dict/"
+arch="all"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="libtool perl flex"
+install=""
+subpackages="$pkgname-dev"
+source="http://downloads.sourceforge.net/dict/${pkgname}-${pkgver}.tar.gz"
+options="libtool"
+_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
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="${pkgdir}" install
+}
+
+md5sums="01dab2cde2e0a322653e45bfa63537ee libmaa-1.3.2.tar.gz"
+sha256sums="59a5a01e3a9036bd32160ec535d25b72e579824e391fea7079e9c40b0623b1c5 libmaa-1.3.2.tar.gz"
+sha512sums="dde91e8bf1c08515ff4662282d16a03b18a1dfb16eb7b95be980ba398ed1e65d8cd88e58d454e03a03f48a5ecca8bf23b4ebaf475a98630a9178318c12a1b176 libmaa-1.3.2.tar.gz"
diff --git a/main/lzip/APKBUILD b/main/lzip/APKBUILD
new file mode 100644
index 0000000000..062ca3e66c
--- /dev/null
+++ b/main/lzip/APKBUILD
@@ -0,0 +1,41 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=lzip
+pkgver=1.17
+pkgrel=0
+pkgdesc="Lzip is a lossless data compressor"
+url="http://lzip.nongnu.org/lzip.html"
+arch="all"
+license="GPL2"
+depends=""
+depends_dev=""
+makedepends=""
+install=""
+subpackages="$pkgname-doc"
+source="http://download.savannah.gnu.org/releases/${pkgname}/${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"
+ ./configure --prefix=/usr
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR=${pkgdir} install || return 1
+}
+
+md5sums="be776a33333ee6529ea79f309491325b lzip-1.17.tar.gz"
+sha256sums="9443855e0a33131233b22cdb6c62c9313a483f16cc7415efe88d4a494cea0352 lzip-1.17.tar.gz"
+sha512sums="cd4a1a7d3778f22e3a6f2d2a20491919e662771e79d1738f74c63de857913e28186d53b2af7997e1b164f8ab792561c7dde8781bb025a1859271ddd72f5ed519 lzip-1.17.tar.gz"
diff --git a/main/moc/APKBUILD b/main/moc/APKBUILD
new file mode 100644
index 0000000000..95b35fada5
--- /dev/null
+++ b/main/moc/APKBUILD
@@ -0,0 +1,65 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=moc
+pkgver=2.5.0
+pkgrel=0
+pkgdesc="MOC is a console audio player"
+url="http://moc.daper.net/"
+arch="all"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="curl-dev libtool file ffmpeg-dev speex-dev alsa-lib-dev
+ libmodplug-dev faad2-dev jack-dev libmad-dev ncurses-dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://ftp.daper.net/pub/soft/moc/stable/moc-${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
+ update_config_sub || return 1
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --without-rcc \
+ --with-oss \
+ --with-alsa \
+ --with-jack \
+ --with-aac \
+ --with-mp3 \
+ --with-musepack \
+ --with-vorbis \
+ --with-flac \
+ --with-wavpack \
+ --with-sndfile \
+ --with-modplug \
+ --with-ffmpeg \
+ --with-speex \
+ --with-samplerate \
+ --with-curl \
+ --disable-cache \
+ --disable-debug \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="${pkgdir}" install
+}
+
+md5sums="18e3a979b67091bfee4b62217908c473 moc-2.5.0.tar.bz2"
+sha256sums="d29ea52240af76c4aa56fa293553da9d66675823e689249cee5f8a60657a6091 moc-2.5.0.tar.bz2"
+sha512sums="ca6cfd4d1d13030bd561df8ab671399a17dfb675c360ecc95a2491c6a85764d0f72259ac33665405b197f370f4fd7ef59d9a485706f8a882bff30d0fafcf252c moc-2.5.0.tar.bz2"
diff --git a/main/monkey/APKBUILD b/main/monkey/APKBUILD
new file mode 100644
index 0000000000..da40e6fe0e
--- /dev/null
+++ b/main/monkey/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: Łukasz Jendrysik <scadu@yandex.com>
+# Contributor: Bartłomiej Piotrowski <bpiotrowski@alpinelinux.org>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=monkey
+pkgver=1.5.6
+pkgrel=2
+pkgdesc="Monkey is a lightweight and powerful web server "
+url="http://monkey-project.com/"
+arch="all"
+license="ASL 2.0"
+depends=""
+depends_dev=""
+makedepends="bash mbedtls1-dev findutils"
+install=""
+subpackages="$pkgname-doc"
+source="http://monkey-project.com/releases/1.5/${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"
+ ./configure \
+ --musl-mode \
+ --no-backtrace \
+ --enable-plugins=polarssl \
+ --prefix=/usr \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc/$pkgname \
+ --datadir=/var/$pkgname \
+ --logdir=/var/log/$pkgname \
+ --plugdir=/etc/$pkgname \
+ --pidfile=/var/run/${pkgname}.pid || return 1
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR=$pkgdir install
+ install -Dm 755 "$pkgdir/usr/bin/banana" "$pkgdir/etc/init.d/banana"
+}
+
+md5sums="9699e4c9ea6ce6b989907c252ae80254 monkey-1.5.6.tar.gz"
+sha256sums="7c3d845306aa74ee6effd7ab6169d16ac4e6450e564954d0d0baa2d1e9be1a22 monkey-1.5.6.tar.gz"
+sha512sums="4c7c627cb047252252b22da5fba179a21fb5b8dc6280b96307af52757ad049d24b0daaaea51dca4f0429af5e6499c239f6b62a03654cc9e7ad98ae8f5149b64c monkey-1.5.6.tar.gz"
diff --git a/main/sc/APKBUILD b/main/sc/APKBUILD
new file mode 100644
index 0000000000..b7d588451e
--- /dev/null
+++ b/main/sc/APKBUILD
@@ -0,0 +1,46 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=sc
+pkgver=7.16
+pkgrel=1
+pkgdesc="Speadsheet Calculator"
+url="https://github.com/dkastner/sc"
+arch="all"
+license="Public Domain"
+depends="ncurses"
+depends_dev=""
+makedepends="ncurses-dev bison"
+install=""
+subpackages="$pkgname-doc"
+source="http://ibiblio.org/pub/linux/apps/financial/spreadsheet/$pkgname-$pkgver.tar.gz
+ sc_7.16-2.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
+}
+
+build() {
+ cd "$_builddir"
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/lib" "$pkgdir/usr/share/doc" \
+ "$pkgdir/usr/share/man"
+ make prefix="$pkgdir"/usr MANDIR="$pkgdir/usr/share/man" install \
+ || return 1
+}
+md5sums="1db636e9b2dc7cd73c40aeece6852d47 sc-7.16.tar.gz
+58c3c966ab818ddee9726880ea7e6e44 sc_7.16-2.patch"
+sha256sums="1997a00b6d82d189b65f6fd2a856a34992abc99e50d9ec463bbf1afb750d1765 sc-7.16.tar.gz
+8146623fb7369d4cc10a91032a646519077314a04632d1c40d5b97d0967a70d0 sc_7.16-2.patch"
+sha512sums="efa495ba21d01b578a53f09101ccc28b564437317e0860904ad59136a24df9619dfc8715339296ae1567eaa8d620cdabc9bc2784962bc1c93e3bbd086856407b sc-7.16.tar.gz
+cb025e84148085e37bfb0ee02bdda60e5ab146ded14f5f0da2f17b3dbf0ba330eef87e534f8a0085265e53295591de222350eb918bb0d1d2994894ce19b16862 sc_7.16-2.patch"
diff --git a/main/sc/sc_7.16-2.patch b/main/sc/sc_7.16-2.patch
new file mode 100644
index 0000000000..5028224d61
--- /dev/null
+++ b/main/sc/sc_7.16-2.patch
@@ -0,0 +1,782 @@
+--- sc-7.16.orig/sc.h
++++ sc-7.16/sc.h
+@@ -612,6 +612,9 @@
+ extern int rowlimit;
+ extern int collimit;
+
++void yankr(struct ent *v1, struct ent *v2);
++
++
+ #if BSD42 || SYSIII
+
+ #ifndef cbreak
+--- sc-7.16.orig/cmds.c
++++ sc-7.16/cmds.c
+@@ -478,7 +478,7 @@
+ int i, qtmp;
+ char buf[50];
+ struct frange *fr;
+- struct ent *obuf;
++ struct ent *obuf=0;
+
+ if ((fr = find_frange(currow, curcol)))
+ rs = fr->or_right->row - currow + 1;
+@@ -535,7 +535,7 @@
+ int cs = maxcol - curcol + 1;
+ int i, qtmp;
+ char buf[50];
+- struct ent *obuf;
++ struct ent *obuf=0;
+
+ if (cs - arg < 0) {
+ cs = cs > 0 ? cs : 0;
+@@ -810,7 +810,7 @@
+
+ if (to_insert == 'r') {
+ insertrow(numrows, 0);
+- if (fr = find_frange(currow, curcol))
++ if ((fr = find_frange(currow, curcol)))
+ deltac = fr->or_left->col - mincol;
+ else {
+ for (i = 0; i < numrows; i++)
+@@ -2279,7 +2279,7 @@
+ ret->e.r.right.vp = lookat(newrow, newcol);
+ ret->e.r.right.vf = e->e.r.right.vf;
+ } else {
+- struct enode *temprange;
++ struct enode *temprange=0;
+
+ if (freeenodes) {
+ ret = freeenodes;
+@@ -2337,8 +2337,7 @@
+ break;
+ case 'f':
+ case 'F':
+- if (range && ret->op == 'F' ||
+- !range && ret->op == 'f')
++ if ((range && ret->op == 'F') || (!range && ret->op == 'f'))
+ Rdelta = Cdelta = 0;
+ ret->e.o.left = copye(e->e.o.left, Rdelta, Cdelta,
+ r1, c1, r2, c2, transpose);
+@@ -2798,7 +2797,7 @@
+ write_cells(register FILE *f, int r0, int c0, int rn, int cn, int dr, int dc)
+ {
+ register struct ent **pp;
+- int r, c, rs, cs, mf;
++ int r, c, rs=0, cs=0, mf;
+ char *dpointptr;
+
+ mf = modflg;
+@@ -2861,12 +2860,12 @@
+ if ((plugin = findplugin(p+1, 'w')) != NULL) {
+ if (!plugin_exists(plugin, strlen(plugin), save + 1)) {
+ error("plugin not found");
+- return;
++ return -1;
+ }
+ *save = '|';
+ if ((strlen(save) + strlen(fname) + 20) > PATHLEN) {
+ error("Path too long");
+- return;
++ return -1;
+ }
+ sprintf(save + strlen(save), " %s%d:", coltoa(c0), r0);
+ sprintf(save + strlen(save), "%s%d \"%s\"", coltoa(cn), rn, fname);
+@@ -2883,13 +2882,14 @@
+ }
+ #endif /* VMS */
+
+- if (*fname == '\0')
++ if (*fname == '\0'){
+ if (isatty(STDOUT_FILENO) || *curfile != '\0')
+ fname = curfile;
+ else {
+ write_fd(stdout, r0, c0, rn, cn);
+ return (0);
+ }
++ }
+
+ #ifdef MSDOS
+ namelen = 12;
+@@ -2981,12 +2981,12 @@
+ if ((plugin = findplugin(p+1, 'r')) != NULL) {
+ if (!(plugin_exists(plugin, strlen(plugin), save + 1))) {
+ error("plugin not found");
+- return;
++ return -1;
+ }
+ *save = '|';
+ if ((strlen(save) + strlen(fname) + 2) > PATHLEN) {
+ error("Path too long");
+- return;
++ return -1;
+ }
+ sprintf(save + strlen(save), " \"%s\"", fname);
+ eraseflg = 0;
+--- sc-7.16.orig/abbrev.c
++++ sc-7.16/abbrev.c
+@@ -19,10 +19,15 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <ctype.h>
++#include <curses.h>
++#include <unistd.h>
+ #include "sc.h"
+
+ static struct abbrev *abbr_base;
+
++int are_abbrevs(void);
++
++
+ void
+ add_abbr(char *string)
+ {
+@@ -87,7 +92,7 @@
+ }
+ }
+
+- if (expansion == NULL)
++ if (expansion == NULL){
+ if ((a = find_abbr(string, strlen(string), &prev))) {
+ error("abbrev \"%s %s\"", a->abbr, a->exp);
+ return;
+@@ -95,6 +100,7 @@
+ error("abreviation \"%s\" doesn't exist", string);
+ return;
+ }
++ }
+
+ if (find_abbr(string, strlen(string), &prev))
+ del_abbr(string);
+@@ -122,7 +128,7 @@
+ del_abbr(char *abbrev)
+ {
+ struct abbrev *a;
+- struct abbrev **prev;
++ struct abbrev **prev=0;
+
+ if (!(a = find_abbr(abbrev, strlen(abbrev), prev)))
+ return;
+--- sc-7.16.orig/range.c
++++ sc-7.16/range.c
+@@ -18,6 +18,8 @@
+
+ #include <stdio.h>
+ #include <ctype.h>
++#include <unistd.h>
++#include <curses.h>
+ #include "sc.h"
+
+ static struct range *rng_base;
+--- sc-7.16.orig/vi.c
++++ sc-7.16/vi.c
+@@ -17,6 +17,8 @@
+ #include <curses.h>
+ #include <ctype.h>
+ #include <stdlib.h>
++#include <unistd.h>
++#include <sys/wait.h>
+ #include "sc.h"
+
+ #if defined(REGCOMP)
+@@ -40,7 +42,7 @@
+
+ #define istext(a) (isalnum(a) || ((a) == '_'))
+
+-#define bool int
++/*#define bool int*/
+ #define true 1
+ #define false 0
+
+@@ -667,8 +669,10 @@
+ static struct range *nextmatch;
+ int len;
+
+- if (linelim > 0 && isalnum(line[linelim-1]) || line[linelim-1] == '_' ||
+- (completethis && line[linelim-1] == ' ')) {
++ if ((linelim > 0 && isalnum(line[linelim-1])) ||
++ line[linelim-1] == '_' ||
++ (completethis && line[linelim-1] == ' ')) {
++
+ if (!completethis) {
+ for (completethis = line + linelim - 1; isalnum(*completethis) ||
+ *completethis == '_'; completethis--) /* */;
+@@ -715,7 +719,7 @@
+ showdr()
+ {
+ int minsr, minsc, maxsr, maxsc;
+- char *p;
++ /*char *p;*/
+ char r[12];
+ struct frange *fr = find_frange(currow, curcol);
+
+@@ -1566,7 +1570,7 @@
+ search_again(bool reverse)
+ {
+ int prev_match;
+- int found_it;
++ int found_it=0;
+ #if !defined(REGCOMP) && !defined(RE_COMP) && !defined(REGCMP)
+ char *look_here;
+ int do_next;
+@@ -1777,7 +1781,7 @@
+ static void
+ match_paren()
+ {
+- register int i;
++ /*register int i;*/
+ int nest = 1;
+ int tmp = linelim;
+
+--- sc-7.16.orig/vmtbl.c
++++ sc-7.16/vmtbl.c
+@@ -16,6 +16,7 @@
+ # include <curses.h>
+ #endif /* PSC */
+
++#include <unistd.h>
+ #include "sc.h"
+
+ /*
+--- sc-7.16.orig/Makefile
++++ sc-7.16/Makefile
+@@ -32,7 +32,7 @@
+
+ # This is where the library file (tutorial) goes.
+ #LIBDIR=/usr/local/share/$(name) # reno
+-LIBDIR=${prefix}/lib/$(name)
++LIBDIR=${prefix}/share/doc/$(name)
+ LIBRARY=-DLIBDIR=\"${LIBDIR}\"
+
+ # Set SIMPLE for lex.c if you don't want arrow keys or lex.c blows up
+--- sc-7.16.orig/color.c
++++ sc-7.16/color.c
+@@ -19,6 +19,7 @@
+
+ #include <curses.h>
+ #include <ctype.h>
++#include <unistd.h>
+ #include "sc.h"
+
+ /* a linked list of free [struct ent]'s, uses .next as the pointer */
+--- sc-7.16.orig/debian/sc.dirs
++++ sc-7.16/debian/sc.dirs
+@@ -0,0 +1,3 @@
++usr/bin
++usr/share/doc/sc
++usr/share/man/man1
+--- sc-7.16.orig/debian/control
++++ sc-7.16/debian/control
+@@ -0,0 +1,20 @@
++Source: sc
++Section: math
++Priority: optional
++Build-Depends: libncurses5-dev, bison, debhelper (>=4)
++Maintainer: Adam Majer <adamm@galacticasoftware.com>
++Standards-Version: 3.6.1
++
++Package: sc
++Architecture: any
++Depends: ${shlibs:Depends}
++Description: Text-based spreadsheet with VI-like keybindings
++ "Spreadsheet Calculator" is a much modified version of the public-
++ domain spread sheet sc, which was posted to Usenet several years ago
++ by Mark Weiser as vc, originally by James Gosling. It is based on
++ rectangular table much like a financial spreadsheet.
++ .
++ Its keybindings are familiar to users of 'vi', and it has most
++ features that a pure spreadsheet would, but lacks things like
++ graphing and saving in foreign formats. It's very stable and quite
++ easy to use once you've put a little effort into learning it.
+--- sc-7.16.orig/debian/compat
++++ sc-7.16/debian/compat
+@@ -0,0 +1 @@
++4
+--- sc-7.16.orig/debian/changelog
++++ sc-7.16/debian/changelog
+@@ -0,0 +1,117 @@
++sc (7.16-2) unstable; urgency=low
++
++ * New maintainer (closes: #260000)
++ * Fixed the code to remove most of the warnings during compile.
++ * No longer tries to "redefine" malloc (closes: #259840)
++ * debian/rules now uses debhelper
++
++ -- Adam Majer <adamm@galacticasoftware.com> Mon, 19 Jul 2004 14:24:48 -0500
++
++sc (7.16-1) unstable; urgency=low
++
++ * New upstream version. (closes: Bug#131782, Bug#169590)
++ * Doesn't use '#' as backup character. (closes: Bug#127612)
++ * Help page index fixed. (closes: Bug#115456)
++ * Tutorial file location corrected in man page. (closes: Bug#115454)
++
++ -- Chad Miller <cmiller@debian.org> Tue, 19 Nov 2002 14:11:52 -0500
++
++sc (7.13-2) unstable; urgency=low
++
++ * Fixed spelling error in package description.
++
++ -- Chad Miller <cmiller@debian.org> Tue, 18 Dec 2001 14:22:47 +0000
++
++sc (7.13-1) unstable; urgency=low
++
++ * New upstream version; many bugfixes. (closes: Bug#114473)
++
++ -- Chad Miller <cmiller@debian.org> Thu, 4 Oct 2001 19:54:46 +0000
++
++sc (6.21-12) unstable; urgency=low
++
++ * Installed 'tutorial.sc' in doc directory. (closes: Bug:85546)
++
++ -- Chad Miller <cmiller@debian.org> Sat, 17 Mar 2001 15:03:21 -0500
++
++sc (6.21-11) unstable; urgency=low
++
++ * Maintainer change. (closes: Bug#68149)
++ * Put manpages under /usr/share/man, as recent policy says.
++ * Added to CFLAGS, to prevent ``still changing'' bug on some architectures.
++ (closes: Bug#50986)
++
++ -- Chad Miller <cmiller@debian.org> Mon, 8 Jan 2001 15:20:02 -0500
++
++sc (6.21-10) unstable; urgency=low
++
++ * Added support for cursor keys, thanks to D. J. Raymond
++ <raymond@kestrel.nmt.edu>
++
++ -- Martin Schulze <joey@finlandia.infodrom.north.de> Sun, 2 Jan 2000 17:35:34 +0100
++
++sc (6.21-9) unstable; urgency=low, closes=48133
++
++ * Corrected manpage creation (closes: Bug#48133)
++
++ -- Martin Schulze <joey@finlandia.infodrom.north.de> Fri, 29 Oct 1999 00:32:30 +0200
++
++sc (6.21-8) frozen unstable; urgency=low, closes=29540
++
++ * Removed external declaration for strcpy() and strcat() from format.c
++ and included <string.h> instead. (closes: Bug#29540)
++
++ -- Martin Schulze <joey@finlandia.infodrom.north.de> Tue, 17 Nov 1998 11:19:50 +0100
++
++sc (6.21-7) unstable; urgency=low
++
++ * Re-compiled against ncurses4
++
++ -- Martin Schulze <joey@finlandia.infodrom.north.de> Fri, 30 Oct 1998 11:14:48 +0100
++
++sc (6.21-6) unstable; urgency=low
++
++ * Applied y2k patch from L J Bayuk <lbayuk@mindspring.com>. Thanks to
++ Ray for forwarding.
++
++ -- Martin Schulze <joey@finlandia.infodrom.north.de> Fri, 23 Oct 1998 19:21:05 +0200
++
++sc (6.21-5) unstable; urgency=low, closes=25513 23241
++
++ * Undebhelpering it
++ * Recompiled against ncurses3.4 to make it work with that lib (closes:
++ Bug#25513, Bug#23241)
++ * This works together with the current ncurses package
++
++ -- Martin Schulze <joey@finlandia.infodrom.north.de> Sun, 6 Sep 1998 22:22:47 +0000
++
++sc (6.21-4) unstable; urgency=high, closes=22616
++
++ * Recompiled against ncurses3.4 to make it work with that lib (closes:
++ Bug#22616)
++ * Added Conflicts: ncurses3.4 (<<1.9.9g-8.2)
++
++ -- Martin Schulze <joey@finlandia.infodrom.north.de> Tue, 19 May 1998 10:30:44 +0200
++
++sc (6.21-3) frozen unstable; urgency=low, closes=20915
++
++ * Corrected sc.1 manpage (closes: Bug#20915)
++ * Removed dh_du
++ * Added scqref.1 undocumented manpage link
++
++ -- Martin Schulze <joey@finlandia.infodrom.north.de> Sat, 11 Apr 1998 04:45:23 +0200
++
++sc (6.21-2) unstable; urgency=low, closes=20079
++
++ * Removed dependency to regex (closes: Bug#20079)
++ * Little code clean ups in pvmtbl.c
++
++ -- Martin Schulze <joey@finlandia.infodrom.north.de> Mon, 23 Mar 1998 01:56:31 +0100
++
++sc (6.21-1) unstable; urgency=low
++
++ * First release
++ * Removed references to initkbd(), resetkbd() and kbd_again()
++ * Changed nmgetch() to getch()
++
++ -- Martin Schulze <joey@finlandia.infodrom.north.de> Thu, 12 Mar 1998 02:58:48 +0100
+--- sc-7.16.orig/debian/copyright
++++ sc-7.16/debian/copyright
+@@ -0,0 +1,15 @@
++This is the Debian GNU/Linux prepackaged version of the public domain
++spread sheet sc, posted several years ago by Mark Weiser as vc,
++originally by James Gosling.
++
++This package was originally put together by
++Martin Schulze <joey@infodrom.north.de>, and later adopted by
++Chad Miller <cmiller@debian.org>. Source was obtained from:
++ http://ibiblio.org/pub/Linux/apps/financial/spreadsheet/sc-7.13.tar.gz
++
++Sc is not a product of ProsLink, Inc. It is supplied as is with no
++warranty, express or implied, as a service to Usenet readers. It is
++not copyrighted, either. Have at it.
++
++Some of the files were originally written by Robert Bond, James
++Gosling, Bradley Williams or Mark Nagel.
+--- sc-7.16.orig/debian/rules
++++ sc-7.16/debian/rules
+@@ -0,0 +1,95 @@
++#!/usr/bin/make -f
++# -*- makefile -*-
++# Sample debian/rules that uses debhelper.
++# GNU copyright 1997 to 1999 by Joey Hess.
++
++# Uncomment this to turn on verbose mode.
++#export DH_VERBOSE=1
++
++ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
++ CFLAGS += -O0
++else
++ CFLAGS += -O2
++endif
++ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
++ INSTALL_PROGRAM += -s
++endif
++
++configure: configure-stamp
++configure-stamp:
++ dh_testdir
++ # Add here commands to configure the package.
++ touch configure-stamp
++
++
++build: build-stamp
++
++build-stamp: configure-stamp
++ dh_testdir
++
++ # Add here commands to compile the package.
++ $(MAKE) all sc.1 psc.1 CC=gcc CFLAGS="-O2 -Wall -DSYSV3 -ffloat-store"
++ #/usr/bin/docbook-to-man debian/sc.sgml > sc.1
++
++ touch build-stamp
++
++clean:
++ dh_testdir
++ dh_testroot
++ rm -f build-stamp configure-stamp
++
++ # Add here commands to clean up after the build process.
++ -test -f Makefile && $(MAKE) clean
++ rm -f sc psc scqref
++ find . -name '*~' -exec rm {} \;
++ rm -rf stamp-build *~
++
++ dh_clean
++
++install: build
++ dh_testdir
++ dh_testroot
++ dh_clean -k
++ dh_installdirs
++
++ # Add here commands to install the package into debian/sc.
++ # $(MAKE) install DESTDIR=$(CURDIR)/debian/sc
++
++
++# Build architecture-independent files here.
++binary-indep: build install
++# We have nothing to do by default.
++
++# Build architecture-dependent files here.
++binary-arch: build install
++ dh_testdir
++ dh_testroot
++ dh_installchangelogs CHANGES
++ dh_installdocs
++# dh_installexamples
++ dh_install
++# dh_installmenu
++# dh_installdebconf
++# dh_installlogrotate
++# dh_installemacsen
++# dh_installpam
++# dh_installmime
++# dh_installinit
++# dh_installcron
++# dh_installinfo
++ dh_installman
++# dh_link
++ dh_strip
++ dh_compress
++ dh_fixperms
++# dh_perl
++# dh_python
++# dh_makeshlibs
++ dh_installdeb
++ dh_shlibdeps
++ dh_gencontrol
++ dh_md5sums
++ dh_builddeb
++
++binary: binary-indep binary-arch
++.PHONY: build clean binary-indep binary-arch binary install configure
+--- sc-7.16.orig/debian/sc.docs
++++ sc-7.16/debian/sc.docs
+@@ -0,0 +1,2 @@
++README
++tutorial.sc
+--- sc-7.16.orig/debian/sc.install
++++ sc-7.16/debian/sc.install
+@@ -0,0 +1,3 @@
++sc usr/bin
++psc usr/bin
++scqref usr/bin
+--- sc-7.16.orig/debian/sc.manpages
++++ sc-7.16/debian/sc.manpages
+@@ -0,0 +1,2 @@
++psc.1
++sc.1
+--- sc-7.16.orig/frame.c
++++ sc-7.16/frame.c
+@@ -18,6 +18,9 @@
+
+ #include <stdio.h>
+ #include <ctype.h>
++#include <stdlib.h>
++#include <curses.h>
++#include <unistd.h>
+ #include "sc.h"
+
+ static struct frange *frame_base;
+--- sc-7.16.orig/sc.c
++++ sc-7.16/sc.c
+@@ -212,7 +212,7 @@
+
+ if (dbidx < 0)
+ return;
+- if (p = delbuf[dbidx]) {
++ if ((p = delbuf[dbidx])) {
+ scxfree(delbuffmt[dbidx]);
+ delbuffmt[dbidx] = NULL;
+ }
+@@ -845,7 +845,7 @@
+ break;
+ case 'C':
+ color = !color;
+- if (has_colors())
++ if (has_colors()){
+ if (color) {
+ attron(COLOR_PAIR(1));
+ bkgd(COLOR_PAIR(1) | ' ');
+@@ -853,6 +853,7 @@
+ attron(COLOR_PAIR(0));
+ bkgd(COLOR_PAIR(0) | ' ');
+ }
++ }
+ error("Color %sabled.", color ? "en" : "dis");
+ break;
+ case 'N':
+--- sc-7.16.orig/sort.c
++++ sc-7.16/sort.c
+@@ -19,6 +19,8 @@
+ #include <stdio.h>
+ #include <ctype.h>
+ #include <stdlib.h>
++#include <unistd.h>
++#include <curses.h>
+ #include "sc.h"
+
+ int compare(const void *row1, const void *row2);
+--- sc-7.16.orig/xmalloc.c
++++ sc-7.16/xmalloc.c
+@@ -4,11 +4,12 @@
+ */
+
+ #include <curses.h>
++#include <stdlib.h>
+ #include "sc.h"
+
+-extern char *malloc();
++/* extern char *malloc();
+ extern char *realloc();
+-extern void free();
++extern void free(); */
+ void fatal();
+
+ #ifdef SYSV3
+--- sc-7.16.orig/screen.c
++++ sc-7.16/screen.c
+@@ -234,11 +234,12 @@
+ i = stcol;
+ lcols = 0;
+ col = rescol + frcols;
+- if (fr && stcol >= fr->or_left->col)
++ if (fr && stcol >= fr->or_left->col){
+ if (stcol < fr->ir_left->col)
+ i = fr->or_left->col;
+ else
+ col += flcols;
++ }
+ for (; (col + fwidth[i] < cols-1 || col_hidden[i] || i < curcol) &&
+ i < maxcols; i++) {
+ lcols++;
+@@ -328,11 +329,12 @@
+ i = stcol;
+ lcols = 0;
+ col = rescol + frcols;
+- if (fr && stcol >= fr->or_left->col)
++ if (fr && stcol >= fr->or_left->col){
+ if (stcol < fr->ir_left->col)
+ i = fr->or_left->col;
+ else
+ col += flcols;
++ }
+ for (; (col + fwidth[i] < cols-1 || col_hidden[i] || i < curcol) &&
+ i < maxcols; i++) {
+ lcols++;
+@@ -377,11 +379,12 @@
+ i = strow;
+ rows = 0;
+ row = RESROW + fbrows;
+- if (fr && strow >= fr->or_left->row)
++ if (fr && strow >= fr->or_left->row){
+ if (strow < fr->ir_left->row)
+ i = fr->or_left->row;
+ else
+ row += ftrows;
++ }
+ for (; (row < lines || row_hidden[i] || i < currow) && i < maxrows;
+ i++) {
+ rows++;
+@@ -460,11 +463,12 @@
+ i = strow;
+ rows = 0;
+ row = RESROW + fbrows;
+- if (fr && strow >= fr->or_left->row)
++ if (fr && strow >= fr->or_left->row){
+ if (strow < fr->ir_left->row)
+ i = fr->or_left->row;
+ else
+ row += ftrows;
++ }
+ for (; (row < lines || row_hidden[i] || i < currow) && i < maxrows;
+ i++) {
+ rows++;
+--- sc-7.16.orig/lex.c
++++ sc-7.16/lex.c
+@@ -34,6 +34,8 @@
+ #include <signal.h>
+ #include <setjmp.h>
+ #include <ctype.h>
++#include <unistd.h>
++#include <math.h>
+ #include "sc.h"
+
+ #ifdef NONOTIMEOUT
+@@ -107,7 +109,7 @@
+ yylex()
+ {
+ char *p = line + linelim;
+- int ret;
++ int ret=0;
+ static int isfunc = 0;
+ static bool isgoto = 0;
+ static bool colstate = 0;
+@@ -326,7 +328,7 @@
+ strcpy((char *)path, HomeDir);
+ strcat((char *)path, "/.sc/plugins/");
+ strncat((char *)path, name, len);
+- if (fp = fopen((char *)path, "r")) {
++ if ((fp = fopen((char *)path, "r"))) {
+ fclose(fp);
+ return 1;
+ }
+@@ -334,7 +336,7 @@
+ strcpy((char *)path, LIBDIR);
+ strcat((char *)path, "/plugins/");
+ strncat((char *)path, name, len);
+- if (fp = fopen((char *)path, "r")) {
++ if ((fp = fopen((char *)path, "r"))) {
+ fclose(fp);
+ return 1;
+ }
+--- sc-7.16.orig/interp.c
++++ sc-7.16/interp.c
+@@ -1572,12 +1572,12 @@
+ copy(struct ent *dv1, struct ent *dv2, struct ent *v1, struct ent *v2)
+ {
+ struct ent *p;
+- struct ent *n;
++/* struct ent *n;*/
+ static int minsr = -1, minsc = -1;
+ static int maxsr = -1, maxsc = -1;
+ int mindr, mindc;
+ int maxdr, maxdc;
+- int vr, vc;
++/* int vr, vc;*/
+ int r, c;
+ int deltar, deltac;
+
+@@ -2066,7 +2066,7 @@
+ *line = '\0';
+ }
+ }
+- if (!col_hidden[c])
++ if (!col_hidden[c]){
+ if (gs.g_type == G_STR) {
+ if (p && p->label
+ #if defined(REGCOMP)
+@@ -2099,6 +2099,7 @@
+ #endif
+ #endif
+ break;
++ }
+ if (r == endr && c == endc) {
+ error("String not found");
+ #if defined(REGCOMP)
+@@ -2471,13 +2472,11 @@
+ int
+ constant(register struct enode *e)
+ {
+- return (
+- e == NULL
++ return e == NULL
+ || e->op == O_CONST
+ || e->op == O_SCONST
+- || e->op == 'm' && constant(e->e.o.left)
+- || (
+- e->op != O_VAR
++ || (e->op == 'm' && constant(e->e.o.left))
++ || (e->op != O_VAR
+ && !(e->op & REDUCE)
+ && constant(e->e.o.left)
+ && constant(e->e.o.right)
+@@ -2491,9 +2490,7 @@
+ && e->op != LASTCOL
+ && e->op != NUMITER
+ && e->op != FILENAME
+- && optimize
+- )
+- );
++ && optimize );
+ }
+
+ void
+--- sc-7.16.orig/help.c
++++ sc-7.16/help.c
+@@ -11,6 +11,7 @@
+ char *revision = "$Revision: 7.16 $";
+ #else
+ #include <curses.h>
++#include <unistd.h>
+ #include "sc.h"
+ #endif /* QREF */
+
diff --git a/main/sipcalc/APKBUILD b/main/sipcalc/APKBUILD
new file mode 100644
index 0000000000..49ef8c9b02
--- /dev/null
+++ b/main/sipcalc/APKBUILD
@@ -0,0 +1,43 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=sipcalc
+pkgver=1.1.6
+pkgrel=0
+pkgdesc="Advanced console based ip subnet calculator"
+url="http://www.routemeister.net/projects/sipcalc/"
+arch="all"
+license="BSD"
+depends=""
+depends_dev=""
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://www.routemeister.net/projects/sipcalc/files/${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"
+ ./configure || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ mkdir -p "$pkgdir/usr/bin" "$pkgdir/usr/lib" "$pkgdir/usr/share/man/man1"
+ make prefix="$pkgdir"/usr MANDIR="$pkgdir"/usr/share/man/man1 install || return 1
+
+}
+
+md5sums="e431c64387f2c8d20e96ad1d7931a845 sipcalc-1.1.6.tar.gz"
+sha256sums="cfd476c667f7a119e49eb5fe8adcfb9d2339bc2e0d4d01a1d64b7c229be56357 sipcalc-1.1.6.tar.gz"
+sha512sums="9d2047a6fb6ef177d455f44abea19bab7d0131b16eb2444b2b074e94e776854fa74084ab625d2be9b64d136979ede71722c2e24dca12ff54e4a5bb02f947570e sipcalc-1.1.6.tar.gz"
diff --git a/main/snownews/APKBUILD b/main/snownews/APKBUILD
new file mode 100644
index 0000000000..d3839b5b56
--- /dev/null
+++ b/main/snownews/APKBUILD
@@ -0,0 +1,44 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=snownews
+pkgver=1.5.12
+pkgrel=1
+pkgdesc="Snownews is a text mode RSS/RDF newsreader"
+url="https://kiza.eu/software/snownews/"
+arch="all"
+license="GPL"
+depends="ncurses"
+depends_dev="libintl openssl-dev perl ncurses-dev libxml2 readline-dev gettext-dev"
+makedepends="$depends_dev"
+install=""
+subpackages="$pkgname-lang $pkgname-doc"
+source="https://kiza.eu/media/software/snownews/${pkgname}-${pkgver}.tar.gz
+ configure.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
+}
+
+build() {
+ cd "$_builddir"
+ ./configure --prefix=/usr || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir" install || return 1
+}
+md5sums="80da8943fc5aa96571924aec0087d4c0 snownews-1.5.12.tar.gz
+1cc8b5571c4d977417b41915f74ffef5 configure.patch"
+sha256sums="26dd96e9345d9cbc1c0c9470417080dd0c3eb31e7ea944f78f3302d7060ecb90 snownews-1.5.12.tar.gz
+597e360414501f0588459316c4b51b905a9d0eec4ce75ce891b2e315f39bbbbc configure.patch"
+sha512sums="7a7ccd5ea57f8bbb73f1429ab931a38203e858c74a383c5347e66088b84f6a7240feeee99e179687ce0a7a89c6c1406ce20d6c5d6771d25a0a0301fa5526e220 snownews-1.5.12.tar.gz
+d7ed00a401c1963a5619b0b221ae354e5a8a8423f75313e906f43b5a64c099fac8239d7eb1a34d47c284e96b9ad2965f1ecdad58fb28101f7397143847a5e230 configure.patch"
diff --git a/main/snownews/configure.patch b/main/snownews/configure.patch
new file mode 100644
index 0000000000..8f2699bbc9
--- /dev/null
+++ b/main/snownews/configure.patch
@@ -0,0 +1,11 @@
+--- snownews-1.5.12/configure
++++ snownews-1.5.12/configure.patched
+@@ -13,7 +13,7 @@
+
+ my $prefix = "/usr/local";
+ my $cflags = "-Wall -Wno-format-y2k -O2 -DLOCALEPATH=\"\\\"\$(LOCALEPATH)\\\"\" -DOS=\\\"$os\\\" $xmlcflags \$(EXTRA_CFLAGS) ";
+-my $ldflags = "-lncurses -lcrypto $xmlldflags \$(EXTRA_LDFLAGS) ";
++my $ldflags = "-lintl -lncursesw -lcrypto $xmlldflags \$(EXTRA_LDFLAGS) ";
+
+ my $use_nls = 1;
+ parse_cmdl_line();
diff --git a/main/stalonetray/APKBUILD b/main/stalonetray/APKBUILD
new file mode 100644
index 0000000000..d2cc9e9f44
--- /dev/null
+++ b/main/stalonetray/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=stalonetray
+pkgver=0.8.3
+pkgrel=0
+pkgdesc="Stalonetray is a stand-alone freedesktop.org and KDE system tray"
+url="http://stalonetray.sourceforge.net/"
+arch="all"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="libx11-dev libxpm-dev"
+install=""
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/project/${pkgname}/${pkgname}/${pkgname}-${pkgver}/${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
+ make
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR=$pkgdir install
+ install -D -m644 stalonetrayrc.sample $pkgdir/etc/stalonetrayrc
+}
+
+md5sums="ae95dbbacc2620e032acea8abab8c9ef stalonetray-0.8.3.tar.bz2"
+sha256sums="36548a588b2d466913423245dda6ffb6313132cd0cec635a117d37b3dab5fd4c stalonetray-0.8.3.tar.bz2"
+sha512sums="b1c50d844b6497b586c1ad56b721675690ea305a4e3a2601ab5305af0e208c215825eefa8fa374ae0c392252156a8dffd5882992c943344f5b6a674fe6553942 stalonetray-0.8.3.tar.bz2"
diff --git a/main/termrec/APKBUILD b/main/termrec/APKBUILD
new file mode 100644
index 0000000000..b171a64748
--- /dev/null
+++ b/main/termrec/APKBUILD
@@ -0,0 +1,42 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=termrec
+pkgver=0.17
+pkgrel=0
+pkgdesc="termrec is a program for recording "videos" of terminal output"
+url="http://angband.pl/termrec.html"
+arch="all"
+license="GPL"
+depends=""
+depends_dev=""
+makedepends="zlib-dev"
+install=""
+subpackages="$pkgname-dev $pkgname-doc"
+source="http://prdownloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.xz"
+options="libtool"
+
+_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
+ make || return 1
+ }
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="$pkgdir/" install
+ }
+
+md5sums="4d0bc41411196a81157a72b68736a0f4 termrec-0.17.tar.xz"
+sha256sums="62f02c245b36d9059aef91a70fa8daee7cd946f22eac2947a1204d7bf4e63473 termrec-0.17.tar.xz"
+sha512sums="43b9649b9dfff0b01fc545a388b21341f40667b176b585c160a28efa6b2cde1ef1d60770423c5739d790d6ad2e53ee7f81ad0ab28545d595a442f94d10a52e58 termrec-0.17.tar.xz"
diff --git a/main/tsocks/APKBUILD b/main/tsocks/APKBUILD
new file mode 100644
index 0000000000..c662a133aa
--- /dev/null
+++ b/main/tsocks/APKBUILD
@@ -0,0 +1,53 @@
+# Contributor: ScrumpyJack <scrumpyjack@me.com>
+# Maintainer: ScrumpyJack <scrumpyjack@st.ilet.to>
+pkgname=tsocks
+pkgver=1.8_beta5
+_ver=${pkgver/_beta/beta}
+pkgrel=0
+pkgdesc="A transparent SOCKS proxying library"
+url="http://tsocks.sourceforge.net/"
+arch="x86_64"
+license="GPL2"
+depends=""
+depends_dev=""
+makedepends=""
+install=""
+subpackages="$pkgname-doc"
+source="http://downloads.sourceforge.net/${pkgname}/${pkgname}-${_ver}.tar.gz
+ configure.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
+}
+
+build() {
+ cd "$_builddir"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --mandir=/usr/share/man \
+ --libdir=/usr/lib \
+ || return 1
+ make || return 1
+}
+
+package() {
+ cd "$_builddir"
+ make DESTDIR="${pkgdir}" install || return 1
+}
+
+md5sums="51caefd77e5d440d0bbd6443db4fc0f8 tsocks-1.8beta5.tar.gz
+644111485855c4d436fe89b9de9426d6 configure.patch"
+sha256sums="849d7ef5af80d03e76cc05ed9fb8fa2bcc2b724b51ebfd1b6be11c7863f5b347 tsocks-1.8beta5.tar.gz
+264628c26991c8c380dd6b2e0ced1cacfd52d33743477dac245360ef730474c4 configure.patch"
+sha512sums="b41636ea6b77abf0d1e3cda7bbca4e7ee96f3cdb1843f3a2c530650931e5567f67921de67b28ba9bab0f51df39770a3f7fb458cf7ac78aad7aa861923df2c4a9 tsocks-1.8beta5.tar.gz
+919479e359cafe4b331f5e5b058e0f07d1e6a37aa614891f9b16b4ea12a2358f8f42bb75c8cf9ebbecb223f88b1326e35f490c166247bd00d58e1eee57955800 configure.patch"
diff --git a/main/tsocks/configure.patch b/main/tsocks/configure.patch
new file mode 100644
index 0000000000..e33485ea7c
--- /dev/null
+++ b/main/tsocks/configure.patch
@@ -0,0 +1,71 @@
+*** tsocks-1.8/configure Mon Jul 15 22:51:08 2002
+--- tsocks-1.8/configure.modified Thu Mar 26 18:34:09 2015
+***************
+*** 1299,1314 ****
+ fi
+
+
+! ac_safe=`echo "sys/poll.h" | sed 'y%./+-%__p_%'`
+! echo $ac_n "checking for sys/poll.h""... $ac_c" 1>&6
+! echo "configure:1305: checking for sys/poll.h" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+ #line 1310 "configure"
+ #include "confdefs.h"
+! #include <sys/poll.h>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ { (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+--- 1299,1314 ----
+ fi
+
+
+! ac_safe=`echo "poll.h" | sed 'y%./+-%__p_%'`
+! echo $ac_n "checking for poll.h""... $ac_c" 1>&6
+! echo "configure:1305: checking for poll.h" >&5
+ if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
+ echo $ac_n "(cached) $ac_c" 1>&6
+ else
+ cat > conftest.$ac_ext <<EOF
+ #line 1310 "configure"
+ #include "confdefs.h"
+! #include <poll.h>
+ EOF
+ ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
+ { (eval echo configure:1315: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+***************
+*** 1330,1336 ****
+ :
+ else
+ echo "$ac_t""no" 1>&6
+! { echo "configure: error: "sys/poll.h not found"" 1>&2; exit 1; }
+ fi
+
+
+--- 1330,1336 ----
+ :
+ else
+ echo "$ac_t""no" 1>&6
+! { echo "configure: error: "poll.h not found"" 1>&2; exit 1; }
+ fi
+
+
+***************
+*** 2235,2241 ****
+ #line 2236 "configure"
+ #include "confdefs.h"
+
+! #include <sys/poll.h>
+ int poll($testproto);
+
+ int main() {
+--- 2235,2241 ----
+ #line 2236 "configure"
+ #include "confdefs.h"
+
+! #include <poll.h>
+ int poll($testproto);
+
+ int main() {