From 43544333c3041de6ffa0ef13c5d235e7d044314a Mon Sep 17 00:00:00 2001 From: "Tom G. Christensen" Date: Sat, 5 Mar 2016 21:49:49 +0100 Subject: [PATCH] elinks: new package, elinks 0.13-git --- elinks/build.sh | 72 +++++++++++++++++++++++++++++++ elinks/meta/ChangeLog | 4 ++ elinks/meta/pkgdef | 14 ++++++ elinks/src/elinks-inet_aton.patch | 11 +++++ elinks/src/elinks-socklen_t.patch | 11 +++++ 5 files changed, 112 insertions(+) create mode 100755 elinks/build.sh create mode 100644 elinks/meta/ChangeLog create mode 100644 elinks/meta/pkgdef create mode 100644 elinks/src/elinks-inet_aton.patch create mode 100644 elinks/src/elinks-socklen_t.patch diff --git a/elinks/build.sh b/elinks/build.sh new file mode 100755 index 0000000..42c923e --- /dev/null +++ b/elinks/build.sh @@ -0,0 +1,72 @@ +#!/bin/bash +# This is a buildpkg build.sh script +# build.sh helper functions +. ${BUILDPKG_SCRIPTS}/build.sh.functions +# +########################################################### +# Check the following 4 variables before running the script +topdir=elinks +version=0.13-0.1.4efea7e +pkgver=1 +source[0]=http://repo.or.cz/elinks.git/snapshot/4efea7e314b49df660799e71ede713dff0cd1230.tar.gz +# If there are no patches, simply comment this +patch[0]=elinks-socklen_t.patch +patch[1]=elinks-inet_aton.patch + +# Source function library +. ${BUILDPKG_SCRIPTS}/buildpkg.functions + +# Global settings +export PKG_CONFIG=pkgconf +export CPPFLAGS="-I$prefix/lib" +export LDFLAGS="-L$prefix/lib -R$prefix/lib" + +ac_overrides="ac_cv_func_mmap_fixed_mapped=no" +topsrcdir=${topdir}-4efea7e +configure_args+=(--without-x --with-lzma) + +reg prep +prep() +{ + generic_prep + setdir source + bash autogen.sh +} + +reg build +build() +{ + generic_build +} + +reg check +check() +{ + generic_check +} + +reg install +install() +{ + generic_install DESTDIR + doc AUTHORS COPYING README SITES TODO + ${__rmdir} ${stagedir}${prefix}/$_libdir + ${__rm} ${stagedir}${prefix}/$_sharedir/locale/locale.alias +} + +reg pack +pack() +{ + generic_pack +} + +reg distclean +distclean() +{ + clean distclean +} + +################################################### +# No need to look below here +################################################### +build_sh $* diff --git a/elinks/meta/ChangeLog b/elinks/meta/ChangeLog new file mode 100644 index 0000000..c982f20 --- /dev/null +++ b/elinks/meta/ChangeLog @@ -0,0 +1,4 @@ +CHANGELOG +--------- +* Sat Mar 05 2016 Tom G. Christensen - 0.13-0.1.4efea7e-1 +- First package diff --git a/elinks/meta/pkgdef b/elinks/meta/pkgdef new file mode 100644 index 0000000..32111a1 --- /dev/null +++ b/elinks/meta/pkgdef @@ -0,0 +1,14 @@ +[elinks] +pkgname="${pkgprefix}${topdir}" +name="$topdir - A text-mode Web browser" +pkgcat="application" +pkgvendor="http://change.me/please" +pkgdesc="Elinks is a text-based Web browser" +pkgver="$pkgver" +files(-,root,bin) +default_docs +$_bindir/elinks +$_sharedir/locale/*/LC_MESSAGES/elinks.mo +$_mandir/man1/elinks.1* +$_mandir/man5/elinks*.5* + diff --git a/elinks/src/elinks-inet_aton.patch b/elinks/src/elinks-inet_aton.patch new file mode 100644 index 0000000..15c8a8f --- /dev/null +++ b/elinks/src/elinks-inet_aton.patch @@ -0,0 +1,11 @@ +--- elinks-4efea7e/configure.in.orig 2016-02-07 11:51:17.000000000 +0100 ++++ elinks-4efea7e/configure.in 2016-03-05 20:30:29.360017000 +0100 +@@ -403,6 +403,8 @@ + AC_DEFINE_UNQUOTED(XTERM, "$withval", [How to invoke XTerm]) + fi ]) + ++AC_SEARCH_LIBS([inet_aton], [resolv nsl]) ++ + # =================================================================== + # Checks for a libraries, optional even if installed. + # =================================================================== diff --git a/elinks/src/elinks-socklen_t.patch b/elinks/src/elinks-socklen_t.patch new file mode 100644 index 0000000..97dfca9 --- /dev/null +++ b/elinks/src/elinks-socklen_t.patch @@ -0,0 +1,11 @@ +--- elinks-4efea7e/src/network/socket.c.orig 2016-02-07 11:51:17.000000000 +0100 ++++ elinks-4efea7e/src/network/socket.c 2016-03-05 20:11:19.980014000 +0100 +@@ -56,6 +56,8 @@ + #include "util/memory.h" + #include "util/string.h" + ++typedef int socklen_t; ++ + + /* Holds information used during the connection establishing phase. */ + struct connect_info {