summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: cdb3272da40d0eb9b440b42dd9e7c201c1244def (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
# Maintainer: physkets <physkets // at // tutanota dot com>
# Contributor: Johnathan Jenkins <twodopeshaggy@gmail.com>
# Contributor: HÃ¥vard Pettersson <mail@haavard.me>

_pkgname=tox-weechat
pkgname="${_pkgname}-git"
pkgver=r348.424eacc
pkgrel=1

pkgdesc='Tox protocol plugin for WeeChat'
arch=('i686' 'x86_64')
url="https://github.com/haavard/${_pkgname}"
license=('GPL3')
depends=('toxcore' 'weechat')
makedepends=('git' 'cmake')
provides=("${_pkgname}")
conflicts=("${_pkgname}")
source=("${pkgname}::git+https://github.com/haavard/${_pkgname}.git")
sha256sums=('SKIP')

pkgver() {
  cd "${pkgname}"
  printf 'r%s.%s' "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
}

build() {
  cd "${pkgname}"
  mkdir build && cd build
  cmake -DCMAKE_INSTALL_PREFIX=/usr ..
  make
}

package() {
  cd "${pkgname}/build"
  make DESTDIR="${pkgdir}/" install
}