Generate pkgconfig file from d/rules, upstream doesn't do it

pull/986/head
Luca Boccassi 2020-06-06 14:32:03 +01:00
rodzic f509507971
commit 0052b907a9
2 zmienionych plików z 15 dodań i 0 usunięć

5
debian/rules vendored
Wyświetl plik

@ -16,3 +16,8 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
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

10
debian/stlink.pc.in vendored 100644
Wyświetl plik

@ -0,0 +1,10 @@
prefix=/usr
includedir=${prefix}/include/stlink
libdir=${prefix}/lib/@DEB_HOST_MULTIARCH@
Name: stlink
Description: Open source version of the STMicroelectronics Stlink Tools
Version: @VERSION@
Requires: libusb-1.0
Libs: -L${libdir} -lstlink
Cflags: -I${includedir}