summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5a5c30a3de4aa5ad6caaa5c8f5f135cfc273f803 (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
42
# Maintainer: Balló György <ballogyor+arch at gmail dot com>
# Contributor: Marcin Tydelski <marcin.tydelski@gmail.com>
# Contributor: Nathan Dyer <https://github.com/nathandyer>

pkgname=vocal
pkgver=2.4.2
pkgrel=5
pkgdesc='Powerful, beautiful and simple podcast client for Pantheon'
arch=('x86_64')
url='https://vocalproject.net/'
license=('GPL3')
depends=('clutter-gst' 'clutter-gtk' 'granite' 'gst-plugins-good' 'gst-libav' 'gvfs' 'libnotify')
makedepends=('cmake' 'ninja' 'vala')
source=("https://github.com/needle-and-thread/$pkgname/archive/$pkgver/$pkgname-$pkgver.tar.gz"
        'remove-about.patch'
         https://github.com/VocalPodcastProject/vocal/commit/6859a6c9.patch)
sha256sums=('be1991f08db05feacad30a0f459002327ba5ff3cb04757383f1da62904acdb41'
            '805613a82898c36ddd18a93aa034e87d771dade1382275537ba7b4c57c28dc6a'
            'cb6033bf7e7b3aed7a1b8ec92d4c688bc2a89f6bd3f13634958dd5d4dac5ca1e')

prepare() {
  cd $pkgname-$pkgver

  # Fix build with granite 6
  patch -Np1 -i ../remove-about.patch

  # Fix build with vala 0.56
  patch -p1 -i ../6859a6c9.patch

  # Remove unused webkit2gtk dependency
  sed -i 's/webkit2gtk-4.0//' CMakeLists.txt
}

build() {
  cmake -S $pkgname-$pkgver -B build -G Ninja -DCMAKE_INSTALL_PREFIX='/usr'
  cmake --build build
}

package() {
  DESTDIR="$pkgdir" cmake --install build
  ln -s com.github.needleandthread.vocal "$pkgdir/usr/bin/$pkgname"
}