initial import
This commit is contained in:
48
luakit/PKGBUILD
Normal file
48
luakit/PKGBUILD
Normal file
@@ -0,0 +1,48 @@
|
||||
# Maintainer: Jesus E. <heckyel@riseup.net>
|
||||
|
||||
pkgname=luakit
|
||||
pkgver=2.2.1
|
||||
_debver=2.2.1
|
||||
_debrel=1
|
||||
pkgrel=1
|
||||
pkgdesc="Fast, small, webkit based browser framework extensible by Lua"
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://luakit.github.io/'
|
||||
license=('GPL-3')
|
||||
depends=('lua51-filesystem' 'luajit' 'webkitgtk')
|
||||
makedepends=('quilt' 'help2man')
|
||||
backup=('etc/xdg/luakit/rc.lua'
|
||||
'etc/xdg/luakit/theme.lua')
|
||||
source=(https://deb.debian.org/debian/pool/main/l/luakit/${pkgname}_${pkgver}.orig.tar.gz
|
||||
https://deb.debian.org/debian/pool/main/l/luakit/luakit_${_debver}-${_debrel}.debian.tar.xz
|
||||
libre.patch)
|
||||
sha512sums=('9a055c1541f31027805d3da2604d98c0193a9c2874099fc3ab3ef08c645a8e91b8504d1162e86cbd29a5e5e0a3c54b3154299708f864d135d8640bcc3866674b'
|
||||
'886bd4eab3e5e841534518113824f0a18ddfcdd27f31652d1f926dd5acf864d1e28b40cc7bf219dd92a331983925b9d4ab733a1625ce5daad4d2988331526be1'
|
||||
'8c72a05473daa8a989fa2367d98112298e895f476bcf1538f97b9b9787e686bcba7b9f0e162ba400e2e10093475a09bfc869e5de52d5a0f55e290bdcb363420c')
|
||||
|
||||
prepare() {
|
||||
cd ${pkgname}-${pkgver}
|
||||
|
||||
if [[ ${pkgver%.*} = ${_debver%.*} ]]; then
|
||||
# Debian patches
|
||||
export QUILT_PATCHES=debian/patches
|
||||
export QUILT_REFRESH_ARGS='-p ab --no-timestamps --no-index'
|
||||
export QUILT_DIFF_ARGS='--no-timestamps'
|
||||
|
||||
mv "$srcdir"/debian .
|
||||
|
||||
quilt push -av
|
||||
fi
|
||||
|
||||
# additional fixes to remove unfree references and content
|
||||
patch -Np1 -i ${srcdir}/libre.patch
|
||||
}
|
||||
|
||||
build() {
|
||||
make DEVELOPMENT_PATHS=0 PREFIX=/usr USE_LUAJIT=1 -C ${pkgname}-${pkgver}
|
||||
}
|
||||
|
||||
package() {
|
||||
make DESTDIR="${pkgdir}" PREFIX=/usr -C ${pkgname}-${pkgver} install
|
||||
install -Dm644 "${srcdir}/${pkgname}-${pkgver}/COPYING.GPLv3" -t "${pkgdir}/usr/share/licenses/$pkgname"
|
||||
}
|
||||
76
luakit/libre.patch
Normal file
76
luakit/libre.patch
Normal file
@@ -0,0 +1,76 @@
|
||||
--- a/doc/luadoc/pages/02-faq.md 2020-09-19 12:55:41.000000000 +0200
|
||||
+++ b/doc/luadoc/pages/02-faq.md 2021-11-17 19:00:11.372561403 +0100
|
||||
@@ -123,15 +123,6 @@
|
||||
|
||||
Here are some examples:
|
||||
|
||||
-#### Opening `mailto:` links using GMail
|
||||
-
|
||||
- if string.match(string.lower(uri), "^mailto:") then
|
||||
- local mailto = "https://mail.google.com/mail/?extsrc=mailto&url=%s"
|
||||
- local w = window.ancestor(v)
|
||||
- w:new_tab(string.format(mailto, uri))
|
||||
- return false
|
||||
- end
|
||||
-
|
||||
#### Opening `mailto:` links using Mutt in `urxvt`
|
||||
|
||||
if string.match(string.lower(uri), "^mailto:") then
|
||||
--- a/tests/async/test_clib_sqlite3.lua 2020-09-19 12:55:41.000000000 +0200
|
||||
+++ b/tests/async/test_clib_sqlite3.lua 2021-11-17 18:56:05.511182595 +0100
|
||||
@@ -40,7 +40,7 @@
|
||||
assert.is_table(ret)
|
||||
assert.is_equal(0, #ret)
|
||||
|
||||
- ret = db:exec([[INSERT INTO test VALUES(NULL, "google.com", 1234.45)]])
|
||||
+ ret = db:exec([[INSERT INTO test VALUES(NULL, "duckduckgo.com", 1234.45)]])
|
||||
assert.is_nil(ret)
|
||||
|
||||
ret = db:exec([[SELECT * FROM test;]])
|
||||
--- a/lib/quickmarks.lua 2020-09-19 12:55:41.000000000 +0200
|
||||
+++ b/lib/quickmarks.lua 2021-11-17 18:57:29.945090314 +0100
|
||||
@@ -107,7 +107,7 @@
|
||||
-- Load quickmarks from other sessions
|
||||
if not qmarks or load_file ~= false then _M.load() end
|
||||
|
||||
- -- Parse uris: "http://forum1.com, google.com, imdb some artist"
|
||||
+ -- Parse uris: "http://forum1.com, duckduckgo.com, some artist"
|
||||
if uris and type(uris) == "string" then
|
||||
uris = lousy.util.string.split(uris, ",%s+")
|
||||
elseif uris and type(uris) ~= "table" then
|
||||
--- a/lib/markdown.lua 2020-09-19 12:55:41.000000000 +0200
|
||||
+++ b/lib/markdown.lua 2021-11-17 18:58:09.526922217 +0100
|
||||
@@ -952,7 +952,7 @@
|
||||
return text
|
||||
end
|
||||
|
||||
--- Handle auto links, i.e. <http://www.google.com/>.
|
||||
+-- Handle auto links, i.e. <http://www.duckduckgo.com/>.
|
||||
function auto_links(text)
|
||||
local function link(s)
|
||||
return add_escape("<a href=\"" .. s .. "\">") .. s .. "</a>"
|
||||
--- ./lib/window.lua 2021-11-17 19:10:58.902529996 +0100
|
||||
+++ ./lib/window.lua 2021-11-17 19:12:46.188808613 +0100
|
||||
@@ -832,11 +832,7 @@
|
||||
type = "string:",
|
||||
default = {
|
||||
duckduckgo = "https://duckduckgo.com/?q=%s",
|
||||
- github = "https://github.com/search?q=%s",
|
||||
- google = "https://google.com/search?q=%s",
|
||||
- imdb = "https://www.imdb.com/find?s=all&q=%s",
|
||||
wikipedia = "https://en.wikipedia.org/wiki/Special:Search?search=%s",
|
||||
- debbugs = "https://bugs.debian.org/%s",
|
||||
default = "https://duckduckgo.com/?q=%s",
|
||||
},
|
||||
desc = "The set of search engine shortcuts.",
|
||||
--- a/lib/referer_control_wm.lua 2020-09-19 12:55:41.000000000 +0200
|
||||
+++ b/lib/referer_control_wm.lua 2021-11-17 18:58:43.588498634 +0100
|
||||
@@ -8,7 +8,7 @@
|
||||
-- To help mitigate this concern, this module prevents this information
|
||||
-- from being sent whenever you navigate between two different domains.
|
||||
-- For example, if you navigate from `https://example.com/test/` to
|
||||
--- `https://google.com`, no Referer hreader will be sent. If you navigate
|
||||
+-- `https://duckduckgo.com`, no Referer hreader will be sent. If you navigate
|
||||
-- from `https://example.com/test/` to `https://example.com/`, however, the
|
||||
-- Referer header will be sent. This is because some websites depend on
|
||||
-- this functionality.
|
||||
Reference in New Issue
Block a user