diff options
author | Maximilian Luz | 2023-01-01 19:20:49 +0100 |
---|---|---|
committer | Maximilian Luz | 2023-01-01 19:21:18 +0100 |
commit | 11aee4cb5205de3fb3a6e796b5941b9fc5f528a7 (patch) | |
tree | 2b08489bd46976225b848d0e16f237794bf3d191 | |
download | aur-11aee4cb5205de3fb3a6e796b5941b9fc5f528a7.tar.gz |
Initial commit
-rw-r--r-- | .SRCINFO | 22 | ||||
-rw-r--r-- | .gitignore | 4 | ||||
-rw-r--r-- | PKGBUILD | 45 |
3 files changed, 71 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..29e8ec8f7f51 --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,22 @@ +pkgbase = pbpctrl-git + pkgdesc = Control Google Pixel Buds Pro from the Linux command line. + pkgver = 0.1.0.r1.ge71c5eb + pkgrel = 1 + url = https://github.com/qzed/pbpctrl + arch = x86_64 + license = MIT + license = Apache + makedepends = git + makedepends = rust + makedepends = cargo + makedepends = dbus + makedepends = protobuf + depends = gcc-libs + depends = dbus + depends = bluez + provides = pbpctrl + conflicts = pbpctrl + source = pbpctrl::git+https://github.com/qzed/pbpctrl.git + sha256sums = SKIP + +pkgname = pbpctrl-git diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..e487fa3cbeab --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +/pbpctrl +/src +/pkg +*.zst diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..3aa3896fc28b --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,45 @@ +# Maintainer: Maximilian Luz <m@mxnluz.io> + +_pkgname='pbpctrl' +pkgname="${_pkgname}-git" +pkgver=0.1.0.r1.ge71c5eb +pkgrel=1 +pkgdesc='Control Google Pixel Buds Pro from the Linux command line.' +url='https://github.com/qzed/pbpctrl' +license=('MIT' 'Apache') +arch=('x86_64') +depends=('gcc-libs' 'dbus' 'bluez') +makedepends=('git' 'rust' 'cargo' 'dbus' 'protobuf') + +provides=("${_pkgname}") +conflicts=("${_pkgname}") + +source=( + "${_pkgname}::git+https://github.com/qzed/pbpctrl.git" +) + +sha256sums=('SKIP') + +pkgver() { + cd "${srcdir}/${_pkgname}" + git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' +} + +build(){ + cd "${srcdir}/${_pkgname}" + env CARGO_TARGET_DIR="${PWD}/target" CARGO_INCREMENTAL=0 cargo build --release + strip --strip-all "target/release/pbpctrl" +} + +package() { + install -D -m755 "${srcdir}/${_pkgname}/target/release/pbpctrl" "${pkgdir}/usr/bin/pbpctrl" + + # completion files + install -D -m644 "${srcdir}/${_pkgname}/target/pbpctrl.bash" "${pkgdir}/usr/share/bash-completion/completions/pbpctrl" + install -D -m644 "${srcdir}/${_pkgname}/target/_pbpctrl" "${pkgdir}/usr/share/zsh/site-functions/_pbpctrl" + install -D -m644 "${srcdir}/${_pkgname}/target/pbpctrl.fish" "${pkgdir}/usr/share/fish/completions/pbpctrl.fish" + + # license + install -Dm644 "${srcdir}/${_pkgname}/LICENSE-MIT" "${pkgdir}/usr/share/licenses/pbpctrl/LICENSE-MIT" + install -Dm644 "${srcdir}/${_pkgname}/LICENSE-APACHE" "${pkgdir}/usr/share/licenses/pbpctrl/LICENSE-APACHE" +} |