Add cliamp

This commit is contained in:
David Heinemeier Hansson
2026-03-20 23:33:33 +01:00
parent 6a44dd61ee
commit d9dfad1ab3
3 changed files with 45 additions and 0 deletions
+1
View File
@@ -2,6 +2,7 @@
# Core
asusctl
cliamp
qmk-hid
elephant install
elephant-archlinuxpkgs
+19
View File
@@ -0,0 +1,19 @@
pkgbase = cliamp
pkgdesc = A retro terminal music player inspired by Winamp 2.x
pkgver = 1.23.1
pkgrel = 1
url = https://github.com/bjarneo/cliamp
arch = x86_64
arch = aarch64
license = MIT
makedepends = go
depends = alsa-lib
depends = flac
depends = libvorbis
depends = libogg
depends = ffmpeg
depends = yt-dlp
source = cliamp-1.23.1.tar.gz::https://github.com/bjarneo/cliamp/archive/refs/tags/v1.23.1.tar.gz
sha256sums = 4f447792ef10f426e7dba26bc0882b0b9c50bb54e01573c30ebcc9858e87f5fa
pkgname = cliamp
+25
View File
@@ -0,0 +1,25 @@
# Maintainer: bjarneo <https://github.com/bjarneo>
pkgname=cliamp
pkgver=1.23.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')
makedepends=('go')
source=("${pkgname}-${pkgver}.tar.gz::https://github.com/bjarneo/cliamp/archive/refs/tags/v${pkgver}.tar.gz")
sha256sums=('4f447792ef10f426e7dba26bc0882b0b9c50bb54e01573c30ebcc9858e87f5fa')
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"
}