summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: d1860cac3da9dd556473fd3ff07258843dc5d985 (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: Your Name <johnjahi55@gmail.com>
_pkgname=nchat
pkgname=${_pkgname}-git
pkgver=2.04.r0.g60760e1
pkgrel=1
pkgdesc="nchat is a console-based chat client for Linux and macOS with support for Telegram."
arch=('any')
url="https://github.com/d99kris/nchat"
license=('MIT')
depends=('ncurses' 'ccache' 'cmake' 'gperf' 'help2man' 'readline' 'openssl' 'zlib'  'sqlite' 'go' 'file')

makedepends=('git')
provides=('nchat-git')
conflicts=('nchat-git' 'nchat')
source=("git+$url")
md5sums=('SKIP')

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

prepare() {
    cd "${srcdir}/${_pkgname}"
    sed -i 's|ncursesw/ncurses.h|ncurses.h|' src/ui*
}

build() {
    cd "${srcdir}/${_pkgname}"
    bash ./make.sh build

}
package() {
    cd "${srcdir}/${_pkgname}"
    install -D -m644 LICENSE "${pkgdir}/usr/share/licenses/${_pkgname}/LICENSE"
    cd build
    make DESTDIR="${pkgdir}" install
}