summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8a6ee6fe7a10c5fe82f9cfc8b0e658d1ce45691 (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
# Maintainer: Mazhar Hussain <realmazharhussain@gmail.com>
reponame=gst-plugins-rs
pkgname=gst-plugin-gtk4-git
pkgver=r2347.e5360ff4
pkgrel=1
pkgdesc="Multimedia graph framework - GTK4 plugin"
arch=(any)
url="https://gitlab.freedesktop.org/gstreamer/gst-plugins-rs"
license=(MPL2)
provides=(gst-plugin-gtk4)
conflicts=(gst-plugin-gtk4)
depends=(gstreamer gtk4)
makedepends=(git rust cargo-c)
source=("${reponame}"::"git+${url}.git")
sha256sums=('SKIP')

pkgver() {
  cd "$srcdir/$reponame"/video/gtk4
  echo r$(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd "$srcdir/$reponame"/video/gtk4
  cargo cinstall -p gst-plugin-gtk4 --all-features --prefix=/usr --destdir="$pkgdir"
}