summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: f572d6c0d99de657a7cef7efe40cc4747db132d0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Maintainer: Nocifer <apmichalopoulos at gmail dot com>
# Contributor: eduardosm

pkgname=subtitleedit
pkgver=4.0.6
pkgrel=1
pkgdesc='An advanced subtitle editor and converter'
arch=('any')
url='https://www.nikse.dk/SubtitleEdit'
license=('GPL-3.0-only')
depends=('mono')
optdepends=('vlc: Video support'
            'mpv: Video support'
            'tesseract: OCR support'
            'ffmpeg: Waveform extraction')
makedepends=('unzip')
source=("https://github.com/SubtitleEdit/subtitleedit/releases/download/$pkgver/SE${pkgver//./}.zip"
        'subtitleedit'
        'subtitleedit.desktop'
        'subtitleedit.png')
sha256sums=('8ec80b977fd051074f97ff52f38ddecc60b31afecac338c59f3fd62ddd079968'
            '51ae2411ed70a40607a78dd863db98bf5692bfaff7f8c230ddf82f0dc78d1cc3'
            '54ffb47864611c6aebb29ecfabd49089cfe6decc320e3f25043c39ec7f27a5fb'
            '700d09858ac76341054d7edc79952fbfca70df674d2b567e3713579e5963f631')
noextract=("SE${pkgver//./}.zip")

package() {
    install -dm755 "$pkgdir"/opt/subtitleedit
    unzip "$srcdir"/SE${pkgver//./}.zip -d "$pkgdir"/opt/subtitleedit

    rm -r "$pkgdir"/opt/subtitleedit/Tesseract302
    rm "$pkgdir"/opt/subtitleedit/Hunspell{x86,x64}.dll
    touch "$pkgdir"/opt/subtitleedit/.PACKAGE-MANAGER

    install -Dm755 "$srcdir"/subtitleedit "$pkgdir"/usr/bin/subtitleedit
    install -Dm644 "$srcdir"/subtitleedit.desktop "$pkgdir"/usr/share/applications/subtitleedit.desktop
    install -Dm644 "$srcdir"/subtitleedit.png "$pkgdir"/usr/share/pixmaps/subtitleedit.png
}