summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGustavo Alvarez2016-09-30 01:16:08 +0200
committerGustavo Alvarez2016-09-30 01:16:48 +0200
commite7aa07c61eb02c64bf2f33bef0e79fc1317747a4 (patch)
treea38adb3510779023c60e7cc8f8fe626f536f0872 /PKGBUILD
parent74a2e7cd7d7a3daeb747770f89207df24bdb2970 (diff)
downloadaur-e7aa07c61eb02c64bf2f33bef0e79fc1317747a4.tar.gz
Update to 2.0
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD24
1 files changed, 15 insertions, 9 deletions
diff --git a/PKGBUILD b/PKGBUILD
index ed85eb6a9c7..804d78db339 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,8 @@
# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
pkgname=qtesseract5
-pkgver=1.2
-pkgrel=2
+pkgver=2.0
+pkgrel=1
pkgdesc="Convert the SUB/IDX subtiltes to SRT file"
arch=('any')
url='https://forum.ubuntu-fr.org/viewtopic.php?pid=21507283'
@@ -10,16 +10,20 @@ license=('GPL3')
depends=('python-pyqt5'
'hicolor-icon-theme'
'tesseract'
- 'ogmrip'
+ 'xdg-utils'
)
makedepends=('qt5-tools'
'imagemagick'
)
-source=("https://launchpad.net/~hizo/+archive/ubuntu/mkv-extractor-gui/+files/qtesseract5_${pkgver}.orig.tar.gz")
-sha1sums=('49d352c12ab9b1739dfa627999f8339bca327f5e')
+optdepends=('ogmrip')
+source=("https://launchpad.net/~hizo/+archive/ubuntu/mkv-extractor-gui/+files/qtesseract5_${pkgver}.orig.tar.gz"
+ 'qtesseract5.svgz'
+ )
+sha256sums=('fa9ec51e50c8c50367b305178e04fbb27dd2cac8abb8665a2666cfe7bc3b0fea'
+ '968b76c98b03234eaa306e2fa689ed7f1a81b02edf4c5717de196c16f449c596'
+ )
prepare() {
- cd qtesseract5
sed -e 's|/usr/lib/x86_64-linux-gnu/qt5/bin/lrelease|/usr/bin/lrelease-qt5|g' \
-e 's|/usr/lib/i386-linux-gnu/qt5/bin/lrelease|/usr/bin/lrelease-qt5|g' \
-i build.sh
@@ -32,7 +36,6 @@ prepare() {
}
build() {
- cd qtesseract5
make
}
@@ -40,12 +43,15 @@ package() {
install -d "${pkgdir}/usr/bin"
ln -s /usr/share/qtesseract5/Qtesseract5.py "${pkgdir}/usr/bin/qtesseract5"
- cd qtesseract5
install -Dm755 Qtesseract5.py "${pkgdir}/usr/share/qtesseract5/Qtesseract5.py"
install -Dm644 Qtesseract5Ressources_rc.py "${pkgdir}/usr/share/qtesseract5/Qtesseract5Ressources_rc.py"
+ install -Dm644 langcodes.py "${pkgdir}/usr/share/qtesseract5/langcodes.py"
+ install -Dm644 Qtesseract5_en_EN.qm "${pkgdir}/usr/share/qtesseract5/Qtesseract5_en_EN.qm"
install -Dm644 Qtesseract5_fr_FR.qm "${pkgdir}/usr/share/qtesseract5/Qtesseract5_fr_FR.qm"
+ install -Dm644 WhatsUp/WhatsUp.py "${pkgdir}/usr/share/qtesseract5/WhatsUp/WhatsUp.py"
install -Dm644 man/qtesseract5.1 "${pkgdir}/usr/share/man/man1/qtesseract5.1"
+ install -Dm644 qtesseract5.desktop "${pkgdir}/usr/share/applications/qtesseract5.desktop"
- install -Dm644 icons/scalable/apps/qtesseract5.svgz "${pkgdir}/usr/share/icons/hicolor/scalable/apps/qtesseract5.svgz"
+ install -Dm644 "${srcdir}/qtesseract5.svgz" "${pkgdir}/usr/share/icons/hicolor/scalable/apps/qtesseract5.svgz"
}