summaryrefslogtreecommitdiff
path: root/pcr/utox-git/PKGBUILD
blob: f7f3f20e6657ab0efaffb691a30fadee741f0ed1 (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
54
55
56
# Maintainer: freaj <freaj@riseup.net>
# Maintainer (Arch): Håvard Pettersson <mail@haavard.me>
# Contributor (Arch): Madotsuki <madotsuki at cock dot li>

_pkgname=utox
pkgname=utox-git
pkgver=r1796.5a5132f
pkgrel=1

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

depends=(
  'desktop-file-utils'
  'fontconfig'
  'libfilteraudio-git'
  'hicolor-icon-theme'
  'libdbus'
  'libxext'
  'libxrender'
  'openal'
  'tox-git'
  'v4l-utils'
)
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%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

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

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