summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorGustavo Alvarez2016-04-29 23:17:44 +0200
committerGustavo Alvarez2016-04-29 23:17:44 +0200
commit74d0875c6b00d37f75b0d5667d308417e60e2a85 (patch)
tree7a61ea4c2b942f9a1ea959c41d4636df6576f002 /PKGBUILD
downloadaur-74d0875c6b00d37f75b0d5667d308417e60e2a85.tar.gz
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD51
1 files changed, 51 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..ac9374f4026
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,51 @@
+# Maintainer: Gustavo Alvarez <sl1pkn07@gmail.com>
+
+pkgname=qtesseract5
+pkgver=1.1
+pkgrel=1
+pkgdesc="Convert the SUB/IDX subtiltes to SRT file"
+arch=('any')
+url='http://forum.ubuntu-fr.org/viewtopic.php?id=1508741'
+license=('GPL3')
+depends=('python-pyqt5'
+ 'hicolor-icon-theme'
+ 'tesseract'
+ 'ogmrip'
+ )
+makedepends=('qt5-tools'
+ 'imagemagick'
+ )
+source=("https://launchpad.net/~hizo/+archive/ubuntu/mkv-extractor-gui/+files/qtesseract5_${pkgver}.orig.tar.gz")
+sha1sums=('2b40aa4ac56b7dc8d853c0617ed203d0d2395743')
+
+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
+
+ export IFS=$'\n'
+ for i in $(find . -name '*.png' -type f); do
+ mogrify "${i}" &> /dev/null
+ done
+ export IFS=' '
+}
+
+build() {
+ cd qtesseract5
+ make
+}
+
+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 ui_Qtesseract5.py "${pkgdir}/usr/share/qtesseract5/ui_Qtesseract5.py"
+ install -Dm644 Qtesseract5_fr_FR.qm "${pkgdir}/usr/share/qtesseract5/Qtesseract5_fr_FR.qm"
+
+ (cd icons; for i in $(find . -name *.png -type f); do install -Dm644 "${i}" "${pkgdir}/usr/share/icons/hicolor/${i}"; done)
+}