summaryrefslogtreecommitdiff
path: root/pcr/toxic-git/PKGBUILD
blob: 80ecb0e95e3ab2996525a064cb1e466af2d25581 (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
# Maintainer (Arch): Håvard Pettersson <mail@haavard.me>
# Contributor (Arch): Florian Hahn <flo at fhahn dot com>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

_pkgname=toxic
pkgname=toxic-git
pkgdesc='CLI Frontend in ncurses for Tox'
license=('GPL3')
pkgver=0.6.1.r3.ga920f3e
pkgrel=1
depends=('desktop-file-utils'
         'freealut'
         'libnotify'
         'toxcore')
makedepends=('git')
conflicts=($_pkgname)
provides=($_pkgname)
arch=('i686' 'x86_64' 'armv7h')
url=('http://tox.chat')
source=("${pkgname}::git+https://github.com/Tox/toxic.git")
sha512sums=('SKIP')

install="${pkgname}.install"

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

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

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