summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: da1c20ec99bbf6b44a3c3c1fd1872e72ba010745 (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
43
44
45
46
47
48
# Maintainer: Naglis Jonaitis <naglis at mailbox dot org>
_pkgname="balss"
pkgname="${_pkgname}-git"
pkgver=0.1.0.r52.ec1213a
pkgrel=1
pkgdesc="Balss is an easy to use player for audiobook files with chapters such as m4b or mka"
arch=('x86_64')
url='https://github.com/nvlgit/Balss'
license=('GPL3')
depends=(
  'gtk3'
  'mpv'
)
makedepends=(
  'git'
  'meson'
  'vala'
)
_pkgsrc="${_pkgname}"
source=(
    "${_pkgsrc}"::"git+${url}.git"
    "data_meson_build.patch"
)
sha512sums=(
  'SKIP'
  'c2c540d4d9e5985f31ceb2f953f2e644b75a531f5ff8409011fd6db32150295b78d025ca07f3741ca30b82756a781986d8093e5e8f0ca5c971f8eeca1c81d213'
)

pkgver() {
  cd "${_pkgsrc}"

  printf "0.1.0.r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short=7 HEAD)"
}

prepare() {
    patch --directory="${_pkgsrc}" --forward --strip=1 --input="${srcdir}/data_meson_build.patch"
}

build() {
  cd "${_pkgsrc}"

  arch-meson . builddir
  meson compile -C builddir
}

package() {
  meson install -C "${_pkgsrc}/builddir" --destdir "${pkgdir}"
}