big feat & update commit, read description...

feat: regenerate packages & release (update option), letter based folder structure support, choose gpg key, config file, multiple architecture done
update: docs, comments in code, add, del, list, sign
i dont know honestly... docs will be updated later
This commit is contained in:
2023-05-03 17:07:33 +02:00
parent 5af9d45d43
commit ce0b37cabe
7 changed files with 160 additions and 28 deletions

35
build.sh Executable file
View File

@@ -0,0 +1,35 @@
#!/bin/sh
PACKAGE="debrepo"
VERSION="1.0.0"
MAINTAINER="Filip Rojek <filip@filiprojek.cz>"
DEPENDS=""
ARCHITECTURE=""
HOMEPAGE="https://git.filiprojek.cz/fr/debrepo"
DESCRIPTION=""
BASEF=$PACKAGE"_"$VERSION"_"$ACHITECTURE
# create folder structure
mkdir -p "./build/$BASEF/DEBIAN/" "./build/$BASEF/usr/bin/"
# create control file
echo "\
Package: $PACKAGE
Version: $VERSION
Maintainer: $MAINTAINER
Depends: $DEPENDS
Architecture: $ARCHITECTURE
Homepage: $HOMEPAGE
Description: $DESCRIPTION
" > "./build/$BASEF/DEBIAN/control"
# copy bin file
cp ./hello-program/hello-world "./build/$BASEF/usr/bin/"
# build deb file
dpkg --build "./build/$BASEF/"
# print info about deb file
dpkg-deb --info "./build/$BASEF.deb" && echo "Package build was successful"