summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel K2017-01-18 21:18:25 +0100
committerDaniel K2017-01-18 21:18:25 +0100
commit8366bc8c20c4d2dcbdeaada1baeab5b58302b15f (patch)
tree7bde6963d715ed327516a488af8a4ea5ab25b58b
downloadaur-8366bc8c20c4d2dcbdeaada1baeab5b58302b15f.tar.gz
Initial import
-rw-r--r--.SRCINFO28
-rw-r--r--.gitignore4
-rw-r--r--PKGBUILD67
-rw-r--r--lua_strlen_fix.patch13
4 files changed, 112 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..548559a34da
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,28 @@
+# Generated by mksrcinfo v8
+# Wed Jan 18 20:17:47 UTC 2017
+pkgbase = elinks-git
+ pkgdesc = An advanced and well-established feature-rich text mode web browser. Git version.
+ pkgver = 0.13.1467.re957e60d
+ pkgrel = 1
+ url = http://elinks.or.cz
+ arch = i686
+ arch = x86_64
+ license = GPL
+ depends = bzip2
+ depends = expat>=2.0
+ depends = gpm>=1.20.4
+ depends = openssl
+ depends = lua51
+ depends = libidn
+ depends = js185
+ depends = gc
+ depends = tre
+ provides = elinks
+ conflicts = elinks
+ source = git+http://elinks.cz/elinks.git
+ source = lua_strlen_fix.patch
+ md5sums = SKIP
+ md5sums = b0ea32b03eb8775d122c723a29e0db1e
+
+pkgname = elinks-git
+
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 00000000000..a040f60ec96
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+/elinks
+/pkg
+/*.pkg.tar.xz
+/src
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..20d4edbc629
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,67 @@
+# Contributor: Kyle Keen <keenerd@gmail.com>
+# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com>
+# Contributor: Andrea Scarpino <andrea@archlinux.org>
+# Contributor: damir <damir@archlinux.org>
+# Contributor: Ben <contrasutra@myrealbox.com>
+# Maintainer: ferreum <code.danielk at gmail com>
+
+_pkgname=elinks
+pkgname=${_pkgname}-git
+pkgver=0.13.1467.re957e60d
+pkgrel=1
+pkgdesc="An advanced and well-established feature-rich text mode web browser. Git version."
+arch=("i686" "x86_64")
+url="http://elinks.or.cz"
+provides=(${_pkgname})
+license=('GPL')
+conflicts=(${_pkgname})
+depends=('bzip2' 'expat>=2.0' 'gpm>=1.20.4' 'openssl' 'lua51' 'libidn' 'js185' 'gc' 'tre')
+source=("git+http://elinks.cz/elinks.git"
+ "lua_strlen_fix.patch")
+md5sums=('SKIP'
+ 'b0ea32b03eb8775d122c723a29e0db1e')
+
+# 0.13 does not have a tag.
+_relcommit="976f06ddf8d014fdfeee33a261e4f42eb4601e3b"
+_relname="0.13"
+
+pkgver() {
+ cd "${_pkgname}"
+ echo "${_relname}.$(git rev-list --count "${_relcommit}..HEAD").r$(git rev-parse --short HEAD)"
+}
+
+build() {
+ cd "${_pkgname}"
+
+ for f in lua_strlen_fix.patch; do
+ msg2 "applying $f..."
+ patch -p1 <"${srcdir}/$f"
+ done
+
+ msg2 "starting build..."
+
+ [ -x configure ] || sh autogen.sh
+ ./configure --prefix=/usr --mandir=/usr/share/man \
+ --sysconfdir=/etc \
+ --with-zlib \
+ --without-lzma \
+ --without-bzlib \
+ --without-x \
+ --without-spidermonkey \
+ --enable-cgi \
+ --enable-leds \
+ --disable-smb \
+ --disable-sm-scripting \
+ --enable-256-colors \
+ --enable-html-highlight \
+ --enable-exmode
+ make
+}
+
+package() {
+ cd "${_pkgname}"
+ make DESTDIR="$pkgdir" install
+ rm -f "$pkgdir/usr/share/locale/locale.alias"
+}
+
+# vim:set sw=2 sts=0 et:
diff --git a/lua_strlen_fix.patch b/lua_strlen_fix.patch
new file mode 100644
index 00000000000..8b610532f48
--- /dev/null
+++ b/lua_strlen_fix.patch
@@ -0,0 +1,13 @@
+diff --git a/src/scripting/lua/hooks.c b/src/scripting/lua/hooks.c
+index b94745a2..56f8c9bd 100644
+--- a/src/scripting/lua/hooks.c
++++ b/src/scripting/lua/hooks.c
+@@ -144,7 +144,7 @@ script_hook_pre_format_html(va_list ap, void *data)
+ if (err) return EVENT_HOOK_STATUS_NEXT;
+
+ if (lua_isstring(L, -1)) {
+- int len = lua_strlen(L, -1);
++ int len = lua_rawlen(L, -1);
+
+ add_fragment(cached, 0, (unsigned char *) lua_tostring(L, -1), len);
+ normalize_cache_entry(cached, len);