mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2024-12-25 04:11:38 +00:00
Merge pull request #728 from fandango-/arch
[FEATURE] Arch Linux installation script (create .pkg.tar.xz archive or install directly)
This commit is contained in:
commit
4438e6c780
5
.gitignore
vendored
5
.gitignore
vendored
@ -91,4 +91,7 @@ src/utf8proc/.dirstamp
|
|||||||
src/zlib/.deps/
|
src/zlib/.deps/
|
||||||
src/zlib/.dirstamp
|
src/zlib/.dirstamp
|
||||||
src/zvbi/.deps/
|
src/zvbi/.deps/
|
||||||
src/zvbi/.dirstamp
|
src/zvbi/.dirstamp
|
||||||
|
|
||||||
|
# Arch
|
||||||
|
package_creators/*.pkg.tar.xz
|
||||||
|
10
README.md
10
README.md
@ -89,6 +89,16 @@ More usage information can be found on our website:
|
|||||||
# test your build
|
# test your build
|
||||||
./ccextractor
|
./ccextractor
|
||||||
|
|
||||||
|
### Arch Linux
|
||||||
|
# make sure you have CCExtractor repository forked
|
||||||
|
# clone repository
|
||||||
|
sudo pacman -S git
|
||||||
|
git clone https://github.com/%USERNAME%/ccextractor.git # paste your github username
|
||||||
|
|
||||||
|
# building installation package (.pkg.tar.xz) or installing directly
|
||||||
|
cd ccextractor/package_creators
|
||||||
|
./arch.sh
|
||||||
|
|
||||||
### Windows
|
### Windows
|
||||||
|
|
||||||
Open the windows/ccextractor.sln file with Visual Studio (2015 at least), and build it. Configurations "(Debug|Release)-Full" includes dependent libraries which are used for OCR.
|
Open the windows/ccextractor.sln file with Visual Studio (2015 at least), and build it. Configurations "(Debug|Release)-Full" includes dependent libraries which are used for OCR.
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
-----------------
|
-----------------
|
||||||
- Fix: Prevent the OCR being initialized more than once (happened on multiprogram and
|
- Fix: Prevent the OCR being initialized more than once (happened on multiprogram and
|
||||||
PAT changes)
|
PAT changes)
|
||||||
|
- New: Added build/installation script for .pkg.tar.xz (Arch Linux).
|
||||||
|
|
||||||
|
|
||||||
0.85b (2017-1-26)
|
0.85b (2017-1-26)
|
||||||
|
22
package_creators/PKGBUILD
Normal file
22
package_creators/PKGBUILD
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
pkgname=ccextractor
|
||||||
|
pkgver=0.85
|
||||||
|
pkgrel=1
|
||||||
|
pkgdesc="A closed captions and teletext subtitles extractor for video streams."
|
||||||
|
arch=('i686' 'x86_64')
|
||||||
|
url="http://www.ccextractor.org"
|
||||||
|
license=('GPL')
|
||||||
|
depends=('gcc-libs' 'tesseract')
|
||||||
|
source=(
|
||||||
|
$pkgname-$pkgver.tar.gz
|
||||||
|
)
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
CC=gcc ./configure --enable-ocr --prefix="$pkgdir/usr/local"
|
||||||
|
make -j4
|
||||||
|
}
|
||||||
|
|
||||||
|
package() {
|
||||||
|
cd "$srcdir/$pkgname-$pkgver"
|
||||||
|
make install
|
||||||
|
}
|
30
package_creators/arch.sh
Executable file
30
package_creators/arch.sh
Executable file
@ -0,0 +1,30 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
./tarball.sh
|
||||||
|
retval=$?
|
||||||
|
if [ $retval -ne 0 ]; then
|
||||||
|
echo "Sorry, the package could not be created as the tarball building process failed with return code $retval"
|
||||||
|
rm -f ./*.tar.gz
|
||||||
|
exit $retval
|
||||||
|
fi
|
||||||
|
makepkg -g >> PKGBUILD
|
||||||
|
makepkg -sc
|
||||||
|
retval=$?
|
||||||
|
if [ $retval -ne 0 ]; then
|
||||||
|
echo "Sorry, the package could not be created as makepkg failed with return code $retval"
|
||||||
|
rm -rf ./*.tar.gz src
|
||||||
|
sed -i '$ d' PKGBUILD
|
||||||
|
exit $retval
|
||||||
|
fi
|
||||||
|
rm -f ./*.tar.gz
|
||||||
|
sed -i '$ d' PKGBUILD
|
||||||
|
read -p "Do you wish to install ccextractor? [y/N] " yn
|
||||||
|
case $yn in
|
||||||
|
[Yy]* ) if [ -x "$(command -v sudo)" ]; then
|
||||||
|
sudo pacman -U ./*.pkg.tar.xz;
|
||||||
|
else
|
||||||
|
su -c "pacman -U ./*.pkg.tar.xz";
|
||||||
|
fi
|
||||||
|
rm -f ./*.pkg.tar.xz;;
|
||||||
|
* ) exit;;
|
||||||
|
esac
|
@ -27,4 +27,4 @@ rm -rf config.log
|
|||||||
rm -rf aclocal.m4
|
rm -rf aclocal.m4
|
||||||
rm -rf build-conf
|
rm -rf build-conf
|
||||||
rm -rf autom4te.cache
|
rm -rf autom4te.cache
|
||||||
cd package_creators
|
cd package_creators
|
||||||
|
Loading…
Reference in New Issue
Block a user