Commit 3ef5d745 authored by Rafael Laboissiere's avatar Rafael Laboissiere

Use dh-octave for building the package

parent c74aac76
......@@ -3,7 +3,7 @@ Section: math
Priority: optional
Maintainer: Debian Octave Group <team+pkg-octave-team@tracker.debian.org>
Uploaders: Rafael Laboissiere <rafael@debian.org>
Build-Depends: debhelper (>= 11), octave-pkg-dev (>= 2),
Build-Depends: debhelper (>= 11), dh-octave,
librsb-dev, autoconf
Standards-Version: 4.1.3
Homepage: http://octave.sourceforge.net/sparsersb/
......
#!/usr/bin/make -f
# -*- makefile -*-
include /usr/share/octave-pkg-dev/octave-pkg.mk
%:
dh $@ --buildsystem=octave --with=octave
DEB_COMPRESS_EXCLUDE = .m
pre-build:
override_dh_auto_configure:
( cd src ; autoconf )
### Move Octave scripts into the examples directory
......@@ -13,7 +14,8 @@ SHAREDIR = debian/octave-sparsersb/usr/share
EXAMPLESDIR = $(SHAREDIR)/doc/octave-sparsersb/examples
OCTDIR = $(SHAREDIR)/octave/packages/sparsersb-*
BINDIR = $(OCTDIR)/bin
install/octave-sparsersb:
override_dh_auto_install:
dh_auto_install
mkdir -p $(EXAMPLESDIR)
mv $(OCTDIR)/sparsersb*.m $(BINDIR)/*.m $(BINDIR)/pd.mtx $(EXAMPLESDIR)
chmod -x $(EXAMPLESDIR)/*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment