mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-23 11:27:38 +00:00
Added build script for .deb (#574)
* Added build script for .deb * Added tip for users and automatically build
This commit is contained in:
parent
9f2cd33a82
commit
e2f6fce850
1
linux/description-pak
Normal file
1
linux/description-pak
Normal file
@ -0,0 +1 @@
|
||||
Best open source tool for a subtitled world
|
38
package_creators/debian.sh
Normal file
38
package_creators/debian.sh
Normal file
@ -0,0 +1,38 @@
|
||||
#!/bin/bash
|
||||
TYPE="debian" # can be one of 'slackware', 'debian', 'rpm'
|
||||
PROGRAM_NAME="ccextractor"
|
||||
VERSION="0.84"
|
||||
RELEASE="1"
|
||||
LICENSE="GPL-2.0"
|
||||
MAINTAINER="carlos@ccextractor.org"
|
||||
REQUIRES="gcc,libcurl4-gnutls-dev,tesseract-ocr,tesseract-ocr-dev,libleptonica-dev"
|
||||
|
||||
out=$((LC_ALL=C dpkg -s checkinstall) 2>&1)
|
||||
|
||||
if [[ $out == *"is not installed"* ]]
|
||||
then
|
||||
read -r -p "You have not installed the package 'checkinstall'. Would you like to install it? [Y/N] " response
|
||||
if [[ $response =~ ^([yY][eE][sS]|[yY])$ ]]
|
||||
then
|
||||
apt-get install -y checkinstall
|
||||
else
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
mkdir -p ../linux/objs
|
||||
|
||||
(cd ../linux; checkinstall \
|
||||
-y \
|
||||
--pkgrelease=$RELEASE \
|
||||
--pkggroup="CCExtractor" \
|
||||
--backup=no \
|
||||
--install=no \
|
||||
--type $TYPE \
|
||||
--pkgname=$PROGRAM_NAME \
|
||||
--pkgversion=$VERSION \
|
||||
--pkglicense=$LICENSE \
|
||||
--pakdir="../package_creators/build" \
|
||||
--maintainer=$MAINTAINER \
|
||||
--nodoc \
|
||||
--requires=$REQUIRES)
|
Loading…
Reference in New Issue
Block a user