blob: a85d27b26876e7c96550bb4275c9d8aa06c877eb (
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
|
# Maintainer: Luis Martinez <luis dot martinez at disroot dot org>
pkgname=neovim-catppuccin-git
_pkg="${pkgname%-git}"
pkgver=1.1.1.r0.g73587f9
pkgrel=1
pkgdesc="Soothing pastel theme for Neovim"
arch=('any')
url="https://github.com/catppuccin/nvim"
license=('MIT')
groups=('neovim-plugins')
depends=('neovim')
makedepends=('git')
provides=("$_pkg")
conflicts=("$_pkg")
install=catppuccin.install
source=("$_pkg::git+$url")
sha256sums=('SKIP')
pkgver() {
cd "$_pkg"
( set -o pipefail
git describe --long --tags 2>/dev/null | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)" )
}
package() {
cd "$_pkg"
local dirs=(after autoload colors doc lua)
find "${dirs[@]}" -type f -exec install -Dvm644 '{}' "$pkgdir/usr/share/nvim/runtime/{}" \;
install -Dvm644 LICENSE.md "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
install -Dvm644 README.md -t "$pkgdir/usr/share/doc/$pkgname/"
}
|