Skip to content
Snippets Groups Projects
Unverified Commit 72f4e2a0 authored by Andrei Rozanski's avatar Andrei Rozanski
Browse files

fixed d/.install to fit multi architectures and rules to rename amplsolver properly

parent d53a0b21
No related branches found
No related tags found
No related merge requests found
#! /usr/bin/dh-exec #! /usr/bin/dh-exec
sys.x86_64.Linux/*.a usr/lib/${DEB_HOST_MULTIARCH}/ sys.*/*.a usr/lib/${DEB_HOST_MULTIARCH}/
sys.x86_64.Linux/*.h usr/include/ampl-netlib-solvers/ sys.*/*.h usr/include/ampl-netlib-solvers/
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
# DH_VERBOSE := 1 # DH_VERBOSE := 1
export LC_ALL=C.UTF-8 export LC_ALL=C.UTF-8
AMPL_FILE:=$(shell find ./ -name amplsolver.a)
REN_AMPL_FILE:=$(addsuffix libamplsolver.a,$(dir $(AMPL_FILE)))
include /usr/share/dpkg/default.mk include /usr/share/dpkg/default.mk
# this provides: # this provides:
# DEB_SOURCE: the source package name # DEB_SOURCE: the source package name
...@@ -27,8 +30,8 @@ include /usr/share/dpkg/default.mk ...@@ -27,8 +30,8 @@ include /usr/share/dpkg/default.mk
#endif #endif
override_dh_install: override_dh_install:
mv $(AMPL_FILE) $(REN_AMPL_FILE)
dh_install dh_install
mv usr/lib/${DEB_HOST_MULTIARCH}/amplsolver.a usr/lib/${DEB_HOST_MULTIARCH}/libamplsolver.a
get-orig-source: get-orig-source:
. debian/get-orig-source . debian/get-orig-source
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment