Skip to content

Commit 5a2d001

Browse files
committed
Add Arch PKGBUILD
1 parent 95db925 commit 5a2d001

File tree

2 files changed

+34
-0
lines changed

2 files changed

+34
-0
lines changed

pkg/arch/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
src/
2+
pkg/
3+
*.xz

pkg/arch/PKGBUILD

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
}

0 commit comments

Comments
 (0)