package-rebuilds/pkgs/node-undici/node-undici-5.28.4+dfsg1+~cs23.12.11/debian/rules
Fabian Grünbichler afee63929c add node-undici for libgit2 1.8.1
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2024-09-10 11:23:24 +02:00

49 lines
1.4 KiB
Makefile
Executable File

#!/usr/bin/make -f
# -*- makefile -*-
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
include /usr/share/dpkg/pkg-info.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
export CC=clang-16
export CLANG=clang-16
LLHTTPVERSION = $(shell pkgjs-pjson llhttp version)
LLHTTPMAJORVERSION = $(shell pkgjs-pjson llhttp version|perl -pe 's/\..*//')
export SONAME = libllhttp.so.$(LLHTTPVERSION)
export SONAMEALIAS = libllhttp.so.$(LLHTTPMAJORVERSION)
LIBLLHTTPVERSION = $(LLHTTPVERSION)~$(DEB_VERSION)
zz:
echo $(LLHTTPMAJORVERSION)
%:
dh $@
override_dh_auto_test:
# autopkgtest only
execute_after_dh_auto_install:
cd llhttp && $(MAKE) install DESTDIR=../debian/tmp PREFIX=/usr LIBDIR=/usr/lib/$(DEB_HOST_MULTIARCH)
dh_auto_install --buildsystem=cmake -Dllhttp/release
execute_after_dh_install:
rm -f debian/node-undici/usr/share/nodejs/undici/lib/fetch/LICENSE
execute_after_dh_clean:
rm -rf obj-*
override_dh_makeshlibs:
dh_makeshlibs -a -- -plibllhttp9.1
override_dh_gencontrol:
dh_gencontrol -pnode-undici -- -v$(DEB_VERSION)
dh_gencontrol -plibllhttp-dev -- -v$(LLHTTPVERSION)~$(DEB_VERSION) \
-Vlibllhttp:Version=$(LIBLLHTTPVERSION) \
-DHomepage=https://github.com/nodejs/llhttp
dh_gencontrol -pnode-llhttp -- -v$(LLHTTPVERSION)~$(DEB_VERSION) \
-DHomepage=https://github.com/nodejs/llhttp
dh_gencontrol -plibllhttp9.1 -- -v$(LLHTTPVERSION)~$(DEB_VERSION) \
-DHomepage=https://github.com/nodejs/llhttp