Skip to content

Commit

Permalink
Added PkgBuilder script
Browse files Browse the repository at this point in the history
  • Loading branch information
Supernovatux committed Sep 12, 2022
1 parent 4af9dcc commit 4e54efa
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
/target
PKGBUILD
auto-backlight-*.*.*-x86_64.tar.gz
tar-helper.sh
*.out*
completions
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "auto_backlight"
version = "2.0.0"
version = "3.0.0"
edition = "2021"
authors = ["Supernovatux <[email protected]>"]
homepage = "https://github.com/Supernovatux/auto_backlight"
Expand Down
7 changes: 7 additions & 0 deletions PkgBuilder.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/zsh
cargo build --profile=release
version=$(target/release/auto-backlight -V | awk '{print $2}')
tar -cvf auto-backlight-$version-x86_64.tar.gz completions target/release/auto-backlight LICENSE -I "gzip --best"
shasum=$(sha256sum ./auto-backlight-$version-x86_64.tar.gz | awk '{print $1}')
sed -i "s/sha256sums=.*/sha256sums=(\"$shasum\")/" PKGBUILD
sed -i "s/pkgver=.*/pkgver=$version/" PKGBUILD

0 comments on commit 4e54efa

Please sign in to comment.