summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 81ae1fb5489e6c4e2612d33a140c7b6814125767 (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
# Maintainer: Fuwn <contact@fuwn.me>

pkgname='nectar'
pkgver=0.1.2
pkgrel=1
pkgdesc='Command-line Honeyfeed Reader'
arch=('any')
url='https://github.com/Fuwn/nectar'
license=('GPL-3.0-only')
depends=('gum' 'curl' 'pup' 'pandoc' 'glow')
makedepends=('ruby' 'rubygems' 'git')
source=("git+https://github.com/Fuwn/nectar.git#tag=v${pkgver}")
sha256sums=('SKIP')

prepare() {
	gem install --user-install bashly
}

pkgver() {
	cd "${srcdir}/${pkgname}"

	git describe --tags "$(git rev-list --tags --max-count=1)" | sed 's/v//'
}

build() {
	cd "${srcdir}/${pkgname}"

	bashly generate
}

package() {
	cd "${srcdir}/${pkgname}"

	mkdir -p "${pkgdir}/usr/bin"

	install -m755 nectar "${pkgdir}/usr/bin/${pkgname}"
}