Date: Saturday, April 17, 2021 @ 18:08:29 Author: bgyorgy Revision: 919806
upgpkg: vocal 2.4.2-4: Add symlink for the binary, fix metainfo file Modified: vocal/trunk/PKGBUILD ----------+ PKGBUILD | 42 +++++++++++++++++++++++++----------------- 1 file changed, 25 insertions(+), 17 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2021-04-17 17:49:23 UTC (rev 919805) +++ PKGBUILD 2021-04-17 18:08:29 UTC (rev 919806) @@ -3,31 +3,39 @@ # Contributor: Nathan Dyer <https://github.com/nathandyer> pkgname=vocal +_id=com.github.needleandthread.vocal pkgver=2.4.2 -pkgrel=3 -pkgdesc='Powerful, beautiful and simple podcast client for the modern free desktop' -arch=(x86_64) +pkgrel=4 +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 vala webkit2gtk) -source=("$pkgname-$pkgver.tar.gz::https://github.com/needle-and-thread/$pkgname/archive/$pkgver.tar.gz" - "remove-about.patch") -sha512sums=('2f5b09c1ca1c3a513c161d1973033d6ce3e2c6805f4390d2bc70764e95a5b1a1ed9e681d602d2a5be44cb145cbdb6885a7c8aff0a2005a24792171a200ae52de' - 'f21019b38e91d56bab885b9975cb63dfc773a01463fa4d526264e4411670b4201b294f40c6211341febc9a28a3178b6547b231c6ddfa48589da1056c99718c3c') +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') +sha256sums=('be1991f08db05feacad30a0f459002327ba5ff3cb04757383f1da62904acdb41' + '805613a82898c36ddd18a93aa034e87d771dade1382275537ba7b4c57c28dc6a') prepare() { - cd "${pkgname}-${pkgver}" - patch -Np1 < "$srcdir/remove-about.patch" + cd $pkgname-$pkgver + + # Fix build with granite 6 + patch -Np1 -i ../remove-about.patch + + # Remove unused webkit2gtk dependency + sed -i 's/webkit2gtk-4.0//' CMakeLists.txt + + # Fix metainfo file + sed -i "/<id>/a <launchable type=\"desktop-id\">$_id.desktop</launchable>" data/$_id.appdata.xml } build() { - cd $pkgname-$pkgver - cmake . -DCMAKE_INSTALL_PREFIX=/usr - make + cmake -S $pkgname-$pkgver -B build -G Ninja -DCMAKE_INSTALL_PREFIX='/usr' + cmake --build build } package() { - cd $pkgname-$pkgver - make DESTDIR="$pkgdir" install + DESTDIR="$pkgdir" cmake --install build + ln -s $_id "$pkgdir/usr/bin/$pkgname" }