[DIST/Debian] Create a symbolic link to libnnstreamer
authorWook Song <wook16.song@samsung.com>
Mon, 18 Feb 2019 23:45:53 +0000 (08:45 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 19 Feb 2019 00:37:35 +0000 (09:37 +0900)
This patch creates a symbolic link to libnnstreamer using dh_link.

Signed-off-by: Wook Song <wook16.song@samsung.com>
debian/rules

index c9fdee1..53bd8ce 100755 (executable)
@@ -45,10 +45,12 @@ override_dh_auto_test:
        cd build && ./tests/unittest_plugins --gst-plugin-path=. && cd ..
        cd tests && ssat -n && cd ..
 
+override_dh_link:
+       dh_link /usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-1.0/libnnstreamer.so  /usr/lib/$(DEB_HOST_MULTIARCH)/libnnstreamer.so
+
 override_dh_auto_install:
        DESTDIR=$(CURDIR)/debian/tmp ninja -C build install
 
 override_dh_install:
        dh_install --sourcedir=debian/tmp --list-missing
-       ln -s /usr/lib/$(DEB_HOST_MULTIARCH)/gstreamer-1.0/libnnstreamer.so $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
 # Add --fail-missing option after adding *.install files for all subpackages.