-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathpackage
More file actions
28 lines (23 loc) · 671 Bytes
/
Copy pathpackage
File metadata and controls
28 lines (23 loc) · 671 Bytes
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
#!/usr/bin/env bash
# Copyright (c) 2020 The Toltec Contributors
# SPDX-License-Identifier: MIT
pkgnames=(templatectl)
pkgdesc="Tool to add/remove templates for xochitl"
url=https://github.com/PeterGrace/templatectl
pkgver=@VERSION@
timestamp=@TIMESTAMP@
section=utils
maintainer="Peter Grace <pete.grace@gmail.com>"
license=MIT
image=rust:v1.2.2
source=(https://github.com/PeterGrace/templatectl/archive/@VERSION@.zip)
sha256sums=(sha)
build() {
# Fall back to system-wide config
rm .cargo/config
cargo build --release
}
package() {
install -D -m 755 -t "$pkgdir"/opt/bin \
"$srcdir"/target/armv7-unknown-linux-gnueabihf/release/templatectl
}