Commit 209a806b authored by sebt3's avatar sebt3

added debian package

parent 25cb00fb
......@@ -19,25 +19,25 @@ ENDCFG
}
getRepoInfo() {
awk '$1=="dbp"{x=$2;gsub(".*//","",x);gsub("/","-",x);$1="";print x$0}' "$DBP_HOME/source.list"
gawk '$1=="dbp"{x=$2;gsub(".*//","",x);gsub("/","-",x);$1="";print x$0}' "$DBP_HOME/source.list"
}
getTarget() {
awk -F= '$1=="target"{print $2}' "$DBP_HOME/config"
gawk -F= '$1=="target"{print $2}' "$DBP_HOME/config"
}
getPackagePath() {
awk -F= -v pck=$1 'BEGIN{p=0}$0=="["pck"]"{p=1}/^$/{p=0}p==1&&/Download=/{print $2;exit}' "$DBP_HOME/repos/$2/$3/Packages"
gawk -F= -v pck=$1 'BEGIN{p=0}$0=="["pck"]"{p=1}/^$/{p=0}p==1&&/Download=/{print $2;exit}' "$DBP_HOME/repos/$2/$3/Packages"
}
getPackageMD5() {
awk -F= -v pck=$1 'BEGIN{p=0}$0=="["pck"]"{p=1}/^$/{p=0}p==1&&/MD5sum=/{print $2;exit}' "$DBP_HOME/repos/$2/$3/Packages"
gawk -F= -v pck=$1 'BEGIN{p=0}$0=="["pck"]"{p=1}/^$/{p=0}p==1&&/MD5sum=/{print $2;exit}' "$DBP_HOME/repos/$2/$3/Packages"
}
getPackageName() {
awk -F= -v pck=$1 'BEGIN{p=0}$0=="["pck"]"{p=1}/^$/{p=0}p==1&&/Name=/{print $2;exit}' "$DBP_HOME/repos/$2/$3/Packages"
gawk -F= -v pck=$1 'BEGIN{p=0}$0=="["pck"]"{p=1}/^$/{p=0}p==1&&/Name=/{print $2;exit}' "$DBP_HOME/repos/$2/$3/Packages"
}
getPackageNames() {
awk -F= 'BEGIN{p=""}/^\[/{p=$1;gsub("^.","",p);gsub(".$","",p)}/^Name=/{print p"\t"$2}' "$DBP_HOME/repos/$1/$2/Packages"
gawk -F= 'BEGIN{p=""}/^\[/{p=$1;gsub("^.","",p);gsub(".$","",p)}/^Name=/{print p"\t"$2}' "$DBP_HOME/repos/$1/$2/Packages"
}
getPackageMD5s() {
awk -F= 'BEGIN{p=""}/^\[/{p=$1;gsub("^.","",p);gsub(".$","",p)}/^MD5sum=/{print p"\t"$2}' "$DBP_HOME/repos/$1/$2/Packages"
gawk -F= 'BEGIN{p=""}/^\[/{p=$1;gsub("^.","",p);gsub(".$","",p)}/^MD5sum=/{print p"\t"$2}' "$DBP_HOME/repos/$1/$2/Packages"
}
getFileMD5() {
md5sum <"$1"|awk '{print $1}'
......
The Debian Package dbp-getsh
----------------------------
Comments regarding the Package
-- Sébastien Huss <sebastien.huss@gmail.com> Tue, 19 Sep 2017 20:52:06 +0200
dbp-getsh (0.1.0) unstable; urgency=medium
* Initial Release.
-- Sébastien Huss <sebastien.huss@gmail.com> Tue, 19 Sep 2017 20:52:06 +0200
Source: dbp-getsh
Section: misc
Priority: optional
Maintainer: Sébastien Huss <sebastien.huss@gmail.com>
Build-Depends: debhelper (>= 9)
Standards-Version: 3.9.8
Homepage: https://dev.pyra-handheld.com/sebt3/dbp_getsh
#Vcs-Git: https://anonscm.debian.org/collab-maint/dbp-getsh.git
#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/dbp-getsh.git
Package: dbp-getsh
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, gawk
Description: A script to grab DBP file from the dragonBox Pyra repo
A script to grab DBP file from the dragonBox Pyra repo.
Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: dbp-getsh
Source: <https://dev.pyra-handheld.com/sebt3/dbp_getsh>
Files: *
Copyright: 2017 Sébastien Huss <sebastien.huss@gmail.com>
License: GPL-3.0+
Files: debian/*
Copyright: 2017 Sébastien Huss <sebastien.huss@gmail.com>
License: GPL-3.0+
License: GPL-3.0+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in "/usr/share/common-licenses/GPL-3".
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.
# Please avoid picking licenses with terms that are more restrictive than the
# packaged work, as it may make Debian's contributions unacceptable upstream.
dbp-get.sh /usr/bin
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment