Skip to content

Latest commit

 

History

History
55 lines (39 loc) · 1.13 KB

README.md

File metadata and controls

55 lines (39 loc) · 1.13 KB

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="[email protected]"
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)