Joel's Blog


Home | Pages | Archives


Bootstrapping Debian package

January 27, 2021 11:22 pm

Debian packages depend on a “Debian” directory. While you could create this by hand, there is a faster way: you can use dh_make. Here is what I used to get started:

create_debian_directory()
{
pushd $1
dh_make -y -s -e ${MAINTAINER_EMAIL} -f ../package-0.0.21.orig.tar.gz

cat > debian/rules <<EOF
#!/usr/bin/make -f
%:
dh \$@

override_dh_auto_configure:
./configure

override_dh_usrlocal:
echo “Skipping dh_usrlocal”

override_dh_shlibdeps:
echo “Skipping dh_shlibdeps”

EOF

sed -e “s/^Build-Depends: /Build-Depends: ${BUILD_DEPENDS}, /” -i debian/control
popd

Things to what’d out for :

Posted by joelgranados

Categories: Uncategorized

Tags: , , , ,

Leave a Reply



Mobile Site | Full Site


Get a free blog at WordPress.com Theme: WordPress Mobile Edition by Alex King.