summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6fdf70f511f8d0a64ec2d9bcf7bccf4182d44e39 (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
# Maintainer: brainblasted <brainblasted at disroot dot org>
pkgname=gnome-podcasts-git
pkgver=r1267.9d64d3e
pkgrel=1
_gitname=podcasts
pkgdesc="A Podcast Client for the GNOME Desktop written in Rust (Git version)"
arch=('x86_64')
license=('GPL3')
provides=('gnome-podcasts')
conflicts=('gnome-podcasts' 'hammond')
replaces=('hammond' 'hammond-git')
url="https://gitlab.gnome.org/World/${_gitname}"
depends=('glib2' 'openssl' 'sqlite' 'gtk3')
makedepends=('gtk3' 'rust' 'pkg-config' 'git' 'meson' 'git')
source=("git+https://gitlab.gnome.org/World/${_gitname}.git")
sha256sums=('SKIP')

pkgver() {
    cd "${srcdir}"/"${_gitname}"
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
    cd "${srcdir}"/"${_gitname}"
    arch-meson . _build
    ninja -C _build
}

package() {
    cd "${srcdir}"/"${_gitname}"
    DESTDIR="$pkgdir" ninja -C _build install
}