summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 328afd002b28c9a5f3f0339f22b04d4008f9b41a (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
# Contributor: Gennadiy Chernyshyk <genaloner@gmail.com>
pkgname=deadbeef-plugin-headerbar-gtk3-git
pkgver=1.3.r1.g63ed1ad
pkgrel=1
pkgdesc="Headerbar Plugin for the DeaDBeeF audio player (development version)"
url="https://github.com/saivert/ddb_misc_headerbar_GTK3"
arch=(i686 x86_64 armv7h aarch64)
license=(GPL-2.0-only)
depends=(deadbeef gtk3 glib2 glibc)
makedepends=(git meson)
conflicts=(deadbeef-plugin-headerbar-gtk3)
provides=(deadbeef-plugin-headerbar-gtk3)

_gitname=ddb_misc_headerbar_GTK3
_gitroot=https://github.com/saivert/$_gitname

source=("git+$_gitroot")
md5sums=(SKIP)

pkgver() {
  git -C "$_gitname" describe --long --abbrev=7 --tags \
    | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  arch-meson $_gitname build
  meson compile -C build
}

package() {
  install -Dvm755 build/ddb_misc_headerbar_GTK3.so $pkgdir/usr/lib/deadbeef/ddb_misc_headerbar_GTK3.so
}