Files
omarchy-pkgs/pkgbuilds/edge/cliamp/PKGBUILD
T
6e9bcd4e6e chore: sync AUR packages (edge) (#76)
* chore: sync AUR packages (edge)

* Don't revert this

---------

Co-authored-by: ryanrhughes <1630358+ryanrhughes@users.noreply.github.com>
Co-authored-by: David Heinemeier Hansson <david@hey.com>
2026-04-15 16:26:16 +02:00

28 lines
928 B
Bash

# Maintainer: bjarneo <https://github.com/bjarneo>
pkgname=cliamp
pkgver=1.35.1
pkgrel=1
pkgdesc='A retro terminal music player inspired by Winamp 2.x'
arch=('x86_64' 'aarch64')
url='https://github.com/bjarneo/cliamp'
license=('MIT')
depends=('alsa-lib' 'flac' 'libvorbis' 'libogg' 'ffmpeg' 'yt-dlp')
optdepends=('pipewire-alsa: audio output on PipeWire systems'
'pulseaudio-alsa: audio output on PulseAudio systems')
makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/bjarneo/cliamp/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('7e7eb3321f0df8faeaa4fc7a78f86f996b05c56d8ee5241a124c552c230ef5bd')
build() {
cd "${pkgname}-${pkgver}"
export CGO_ENABLED=1
go build -trimpath -buildmode=pie \
-ldflags="-s -w -X main.version=v${pkgver} -linkmode=external" \
-o cliamp .
}
package() {
cd "${pkgname}-${pkgver}"
install -Dm755 cliamp "${pkgdir}/usr/bin/cliamp"
}