Skip to content

Instantly share code, notes, and snippets.

@dllud
Created May 28, 2025 18:15
Show Gist options
  • Save dllud/50d8bac7b9f452fe3d5ed112aefffabd to your computer and use it in GitHub Desktop.
Save dllud/50d8bac7b9f452fe3d5ed112aefffabd to your computer and use it in GitHub Desktop.
hey-duck PKGBUILD
# Maintainer: b1ek <[email protected]>
# Contributor: dllud <dllud riseup net>
pkgname=hey-duck
pkgver=0.2.0
pkgrel=2
pkgdesc='Contact DuckDuckGo AI chat from your terminal'
url="https://git.blek.codes/blek/hey"
makedepends=('cargo')
arch=('any')
license=('GPL-3.0-only')
source=("https://git.blek.codes/blek/hey/archive/$pkgver.tar.gz")
sha256sums=('949a20c534241c21cd0b02d81e20946d42c9c92165abf75944faecd918c4124c')
options=(!lto)
prepare() {
cd "$srcdir/hey"
cargo fetch --locked --target "$(rustc -vV | sed -n 's/host: //p')"
}
build() {
cd "$srcdir/hey"
cargo build --frozen --release --all-features
}
package() {
cd "$srcdir/hey/target/release"
install -Dm755 hey "$pkgdir/usr/bin/hey"
ln -s /usr/bin/hey "$pkgdir/usr/bin/hey,"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment