summaryrefslogtreecommitdiff
path: root/pcr/utox-git/PKGBUILD
blob: 30ad2b38f422ba293b2e2ea99ab4894c07d163cf (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
# Maintainer (Arch): Madotsuki <madotsuki@cock.li>
# Contributor (Arch): Håvard Pettersson <mail@haavard.me> (Previous maintainer while I was lollygagging.)

_pkgname=utox
pkgname="${_pkgname}-git"
pkgver=r1158.g8ed4616
pkgrel=1

pkgdesc='Lightweight Tox client'
arch=('i686' 'x86_64')
url='https://github.com/notsecure/uTox'
license=('GPL3')

depends=('tox-git' 'libxrender' 'openal' 'v4l-utils' 'libdbus' 'libxext'
         'fontconfig' 'desktop-file-utils' 'hicolor-icon-theme' 'filter_audio-git')
makedepends=('git')
optdepends=('gtk2: GTK file picker')

provides=("${_pkgname}")
conflicts=("${_pkgname}")

source=("${pkgname}::git+https://github.com/notsecure/uTox")
md5sums=('SKIP')

install="${pkgname}.install"

pkgver()
{
  cd "${srcdir}/${pkgname}"
  printf "r$(git rev-list --count HEAD).g$(git rev-parse --short HEAD)"
}

build()
{
  cd "${srcdir}/${pkgname}"
  make
}

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