summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 1a79299bb78f1f2000759c5fe547240bd91db23b (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: Dimitris Kiziridis <ragouel at outlook dot com>

pkgname=cozy-audiobooks-git
_gitname=cozy
pkgdesc='A modern audio book player for Linux and macOS using GTK+ 3'
pkgver=0.6.18.r31.g1e02567
pkgrel=1
url='https://cozy.geigi.de'
arch=('i686' 'x86_64')
license=('GPL3')
provides=('cozy-audiobooks')
conflicts=('cozy-audiobooks')
depends=('appstream-glib'
         'desktop-file-utils'
         'gst-python'
         'gstreamer'
         'gtk3'
         'python-dbus'
         'python-distro'
         'python-requests'
         'python-pytz'
         'python-gobject'
         'python-mutagen'
         'python-cairo'
         'python-peewee'
         'gst-plugins-good'
         'python-apsw')
makedepends=('meson' 'ninja' 'git')
source=("cozy-audiobooks::git+https://github.com/geigi/cozy")
sha256sums=('SKIP')

pkgver() {
  cd "${srcdir}/cozy-audiobooks"
  git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
  cd "${srcdir}/cozy-audiobooks"
  meson --prefix='/usr' build
  ninja -C build
  ninja -C build com.github.geigi.cozy-update-po
  ninja -C build extra-update-po
}

package() {
  cd "${srcdir}/cozy-audiobooks"
  DESTDIR="${pkgdir}" ninja -C build install
}