-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcreate-deb-packages.sh
executable file
·33 lines (22 loc) · 1.21 KB
/
create-deb-packages.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
## Copyright (c) 2024 mangalbhaskar. All Rights Reserved.
##__author__ = 'mangalbhaskar'
###----------------------------------------------------------
## create .deb package
###----------------------------------------------------------
function _create-deb-package() {
local LSCRIPTS=$( cd "$( dirname "${BASH_SOURCE[0]}")" && pwd )
source ${LSCRIPTS}/lscripts/lscripts.config.sh
## https://blog.packagecloud.io/eng/2016/12/15/howto-build-debian-package-containing-simple-shell-scripts/
## --indep flag will tell dh_make that we intend to create a binary that can be shared across all cpu architectures.
## --createorig flag will take the current directory (./greetings-0.1) and create an original source archive necessary for building the package. The source archive will be placed in the parent directory (../greetings_0.1.orig.tar.gz).
# sudo apt -y install dh-make devscripts
local DEBEMAIL="[email protected]"
local DEBFULLNAME="skillplot"
# export ${DEBEMAIL} ${DEBFULLNAME}
local package_name=$(basename ${LSCRIPTS})
lsd-mod.log.info "package_name: ${package_name}"
dh_make --indep --createorig --packagename ${package_name}
# dh_make --indep --createorig
}
_create-deb-package