Stop installing library to /lib
Late mounting of /usr is no longer supported, so this is not necessary
anymore.
Michael Biebl
6 years ago
4 | 4 | |
5 | 5 | export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed |
6 | 6 | |
7 | override_dh_link: | |
8 | dh_link -plibatasmart-dev lib/$(DEB_HOST_MULTIARCH)/$$(basename $$(readlink debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/libatasmart.so)) usr/lib/$(DEB_HOST_MULTIARCH)/libatasmart.so | |
9 | dh_link --remaining-packages | |
10 | ||
11 | 7 | override_dh_install: |
12 | 8 | dh_install |
13 | ||
14 | # library should go into /lib for usage in udisks etc. | |
15 | set -e; cd debian/libatasmart?; mv usr/lib .; rmdir usr | |
16 | ||
17 | 9 | # when building for Ubuntu, install Apport hook |
18 | 10 | if dpkg-vendor --is ubuntu; then \ |
19 | 11 | install -m 644 -D debian/local/apport-hook.py debian/libatasmart4/usr/share/apport/package-hooks/libatasmart4.py; \ |