summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 5cf44f86ae7a097637be4e1bd7b6a44294f80821 (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
49
50
51
52
53
# Maintainer: Luca Béla Palkovics <luca.bela.palkovics@gmail.com>

pkgrel=1
pkgver=alpha.r301.g3ae68fb
pkgname=('gtox-git')
pkgdesc="a GTK-based tox-client"
url="https://github.com/KoKuToru/gTox.git"
license=('GPL3')
arch=('i686' 'x86_64')
depends=('gtkmm3' 'gettext' 'desktop-file-utils' 'gtk-update-icon-cache' 'gstreamermm' 'flatbuffers' 'toxcore' 'util-linux')
makedepends=('git' 'cmake' 'librsvg')
source=("${pkgname%-git}::git+https://github.com/KoKuToru/gTox.git#branch=AUR"
        "audio-git::git+https://github.com/Tox/Sounds.git#commit=1a21216e29b5c85fb1dc2c9672f9c16a09a9a0e2")
conflicts=('gtox')
install="gTox.install"

pkgver()
{
     cd ${pkgname%-git}
     ( set -o pipefail
       git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
       printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
     )
}


build()
{
    cd ${pkgname%-git}
    cd src
    mkdir build
    cd build
    cmake -DCMAKE_INSTALL_PREFIX:PATH=${pkgdir}/usr ..
    make
}

package()
{
    cd ${pkgname%-git}
    cd src
    cd build
    make install
}

prepare()
{
    cd ${pkgname%-git}
    git submodule init
    git config submodule."src/audio".url $srcdir/audio-git
    git submodule update
}
md5sums=('SKIP'
         'SKIP')