mirror of
ssh://git.janware.com/srv/git/janware/proj/jw-pkg
synced 2026-01-18 21:13:56 +01:00
create-mkdebian.sh: Acutally produced a .deb package, not sure if it's usable
Signed-off-by: Jan Lindemann <jan@janware.com>
This commit is contained in:
parent
872348e810
commit
674d467dd2
1 changed files with 18 additions and 4 deletions
|
|
@ -6,8 +6,10 @@ inifile=$1
|
||||||
. $dir/ini-tools.sh
|
. $dir/ini-tools.sh
|
||||||
|
|
||||||
cat << EOT
|
cat << EOT
|
||||||
mkdir -p debian
|
#format_depends()
|
||||||
cd debian
|
#{
|
||||||
|
# sed 's/ */,/g; s/,\([><=]\+\),*/\1/g; s/, *,/,/g'
|
||||||
|
#}
|
||||||
|
|
||||||
changelog()
|
changelog()
|
||||||
{
|
{
|
||||||
|
|
@ -39,9 +41,9 @@ Build-Depends: debhelper (>= 9)
|
||||||
|
|
||||||
Package: \$NAME-run
|
Package: \$NAME-run
|
||||||
Architecture: any
|
Architecture: any
|
||||||
Depends: \${shlibs:Depends}, \${misc:Depends}, \$REQUIRES_RUN, \$REQUIRES_DEVEL
|
Depends: `echo \${shlibs:Depends}, \${misc:Depends}, \$REQUIRES_RUN, \$REQUIRES_DEVEL | sed 's/ */,/g; s/,\([><=]\+\),*/\1/g; s/, *,*/,/g; s/, *$//'`
|
||||||
Description: `ini_value summary`
|
Description: `ini_value summary`
|
||||||
`ini_value description`
|
`ini_value description | sed 's/^/ /'`
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -62,8 +64,20 @@ cat << "EOF"
|
||||||
%:
|
%:
|
||||||
EOF
|
EOF
|
||||||
echo -e "\tdh \$""@"
|
echo -e "\tdh \$""@"
|
||||||
|
cat << "EOF"
|
||||||
|
|
||||||
|
override_dh_auto_clean:
|
||||||
|
|
||||||
|
override_dh_auto_test:
|
||||||
|
|
||||||
|
override_dh_auto_install:
|
||||||
|
\$(MAKE) ENV_PREFIX=\$\$(pwd)/debian/inst-root/$NAME install
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mkdir -p debian
|
||||||
|
cd debian
|
||||||
|
|
||||||
for file in changelog compat control copyright format rules; do
|
for file in changelog compat control copyright format rules; do
|
||||||
\$file > \$file
|
\$file > \$file
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue