Skip to content

Example repository for building Raspbian .deb packages

License

Notifications You must be signed in to change notification settings

IoT-Watchdog/Example-Deb-pkg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Example-Deb-pkg

Example repository for building Raspbian .deb packages

based on https://blog.packagecloud.io/debian/debuild/packaging/2015/06/08/buildling-deb-packages-with-debuild/

pbuilderrc must bei copied to /root/:

root@host % cp pbuilderrc /root/.pbuilderrc

Needed tools:

aptitude install devscripts build-essential lintian pbuilder qemu-user-static qemu-system-arm debhelper

Create init cfg:

export DEBFULLNAME="Max Muster"
export DEBEMAIL="max.muster@mailbox.org"
dch --create --newversion 0.0.1 --package hellodebian

Generate src pkg

as user:

debuild -i -us -uc -S

Generate deb pkg

for every target arch:

OS=raspbian DIST=buster ARCH=armhf pbuilder --create
OS=debian DIST=buster ARCH=amd64 pbuilder --create

release new version

update pbuilder env (daily)

OS=raspbian DIST=buster ARCH=armhf pbuilder update
OS=debian DIST=buster ARCH=amd64 pbuilder update

building

  • editeditedit
  • user@host: dch -i # increment
  • user@host: debuild -i -us -uc -S
  • root@host: cd ..; OS=raspbian DIST=buster ARCH=armhf pbuilder build $(ls -1 *dsc --sort=time|head -1)

About

Example repository for building Raspbian .deb packages

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages