summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: a11de7ffca4d38fd0113de4752a0b3e9a6b1c166 (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
39
40
41
# Maintainer: fossdd <fossdd@pwned.life>
pkgname=gpodder-adaptive-git
_pkgname=gpodder
pkgver=3.10.19+1.r0.g87a607f6
pkgrel=1
pkgdesc='Podcast client written in Python using GTK'
arch=('any')
url='https://gpodder.github.io/'
provides=('gpodder')
conflicts=('gpodder' 'gpodder-git')
license=('GPL3')
depends=('gtk3' 'python-cairo' 'dbus-python' 'python-gobject' 'python-mygpoclient'
         'python-podcastparser' 'python-requests' 'libhandy')
makedepends=('intltool' 'git')
optdepends=('libnotify: Gtk+ Desktop Notifications extension'
            'python-mutagen: Tag downloaded files, Remove cover art from OGG files extensions'
            'webkit2gtk: HTML show notes'
            'youtube-dl: Youtube-dl extension')
source=("git+https://github.com/gpodder/gpodder#branch=adaptive")
sha256sums=('SKIP')

pkgver() {
    cd "${_pkgname}"
    git describe --long --tags | sed -r 's/([^-]*-g)/r\1/;s/-/./g' | sed -r 's/adaptive\///g'
}

prepare() {
  cd $_pkgname
  # Use gio open directly instead of xdg-open
  sed -i "s/\['xdg-open', filename\]/['gio', 'open', filename]/" src/gpodder/util.py
}

build() {
  cd $_pkgname
  make messages
}

package() {
  cd $_pkgname
  make DESTDIR="$pkgdir" install
}