Skip to content

Open-RFlab/octave-openems-hll

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Package Debian

OpenEMS High-level layer

Debian packaging

Here are the instructions to build and install a debian package from upstream sources :

sudo apt install dpkg-dev

git clone https://github.com/Open-RFlab/octave-openems-hll
git clone https://github.com/Open-RFlab/octave-openems-hll -b debian debian --depth 1

cd octave-openems-hll
sed -i DESCRIPTION -e "s/Version: .*$/Version: $(git describe --tags)/g"

[ $(git describe --tags) = $(git describe --tags --abbrev=0) ] \
	&& CMD='echo HEAD' \
	|| CMD='git stash create'
git archive \
	--format=tar.gz \
	-o ../octave-openems-hll_$(git describe --tags).orig.tar.gz \
	--prefix=octave-openems-hll-$(git describe --tags)/ \
	$(${CMD})

mv ../debian/debian .
[ $(git describe --tags) != $(git describe --tags --abbrev=0) ] \
&& sed -i debian/changelog -e "1i \
octave-openems-hll ($(git describe --tags)-1) unstable; urgency=medium\n\n\
  * Package from upstream sources\n\n\
 -- Thomas Lepoix <thomas.lepoix@protonmail.ch>  $(date -R)\n\
"

dpkg-buildpackage -b -us -uc

sudo apt install ../octave-openems-hll_*.deb

About

openEMS High-level layer

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

No packages published