Krolyxon
Commit 744d2be

Branches

Refs →

budctlcontribarchPKGBUILD

31 lines · 1.4 KB · Bourne Again Shell (bash)

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
6pkgname=budctl-bin
7pkgver=0.1.2
8pkgrel=1
9pkgdesc='Control wireless earbuds from Linux without the vendor app (CLI and Wayland GUI)'
10arch=('x86_64' 'aarch64')
11url='https://github.com/krolyxon/budctl'
12license=('GPL-3.0-or-later' 'OFL-1.1')
13depends=('glibc' 'gcc-libs' 'bluez')
14optdepends=('wayland: for budctl-gui'
15 'libxkbcommon: for budctl-gui'
16 'fontconfig: system fonts for characters the built-in ones lack')
17provides=('budctl')
18conflicts=('budctl')
19options=('!strip' '!debug')
20source_x86_64=("budctl-$pkgver-x86_64.tar.gz::$url/releases/download/v$pkgver/budctl-x86_64-unknown-linux-gnu.tar.gz")
21source_aarch64=("budctl-$pkgver-aarch64.tar.gz::$url/releases/download/v$pkgver/budctl-aarch64-unknown-linux-gnu.tar.gz")
22sha256sums_x86_64=('2d18a3ed9be4d142da9b077564ef7415da0d46c8a99661785da6310bf36e80d2')
23sha256sums_aarch64=('8416202ad2b8f8814fae159aab2931c400afe52a3cb400c7eb9a7760d41fa5a0')
24
25package() {
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 README.md -t "$pkgdir/usr/share/doc/budctl/"
30 install -Dm644 OFL-fonts.txt -t "$pkgdir/usr/share/licenses/$pkgname/"
31}