-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anthony Templeton
committed
Nov 21, 2023
1 parent
56b8d6d
commit f5edfdd
Showing
6 changed files
with
28 additions
and
36 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,24 @@ | ||
pkgname=swaddle | ||
pkgver=0.1.1 | ||
pkgver=0.1.2 | ||
pkgrel=1 | ||
pkgdesc="Swayidle inhibitor when watching content or listening to audio" | ||
arch=('x86_64') | ||
license=('GPL') | ||
depends=('dbus' 'openssl') | ||
makedepends=('cargo' 'rust') | ||
source=("$pkgname-$pkgver.tar.gz::https://github.com/attron/$pkgname/archive/v$pkgver.tar.gz" | ||
"$pkgname.service") | ||
sha256sums=('SKIP' | ||
'SKIP') | ||
|
||
url="https://github.com/ATTron/swaddle" | ||
license=('MIT') | ||
source=("$url/archive/$pkgver.tar.gz") | ||
sha256sums=('SKIP') | ||
|
||
build() { | ||
cd "$srcdir/$pkgname-$pkgver" | ||
cargo build --release --locked | ||
cargo build --release | ||
} | ||
|
||
package() { | ||
cd "$srcdir/$pkgname-$pkgver" | ||
install -Dm755 "target/release/$pkgname" "$pkgdir/usr/bin/$pkgname" | ||
install -Dm644 "$srcdir/$pkgname.service" "$pkgdir/usr/lib/systemd/system/$pkgname.service" | ||
} | ||
|
||
post_install() { | ||
systemctl daemon-reload | ||
} | ||
install -Dm755 "target/release/swaddle" "$pkgdir/usr/local/bin/swaddle" | ||
|
||
post_upgrade() { | ||
post_install | ||
# Post-install instructions | ||
echo "Swaddle has been installed. To integrate it with Sway, add the following line to your Sway configuration:" | ||
echo "exec_always --no-startup-id /usr/local/bin/swaddle &" | ||
echo "Then reload your Sway configuration or restart Sway." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.