Files
omarchy-pkgs/pkgbuilds/edge/cliamp/PKGBUILD
T
671ce7be06 chore: sync AUR packages (edge) (#73)
* chore: sync AUR packages (edge)

* No updating this for now

---------

Co-authored-by: ryanrhughes <1630358+ryanrhughes@users.noreply.github.com>
Co-authored-by: David Heinemeier Hansson <david@hey.com>
2026-04-03 13:51:23 +02:00

28 lines
928 B
Bash

# Maintainer: bjarneo <https://github.com/bjarneo>
pkgname=cliamp
pkgver=1.33.0
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=('716490cff2874df30261cfa8cd8ed3e1824c52b9c79ca6b2e662f849df16a43e')
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"
}