-
Notifications
You must be signed in to change notification settings - Fork 2
/
pkger.yml
53 lines (51 loc) · 2.01 KB
/
pkger.yml
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
47
48
49
50
51
52
53
---
metadata:
name: wutag
arch: x86_64
version: 0.5.0
description: Manage files by tags
license: MIT
source: https://github.com/vv9k/$RECIPE/archive/refs/tags/$RECIPE_VERSION.tar.gz
build_depends:
all:
- curl
- gcc
- pkg-config
- python3
deb:
postinst_script: |
systemctl daemon-reload
rpm:
post_script: |
systemctl daemon-reload
configure:
steps:
- cmd: curl -o /tmp/install_rust.sh https://sh.rustup.rs
- cmd: sh /tmp/install_rust.sh -y --default-toolchain stable
build:
working_dir: $PKGER_BLD_DIR/${RECIPE}-$RECIPE_VERSION
steps:
- cmd: $HOME/.cargo/bin/cargo build --release --bins
- cmd: |
./target/release/wutag print-completions bash > wutag.bash
./target/release/wutag print-completions fish > wutag.fish
./target/release/wutag print-completions zsh > _wutag
install:
steps:
- cmd: >-
mkdir -p \
usr/bin \
usr/share/licenses/$RECIPE \
usr/share/doc/$RECIPE \
usr/share/bash-completion/completions \
usr/share/fish/vendor_completions.d \
usr/share/zsh/site-functions \
etc/systemd/user
- cmd: install -m755 $PKGER_BLD_DIR/$RECIPE-$RECIPE_VERSION/target/release/wutag usr/bin/
- cmd: install -m755 $PKGER_BLD_DIR/$RECIPE-$RECIPE_VERSION/target/release/wutagd usr/bin/
- cmd: install -m644 $PKGER_BLD_DIR/$RECIPE-$RECIPE_VERSION/example/wutagd.service etc/systemd/user/wutagd.service
- cmd: install -m644 $PKGER_BLD_DIR/$RECIPE-$RECIPE_VERSION/LICENSE usr/share/licenses/$RECIPE/LICENSE
- cmd: install -m644 $PKGER_BLD_DIR/$RECIPE-$RECIPE_VERSION/README.md usr/share/doc/$RECIPE/README.md
- cmd: install -m644 $PKGER_BLD_DIR/$RECIPE-$RECIPE_VERSION/wutag.bash usr/share/bash-completion/completions/wutag
- cmd: install -m644 $PKGER_BLD_DIR/$RECIPE-$RECIPE_VERSION/wutag.fish usr/share/fish/vendor_completions.d/wutag.fish
- cmd: install -m644 $PKGER_BLD_DIR/$RECIPE-$RECIPE_VERSION/_wutag usr/share/zsh/sire-functions/_wutag