stlink/debian/rules

24 wiersze
806 B
Plaintext

#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#DH_VERBOSE = 1
# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
# see FEATURE AREAS in dpkg-buildflags(1)
Debian packaging, CMake and README.md fixes (#683) * Use https for debian/copyright * Update dates and fix stanzas in debian/copyright No need to have 2 stanzas for the same license * Add BSD-3-clause body in debian/copyright * Remove generated boilerplate from debian/rules * Enable compiler hardening flags in debian/rules * Fix source package name according to repo and docs * Set source package section to electronics See https://packages.debian.org/unstable/electronics/ for a full list * Add long descriptions to packages * Add gbp.conf file * Update changelog for 1.5.0 release * Remove dirs files, not needed anymore * Rename library package to match SONAME As per Debian policy, shared library packages must be named after their SONAME version. * libstlink0: break+replace libstlink since it took over its files * Remove triggers, not needed anymore debhelper tools will generate the triggers file automatically since the package name was corrected * List GPL2+ in debian/copyright for flashloaders * Do not append -shared to shared library on *NIX Only on Windows it's necessary to have different file names, on *NIX the extension is what disambiguates between a static library (.a) and a shared library (.so). * Clarify license of flashloaders in README.md Fixes #682 * List all individual authors in debian/copyright The Debian FTP masters nowadays require that all authors are listed in debian/copyright. Print the list of authors from git. * Move modprobe and udev files from shared library package to tools package Multiple versions of a shared library might be installed on the same system. Do not ship unversioned files in their packages, or they will conflict and fail to install. * stlink-tools: break+replace libstlink It took ownership of udev and modprobe files from libstlink * Fix pkgconfig include dir: remove project version The headers are installed in /usr/include/stlink without a version number. * Add libstlink1 symbols file Generated with: dpkg-gensymbols -P/tmp -v1.5.0 -V -e/tmp/libstlink.so.1.5.0 -plibstlink1 -Odebian/libstlink1.symbols * Bump Standards-Version to 4.1.3 Main changes are shared library rename and files moved, and HTTPS URLs. https://www.debian.org/doc/packaging-manuals/upgrading-checklist.txt * Add debian/watch file for notifications The Debian package tracker can automatically notify when a new version is out.
2018-03-16 15:41:07 +00:00
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
%:
dh $@ --buildsystem cmake
override_dh_auto_configure:
dh_auto_configure -- \
-DSTLINK_UDEV_RULES_DIR='/lib/udev/rules.d'
override_dh_auto_install:
dh_auto_install
mkdir -p $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig
sed -e "s/@VERSION@/$(DEB_VERSION_UPSTREAM)/" -e "s/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/" $(CURDIR)/debian/stlink.pc.in > $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/pkgconfig/stlink.pc