File tree Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Expand file tree Collapse file tree 2 files changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ src /
2+ pkg /
3+ * .xz
Original file line number Diff line number Diff line change 1+ pkgname=' surface-control'
2+ pkgver=' 0.1.0'
3+ pkgrel=' 1'
4+ pkgdesc=' Control various aspects of Microsoft Surface devices from the Command-Line'
5+ license=(' MIT' )
6+ arch=(' x86_64' )
7+ makedepends=(' rust' ' cargo' )
8+
9+ source=(
10+ ' src::git+https://github.com/qzed/linux-surface-control.git'
11+ )
12+
13+ sha256sums=(
14+ ' SKIP'
15+ )
16+
17+ build (){
18+ env CARGO_TARGET_DIR=" $srcdir /target" CARGO_INCREMENTAL=0 cargo build --release --locked
19+ }
20+
21+ package () {
22+ install -D -m755 " target/release/surface" " $pkgdir /usr/bin/surface"
23+
24+ # completion files
25+ install -D -m644 " target/surface.bash" " $pkgdir /usr/share/bash-completion/completions/surface"
26+ install -D -m644 " target/_surface" " $pkgdir /usr/share/zsh/site-functions/_surface"
27+ install -D -m644 " target/surface.fish" " $pkgdir /usr/share/fish/completions/surface.fish"
28+
29+ # license
30+ install -Dm644 " src/LICENSE" " ${pkgdir} /usr/share/licenses/surface-dtx-daemon/LICENSE"
31+ }
You can’t perform that action at this time.
0 commit comments