From af51127cd15efda3dea037124e7ee9c36e0c1b70 Mon Sep 17 00:00:00 2001 From: Daniel Leidert <dleidert@debian.org> Date: Thu, 2 Apr 2020 20:22:58 +0200 Subject: [PATCH] Try to install the extension to the right place --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index 3a786e9..16137ef 100755 --- a/debian/rules +++ b/debian/rules @@ -4,5 +4,13 @@ export DH_VERBOSE = 1 export GEM2DEB_TEST_RUNNER = --check-dependencies #export DH_RUBY = --gem-install +archdir=`ruby -rrbconfig -e "puts RbConfig::CONFIG['vendorarchdir']"` + %: dh $@ --buildsystem=ruby --with ruby + +override_dh_auto_install: + (cd ext && rake) + mkdir -p debian/ruby-http-parser/"$(archdir)" + find ext/ -name 'libhttp-parser-ext.so' -exec cp "{}" debian/ruby-http-parser/"$(archdir)" ";" + dh_auto_install -O--buildsystem=ruby -- GitLab