Debian packaging for libtorrent RC_2_0

It is installed in /opt/libtorrent-rasterbar2/
This commit is contained in:
sledgehammer999
2021-06-20 13:45:31 +03:00
parent 66b4148eee
commit 4cdfa2fdc6
13 changed files with 569 additions and 0 deletions

36
libtorrent2-debian/rules Normal file
View File

@@ -0,0 +1,36 @@
#!/usr/bin/make -f
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
ifneq (,$(filter $(DEB_HOST_ARCH), armel mipsel m68k powerpc riscv64 sh4))
export DEB_LDFLAGS_MAINT_APPEND += -Wl,--no-as-needed -latomic -Wl,--as-needed
endif
CMAKE_ARGS = -DCMAKE_INSTALL_PREFIX=/opt/libtorrent-rasterbar2/ -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_STANDARD=17 -Ddeprecated-functions=off
%:
dh $@ --buildsystem=cmake
override_dh_auto_configure:
dh_auto_configure -- $(CMAKE_ARGS)
#override_dh_auto_build:
# dh_auto_build --builddirectory build
#
#override_dh_auto_install:
# dh_auto_install --builddirectory build
#
#override_dh_auto_clean:
# rm -rf build
#
override_dh_compress:
dh_compress -Xcpp
override_dh_strip:
dh_strip --dbg-package=libtorrent-rasterbar2-dbg
override_dh_makeshlibs:
dh_makeshlibs -V