summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 55ce1efd716854c0cf21b1334659313e63e4708b (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
# Maintainer: Daniel Souza <aur at posix dot dev dot br>

_pkgname="yarr"
_outdir="_output/linux"
pkgname=yarr-git
pkgver=v2.3.r27.g91da774
pkgrel=4
pkgdesc="yet another rss reader."
arch=("any")
url="https://github.com/nkanaev/yarr"
license=("MIT")
source=("git+https://github.com/nkanaev/yarr")
depends=()
makedepends=("go" "make" "git")
sha1sums=("SKIP")

pkgver() {
  cd "$srcdir/$_pkgname"
  ( set -o pipefail
    git describe --long --tags 2>/dev/null | sed 's/\([^-]*-g\)/r\1/;s/-/./g' ||
    printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
  )
}

build(){
  cd "$_pkgname"
  make build_linux
}

package() {
  cd "$_pkgname"
  install -Dm755 "${_outdir}/yarr" "$pkgdir/usr/bin/yarr"
  install -Dm0644 license "$pkgdir/usr/share/licenses/${_pkgname}/LICENSE"
}