blob: bbbffeacfbb12b3381c75a79c94109185a14408a (
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
46
|
# Maintainer: Rolv Apneseth <rolv.apneseth@gmail.com>
pkgname=rofi-nerdy
pkgver=v0.0.5.r0.g1d51784
pkgrel=1
pkgdesc='Nerd font icon selector plugin for rofi'
arch=('x86_64')
url='https://github.com/rolv-apneseth/rofi-nerdy'
license=('AGPL v3.0')
depends=('rofi')
makedepends=('rust' 'git' 'just')
optdepends=(
'wl-clipboard: Wayland - copy icon to clipboard'
'xclip: X11 - copy icon to clipboard'
'wtype: Wayland - insert icon'
'xdotool: X11 - insert icon'
)
source=("$pkgname::git+https://github.com/rolv-apneseth/$pkgname.git")
md5sums=('SKIP')
pkgver()
{
cd "$pkgname" || exit
git describe --long --tags --abbrev=7 | sed 's/^foo-//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare()
{
cd "$pkgname" || exit
cargo fetch --target "$CARCH-unknown-linux-gnu"
}
build()
{
cd "$pkgname" || exit
PKGDIR="$pkgdir" just build
}
package()
{
cd "$pkgname" || exit
PKGDIR="$pkgdir" just install
}
|