Package Details: luaunbound 1:0.2_1-1

Git Clone URL: https://aur.archlinux.org/luaunbound.git (read-only)
Package Base: luaunbound
Description: drop-in replacement for Prosodys internal DNS library with a binding to libunbound
Upstream URL: https://www.zash.se/luaunbound.html
Licenses: custom:MIT
Submitter: fordprefect
Maintainer: fordprefect
Last Packager: fordprefect
Votes: 0
Popularity: 0.000000
First Submitted: 2016-04-23 15:06
Last Updated: 2018-09-06 15:44

Dependencies (7)

Required by (1)

Sources (2)

Latest Comments

« First ‹ Previous 1 2

jhass commented on 2016-06-20 13:42

Unsetting LDFLAGS no longer works for me. Additionally unsetting CFLAGS works, but I think the cleaner approach is to patch Makefile to use CC:

diff -r f270a1cf86ce Makefile
--- a/Makefile Sun Jan 10 19:49:52 2016 +0100
+++ b/Makefile Mon Jun 20 15:34:28 2016 +0200
@@ -33,7 +33,7 @@
xsltproc root-anchors.xsl root-anchors.xml > $@

%.so: %.o
- $(LD) $(LDFLAGS) -o $@ $^ $(LDLIBS)
+ $(CC) $(LDFLAGS) -o $@ $^ $(LDLIBS)

install:
install -d $(DESTDIR)$(LUA_LIBDIR)/


Also there's no need to manually call squish.sh, the Makefile has a target for it, so both make all and make use_unbound.lua lunbound.so and make all works.

diff --git a/PKGBUILD b/PKGBUILD
index afbf8d9..cf599d8 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,20 +10,20 @@ depends=("unbound")
makedepends=("mercurial" "unbound" "lua")
optdepends=("luajit: jit for lua")
install=luaunbound.install
-source=("${pkgname}::hg+https://code.zash.se/luaunbound")
-sha512sums=('SKIP')
+source=("${pkgname}::hg+https://code.zash.se/luaunbound" "use_cc.patch")
+sha512sums=('SKIP'
+ '6b11dfe9f5de743f101463fb3fb2144fe3aff75e7e19036f67d0e0b8adc8c36db73cf73d0aba483d651f8f5b2773093adc27e788354b165314c777e8de45bf28')

prepare() {
cd "$srcdir/$pkgname"
# fixed commit
hg checkout f270a1cf86ce
+ patch -p1 < "$srcdir/use_cc.patch"
}

build() {
cd "$srcdir/$pkgname"
- ./squish.sh > use_unbound.lua
- unset LDFLAGS
- make lunbound.so
+ make all
}

package() {