elinks: new package, elinks 0.13-git
This commit is contained in:
parent
0aae2886aa
commit
43544333c3
72
elinks/build.sh
Executable file
72
elinks/build.sh
Executable file
@ -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 $*
|
4
elinks/meta/ChangeLog
Normal file
4
elinks/meta/ChangeLog
Normal file
@ -0,0 +1,4 @@
|
||||
CHANGELOG
|
||||
---------
|
||||
* Sat Mar 05 2016 Tom G. Christensen <swpkg@jupiterrise.com> - 0.13-0.1.4efea7e-1
|
||||
- First package
|
14
elinks/meta/pkgdef
Normal file
14
elinks/meta/pkgdef
Normal file
@ -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*
|
||||
|
11
elinks/src/elinks-inet_aton.patch
Normal file
11
elinks/src/elinks-inet_aton.patch
Normal file
@ -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.
|
||||
# ===================================================================
|
11
elinks/src/elinks-socklen_t.patch
Normal file
11
elinks/src/elinks-socklen_t.patch
Normal file
@ -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 {
|
Loading…
x
Reference in New Issue
Block a user