makedeb


clipcat 0.15.0-1


Clipcat is a clipboard manager written in Rust Programming Language.

Viewing /PKGBUILD.

View raw.

Click here to go back to the Git tree for clipcat.

# Maintainer: efiwymui <efiwymui@mpr>

pkgname='clipcat'
pkgver=0.15.0
pkgrel='1'
pkgdesc='Clipcat is a clipboard manager written in Rust Programming Language.'
arch=('any')
url='https://github.com/xrelkd/clipcat'
license=('GPL3')
makedepends=('cargo>=1.63' 'protobuf-compiler')
source=("${pkgname}.tgz::https://github.com/xrelkd/clipcat/archive/v${pkgver}.tar.gz")
sha256sums=('35c1c92cdcc7b83a447725f17e87d17e733aeecde3c6bd67e676b4a57e3ef703')

build() {
    cd ${srcdir}/${pkgname}-${pkgver}
    cargo build --release
}

package() {
    cd ${srcdir}/${pkgname}-${pkgver}

    install -Dm755 target/release/clipcatctl "$pkgdir/usr/bin/clipcatctl"
    install -Dm755 target/release/clipcatd "$pkgdir/usr/bin/clipcatd"
    install -Dm755 target/release/clipcat-menu "$pkgdir/usr/bin/clipcat-menu"
    install -Dm755 target/release/clipcat-notify "$pkgdir/usr/bin/clipcat-notify"

    # shell completions
    for cmd in clipcatd clipcatctl clipcat-menu clipcat-notify; do
        "${pkgdir}/usr/bin/${cmd}" completions bash | install -Dm 644 /dev/stdin "${pkgdir}/usr/share/bash-completion/completions/${cmd}"
        "${pkgdir}/usr/bin/${cmd}" completions zsh | install -Dm 644 /dev/stdin "${pkgdir}/usr/share/zsh/site-functions/_${cmd}"
        "${pkgdir}/usr/bin/${cmd}" completions fish | install -Dm 644 /dev/stdin "${pkgdir}/usr/share/fish/completions/${cmd}.fish"
    done
}

# vim: set sw=4 expandtab: