| 1 | # Packages the release builds (x86_64 and aarch64) from GitHub. Not on the AUR: build it here with |
| 2 | # makepkg -si |
| 3 | # For a new release, bump pkgver, reset pkgrel to 1, and take the sums from the release's |
| 4 | # .sha256 files (or run updpkgsums). |
| 5 | |
| 6 | pkgname=budctl-bin |
| 7 | pkgver=0.1.4 |
| 8 | pkgrel=1 |
| 9 | pkgdesc='Control wireless earbuds from Linux without the vendor app (CLI and Wayland GUI)' |
| 10 | arch=('x86_64' 'aarch64') |
| 11 | url='https://github.com/krolyxon/budctl' |
| 12 | license=('GPL-3.0-or-later' 'OFL-1.1') |
| 13 | depends=('glibc' 'gcc-libs' 'bluez') |
| 14 | optdepends=('wayland: for budctl-gui' |
| 15 | 'libxkbcommon: for budctl-gui' |
| 16 | 'fontconfig: system fonts for characters the built-in ones lack') |
| 17 | provides=('budctl') |
| 18 | conflicts=('budctl') |
| 19 | options=('!strip' '!debug') |
| 20 | source_x86_64=("budctl-$pkgver-x86_64.tar.gz::$url/releases/download/v$pkgver/budctl-x86_64-unknown-linux-gnu.tar.gz") |
| 21 | source_aarch64=("budctl-$pkgver-aarch64.tar.gz::$url/releases/download/v$pkgver/budctl-aarch64-unknown-linux-gnu.tar.gz") |
| 22 | sha256sums_x86_64=('735ab9715c55d4feedeb23d7a762987941138894a768e567f8ef331acfa0d623') |
| 23 | sha256sums_aarch64=('afc1078943471b72457fb9b7a5418811e8e304693f303f0bd4221a21e6e350e9') |
| 24 | |
| 25 | package() { |
| 26 | cd "budctl-$CARCH-unknown-linux-gnu" |
| 27 | install -Dm755 budctl budctl-gui -t "$pkgdir/usr/bin/" |
| 28 | install -Dm644 budctl.desktop -t "$pkgdir/usr/share/applications/" |
| 29 | install -Dm644 budctl.svg "$pkgdir/usr/share/icons/hicolor/scalable/apps/budctl.svg" |
| 30 | install -Dm644 README.md -t "$pkgdir/usr/share/doc/budctl/" |
| 31 | install -Dm644 OFL-fonts.txt -t "$pkgdir/usr/share/licenses/$pkgname/" |
| 32 | } |