summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 3699f81ef8da342450985e22cbc3fa3e1c7ba8e6 (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: Edwin van Leeuwen <edwinvanl@tuta.io>
pkgname=rttt-git
_pkgname='rttt'
pkgrel=1
pkgver=v1.1.0.r0.6d0d40c
pkgdesc="Read-the-things-tui (rttt) lets you read RSS/Atom, hackernews and Reddit from the terminal."
arch=("x86_64")
url="https://gitlab.com/BlackEdder/rttt"
license=('GPL3')
depends=('pugixml' 'curl' 'cpr' 'nlohmann-json' 'fmt' 'cppzmq' 'ftxui-git')
makedepends=('git' 'cmake')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
install=
source=(
    "git+https://gitlab.com/BlackEdder/rttt#branch=${BRANCH:-master}"
)
sha512sums=('SKIP')

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

prepare() {
	cd "$srcdir/${_pkgname}"
        cmake -DCMAKE_INSTALL_PREFIX=/usr .
}

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

check() {
	cd "$srcdir/${_pkgname}"
}

package() {
        mkdir -p "$pkgdir"/usr/bin/
	cd "$srcdir/${_pkgname}"
        cp bin/rttt "$pkgdir"/usr/bin/
        cp bin/rttt-send "$pkgdir"/usr/bin/
}