summaryrefslogtreecommitdiff
path: root/pcr/toxic-git/PKGBUILD
blob: a9ba0e46e177a4101d02988dc713a160780afc00 (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
# Maintainer: freaj <freaj@riseup.net>
# Maintainer (Arch): Florian Hahn <flo@fhahn.com>

pkgname=toxic-git
pkgdesc='CLI client for tox, a Skype replacement that respects your privacy'
license=('GPL3')
pkgver=0.5.2.r141.g6774289
pkgrel=1
depends=('tox-git' 'libconfig' 'freealut' 'libvpx' 'opus' 'libnotify')
makedepends=('git')
conflicts=('toxic')
provides=('toxic')
arch=('i686' 'x86_64')
url=('http://tox.im')
source=('git+https://github.com/Tox/toxic.git')
md5sums=('SKIP')

_gitname=toxic

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

build() {
    cd "${srcdir}/${_gitname}/build"
    make PREFIX=/usr
}

package() {
    cd "${srcdir}/${_gitname}/build"
    make PREFIX=/usr DESTDIR="${pkgdir}" install
}