summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: aaed8d8cce669a25672a9459f88baf96f2a0b81c (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
# Maintainer: Jan Keith Darunday <jkcdarunday@gmail.com>

pkgname=ahoviewer-git
_pkgname=ahoviewer
pkgver=1.6.5.237.g42e16f9
pkgrel=1
pkgdesc='A GTK2 image viewer, manga reader, and booru browser.'
arch=('i686' 'x86_64')
url='http://github.com/ahodesuka/ahoviewer'
license=('MIT')
depends=('gtkmm3>=3.22.0' 'libconfig>=1.4' 'libunrar' 'libzip')
optdepends=('gstreamer' 'gst-plugins-base' 'gst-plugins-bad' 'gst-plugins-good' 'gst-libav' 'libpeas>=1.22.0' 'libsecret')
makedepends=('meson' 'git')
provides=('ahoviewer')
source=('git+https://github.com/ahodesuka/ahoviewer')
md5sums=('SKIP')

prepare() {
    cd $srcdir/ahoviewer
    sh version.sh
}

pkgver() {
  cd $_pkgname
  git describe | sed 's/-/./g'
}

build() {
  arch-meson --auto-features=auto $_pkgname build
  meson compile -C build
}


check() {
  meson test -C build
}

package() {
  DESTDIR="$pkgdir" meson install -C build
  install -Dm644 $srcdir/ahoviewer/LICENSE $pkgdir/usr/share/licenses/$pkgname/LICENSE
}

# vim: ft=sh syn=sh et