summaryrefslogtreecommitdiff
path: root/PKGBUILD
blob: 3b4a35c1efa474d218be636a5d21491a6c4e3548 (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
# Maintainer: Aleksey Steapanov <blueingreen@bluig.xyz>

_pkgname=fzf-vjour
pkgname="${_pkgname}-git"
pkgver=r45.e6abc10
pkgrel=1
pkgdesc='A fzf-based journaling and notes application with CalDav support.'
arch=('any')
url="https://github.com/baumea/fzf-vjour"
license=('MIT')
depends=('fzf' 'awk' 'vdirsyncer' 'bash')
makedepends=('git')
optdepends=('bat: for colorful previews' 'noto-fonts-emoji: for display emoji in fzf')
source=("${_pkgname}::git+https://github.com/baumea/fzf-vjour")
sha256sums=('SKIP')

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

build() {
	cd "${_pkgname}"
	bash -O xpg_echo ./scripts/build.sh
}

package() {
	cd "${_pkgname}"

	install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$_pkgname/LICENSE"
	install -Dm755 "$_pkgname" "$pkgdir/usr/bin/$_pkgname"
}