summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 95fc212e5c5ae63e29d008f8157f50e434e58754 (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.233.gce4f2ab
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')
optdepends=('gstreamer' 'gst-plugins-base' 'gst-plugins-bad' 'gst-plugins-good' 'gst-libav' 'libpeas>=1.22.0' 'libsecret' 'libunrar' 'libzip' )
makedepends=('meson')
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