Skip to content

Commit

Permalink
Experiment #1
Browse files Browse the repository at this point in the history
  • Loading branch information
bdbcat committed Dec 2, 2022
1 parent 53779ca commit c5724db
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions debian/rules
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk
DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([0-9]:)*([^-]+).*,\2,p')

echo $(DEB_UPSTREAM_VERSION)

%:
dh $@
Expand Down Expand Up @@ -30,9 +32,17 @@ else ifeq ($(DEB_BUILD_ARCH_CPU), arm64)
-DCMAKE_BUILD_TYPE=Release \
-DOCPN_BUILD_TEST=OFF
else
ifeq ($(DEB_UPSTREAM_VERSION), 12)
dh_auto_configure -- \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DOCPN_BUILD_TEST=OFF \
-DOCPN_TARGET_TUPLE="ubuntu-x86_64-wx32;22.04;x86_64"
else
dh_auto_configure -- \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=Release \
-DOCPN_BUILD_TEST=OFF


endif

0 comments on commit c5724db

Please sign in to comment.