summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e646aa369886dc6c4cd0c6c4d0358d38aea17ad5 (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
# Maintainer: John Gerritse <tyrannis dot hawk at gmail dot com>

pkgname=opensubtitlesdownload
_pkgname=OpenSubtitlesDownload
pkgver=6.3
pkgrel=1
arch=('any')
pkgdesc="An application to help you quickly find and download subtitles for your favorite videos"
url="https://emeric.io/OpenSubtitlesDownload"
license=('GPL3')
provides=('OpenSubtitlesDownload')
depends=('python' 'wget')
optdepends=(
    'zenity: Only needed for GNOME based desktop environments'
    'kdialog: Only needed for KDE based desktop environments'
)
source=("$_pkgname-$pkgver::https://github.com/emericg/$_pkgname/archive/v$pkgver.tar.gz")
md5sums=('6b74f129397ec73c8e7e5345a5a7c60e')

prepare() {
  sed 's/"%F"/%F/' -i "$_pkgname-$pkgver/desktop-files/$_pkgname-gnome.desktop"
}

package() {
  cd "$_pkgname-$pkgver"
  install -Dm755 "${_pkgname}.py" "$pkgdir/usr/bin/$_pkgname"
  mkdir -p "$pkgdir/usr/share/applications"
  install -Dm644 "desktop-files/$_pkgname-gnome.desktop" "$pkgdir/usr/share/applications/"
  install -Dm644 "desktop-files/$_pkgname-kde.desktop" "$pkgdir/usr/share/applications/"
}