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:
35
build.sh
Executable file
35
build.sh
Executable 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"
|
||||
|
||||
Reference in New Issue
Block a user