summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 25928c6ff48fc512bc7df26d1b4468b3901b1d7e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
pkgname=playcli
pkgver=1.0.0
pkgrel=1
pkgdesc="A TUI audio player built with Go and Bubble Tea"
arch=('x86_64' 'aarch64')
url="https://github.com/TimexDeveloper/playcli"
license=('MIT')
depends=('ffmpeg')
makedepends=('go')
source=("$pkgname-$pkgver.tar.gz::https://github.com/TimexDeveloper/$pkgname/archive/refs/tags/v$pkgver.tar.gz")
sha256sums=('SKIP')

build() {
  cd "$srcdir/$pkgname-$pkgver"
  go mod init playcli 2>/dev/null || true
  go build -o "$pkgname" -ldflags="-s -w"
}

package() {
  cd "$srcdir/$pkgname-$pkgver"
  install -Dm755 "$pkgname" "$pkgdir/usr/bin/$pkgname"
}