blob: 87c0dddab828bc3cf17bb907a892c6850f621d0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
#!/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
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_fixperms:
chmod -x debian/*/usr/share/nodejs/undici/lib/llhttp/llhttp-wasm
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
|