81 lines
2.5 KiB
Bash
81 lines
2.5 KiB
Bash
#!/usr/bin/bash
|
|
# JOBoRun : Jwm OpenBox Obarun RUNit
|
|
# Maintainer : Joe Bo Run <joborun@disroot.org>
|
|
# PkgSource : url="https://gittea.disroot.org/joborun-pkg/jobcomm/$pkgname"
|
|
# Website : https://pozol.eu
|
|
#-----------------------------------------| DESCRIPTION |---------------------------------------
|
|
|
|
pkgname=cmus-git
|
|
pkgver=v2.10.0.r48.g23afab3
|
|
pkgrel=03
|
|
pkgdesc="Small, fast and powerful console music player for Unix-like operating systems."
|
|
url="https://cmus.github.io/"
|
|
depends=('ncurses' 'libdiscid')
|
|
makedepends=('git'
|
|
'faad2'
|
|
'ffmpeg'
|
|
'flac'
|
|
'jack'
|
|
'libao'
|
|
'libcdio-paranoia'
|
|
'libmad'
|
|
'libmodplug'
|
|
'libmp4v2'
|
|
'libmpcdec'
|
|
'libpulse'
|
|
'libsamplerate'
|
|
'libvorbis'
|
|
'opusfile'
|
|
'wavpack')
|
|
optdepends=('alsa-lib: for ALSA output plugin support'
|
|
'libao: for AO output plugin support'
|
|
'libpulse: for PulseAudio output plugin support'
|
|
'faad2: for AAC input plugin support'
|
|
'ffmpeg: for ffmpeg input plugin support'
|
|
'flac: for flac input plugin support'
|
|
'jack: for jack plugin support'
|
|
'libmad: for mp3 input plugin support'
|
|
'libmodplug: for modplug input plugin support'
|
|
'libmp4v2: for mp4 input plugin support'
|
|
'libmpcdec: for musepack input plugin support'
|
|
'libsamplerate: for sampe rate converter support'
|
|
'libvorbis: for vorbis input plugin support'
|
|
'libcdio-paranoia: for cdio support'
|
|
'opusfile: for opus input plugin support'
|
|
'wavpack: for wavpack input plugin support')
|
|
conflicts=('cmus')
|
|
provides=('cmus')
|
|
#_commit=ade6e2a7253d7a256e87fdac3da17c9158e6700e
|
|
#source=("git+https://github.com/cmus/cmus.git#commit=$_commit")
|
|
source=('git+https://github.com/cmus/cmus.git')
|
|
_gitname=cmus
|
|
|
|
pkgver() {
|
|
cd "$_gitname"
|
|
git describe --long --tags | sed 's/\([^-]*-g\)/r\1/;s/-/./g'
|
|
}
|
|
|
|
build() {
|
|
cd "$_gitname"
|
|
./configure prefix=/usr
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd "$_gitname"
|
|
make DESTDIR="$pkgdir" install
|
|
install -Dm644 contrib/cmus.bash-completion "$pkgdir"/usr/share/bash-completion/completions/cmus
|
|
install -Dm644 contrib/_cmus "$pkgdir"/usr/share/zsh/site-functions/_cmus
|
|
}
|
|
|
|
|
|
#---- arch license gpg-key & sha256sums ----
|
|
|
|
arch=(x86_64)
|
|
|
|
license=(GPL)
|
|
|
|
sha256sums=(SKIP)
|
|
|
|
## cb9c689efca26061647d35e6c36b759fabc96171b5746b74a6a9afa21d959279 cmus-git-v2.10.0.r48.g23afab3-03-x86_64.pkg.tar.lz
|