summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 32220b9145588a76e017c9fbd119b4241ae85033 (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: Ben Iofel <iofelben@gmail.com>
# Contributor: Patrick Griffis <tingping@tingping.se>

_gitname='vaccine'
pkgname=vaccine-git
pkgver=v0.0.1.r14.g1302293
pkgrel=1
pkgdesc="A GTK+3 4chan client for the linux desktop"
arch=('i686' 'x86_64')
url="https://github.com/VaccineApp/vaccine"
license=('GPL3')
depends=('gtk3' 'gtksourceview3' 'libsoup' 'json-glib' 'libgee' 'gst-plugins-bad')
makedepends=('git' 'meson' 'vala' 'appstream-glib')
install='vaccine.install'
provides=('vaccine')
conflicts=('vaccine')
source=('git://github.com/VaccineApp/vaccine.git'
        'git://github.com/VaccineApp/bayes-glib.git')
md5sums=('SKIP' 'SKIP')

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

prepare() {
    cd "$_gitname"
    git submodule init
    git config submodule.bayes-glib.url $srcdir/bayes-glib
    git submodule update
}

build() {
    cd "$_gitname"
    mkdir build
    meson --prefix=/usr build
    ninja -C build
}

package() {
    cd "$_gitname"
    DESTDIR="$pkgdir" ninja -C build install
}