Skip to content

Commit

Permalink
upgpkg: conceal 0.5.7-2
Browse files Browse the repository at this point in the history
  • Loading branch information
TD-Sky committed Dec 28, 2024
1 parent fc23c1a commit 4ae1f96
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 19 deletions.
2 changes: 1 addition & 1 deletion conceal/.SRCINFO
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pkgbase = conceal
pkgdesc = Command line recycle bin
pkgver = 0.5.7
pkgrel = 1
pkgrel = 2
url = https://github.com/TD-Sky/conceal
arch = x86_64
license = MIT
Expand Down
37 changes: 19 additions & 18 deletions conceal/PKGBUILD
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

pkgname=conceal
pkgver=0.5.7
pkgrel=1
pkgrel=2
pkgdesc="Command line recycle bin"
arch=('x86_64')
url="https://github.com/TD-Sky/conceal"
Expand All @@ -17,30 +17,31 @@ source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
sha256sums=('4612e4617b62ef4e9402b9372c1d418a907a8df2ffe711cf3fe98fc936319e68')

prepare() {
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
cd "$pkgname-$pkgver"
cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
}

build() {
cd "$pkgname-$pkgver"
cargo build --release --frozen
export CONCEAL_GEN_COMPLETIONS='true'
cd "$pkgname-$pkgver"
cargo build --release --frozen
}

package() {
cd "$pkgname-$pkgver"
cd "$pkgname-$pkgver"

install -Dm 755 "target/release/conceal" -t "$pkgdir/usr/bin"
install -Dm 644 "completions/conceal/_conceal" -t "$pkgdir/usr/share/zsh/site-functions"
install -Dm 644 "completions/conceal/conceal.bash" "$pkgdir/usr/share/bash-completion/completions/conceal"
install -Dm 644 "completions/conceal/conceal.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d"
install -Dm 644 "completions/conceal/conceal.nu" -t "$pkgdir/usr/share/nushell/completions"
install -Dm 755 "target/release/conceal" -t "$pkgdir/usr/bin"
install -Dm 644 "completions/conceal/_conceal" -t "$pkgdir/usr/share/zsh/site-functions"
install -Dm 644 "completions/conceal/conceal.bash" "$pkgdir/usr/share/bash-completion/completions/conceal"
install -Dm 644 "completions/conceal/conceal.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d"
install -Dm 644 "completions/conceal/conceal.nu" -t "$pkgdir/usr/share/nushell/completions"

install -Dm 755 "target/release/cnc" -t "$pkgdir/usr/bin"
install -Dm 644 "completions/cnc/_cnc" -t "$pkgdir/usr/share/zsh/site-functions"
install -Dm 644 "completions/cnc/cnc.bash" "$pkgdir/usr/share/bash-completion/completions/cnc"
install -Dm 644 "completions/cnc/cnc.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d"
install -Dm 644 "completions/cnc/cnc.nu" -t "$pkgdir/usr/share/nushell/completions"
install -Dm 755 "target/release/cnc" -t "$pkgdir/usr/bin"
install -Dm 644 "completions/cnc/_cnc" -t "$pkgdir/usr/share/zsh/site-functions"
install -Dm 644 "completions/cnc/cnc.bash" "$pkgdir/usr/share/bash-completion/completions/cnc"
install -Dm 644 "completions/cnc/cnc.fish" -t "$pkgdir/usr/share/fish/vendor_completions.d"
install -Dm 644 "completions/cnc/cnc.nu" -t "$pkgdir/usr/share/nushell/completions"

install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
install -Dm 644 README.md -t "$pkgdir/usr/share/doc/$pkgname"
install -Dm 644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname"
}

0 comments on commit 4ae1f96

Please sign in to comment.