BiteDasher / pkgmany

Creates a .deb package based on the source code or just download it from the URL

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

pkgmany / debmany

Creates a .deb package based on the source code or just downloads it from the URL

-- "I want to offer <name here> program for packaging"

To do this, go to "Issues" tab and create an issue with the title starting with "[Package offer]"

-- "Where can I find example of a DEBBUILD?"

file example.debbuild
You will need to rename it to DEBBUILD

-- "Where can I find a detailed DEBBUILD writing guide?"

See the Wiki page

How to install and use this?

./install.sh || ./install.sh /usr/bin
debmany --help

How to remove this?

./install.sh remove || ./install.sh remove /usr/bin

When building the package for the second time, errors occur. I need to download the source again. What to do?

if debmany, use debmany -rs
if pkgmany, use rm .sources_exists in current directory with DEBBUILD

Dependencies:

coreutils
sed
bash
gdebi
sudo
git
apt
curl "or" wget

Target distros:

Linux Mint 20
Ubuntu 20.04

-- "I want to become an contributor"

Message me on Telegram (@heveat) and tell WHY you want to become an contributor

Attention

This script is in early alpha. There may be some bugs. Also, if this project grows large, I will completely rewrite the code and invite other developers. But you can already help by messaging me in Telegram. And yes, this script is not of the best quality, but I'm trying to make things easier with my knowledge. Thank you.

Variables:

maintainer -- package maintainer
author -- author of package
year -- copyright year
url -- package official website
debpri -- Priority
debsec -- Section
debrec -- Reccomend
debsug -- Suggests
debcon -- Conflicts
debbrk -- Breaks
debprv -- Provides
debrep -- Replaces
debpkg -- An indicator that to build the package it is enough to download the .deb from the official site
srcdir -- Directory with downloaded source
pkgdir -- Directory with future DEBIAN directory and binaries

Arrays:

makedepends=('one' 'two' 'three') -- dependencies for building package
sha256sums=('754545...') -- sha256sum for checking hash of downloaded file
sources=('wget:ascii.tgz:https://source.com/tar.tgz') -- URL links to sources files/directories
manydeps=('wifiman') -- dependencies from pkgmany-storage repository

Exit codes:

1 - Script executed as root but shouldn't and vise versa
2 - Unknown argument
3 - Database cloned but not updated / database not cloned
4 - Something went wrong
5 - Package not installed
6 - Package not found
7 - Nothing to check for updates
8 - Interrupt signal recieved
9 - debmany already running

About

Creates a .deb package based on the source code or just download it from the URL

License:MIT License


Languages

Language:Shell 100.0%