Commit 3016b313 authored by TBK's avatar TBK Committed by Francesco Colista

community/cmus: improve aport

parent 85d71b61
......@@ -3,37 +3,33 @@
# Maintainer:
pkgname=cmus
pkgver=2.8.0_rc0
_pkgver=${pkgver/_rc/-rc}
pkgrel=0
_ver=${pkgver/_rc/-rc}
pkgdesc="A very feature-rich ncurses-based music player"
url="http://cmus.sourceforge.net/"
url="https://cmus.github.io/"
arch="all"
license="GPL-2.0-or-later"
depends=""
depends_dev=""
options="!check" # No test suite
makedepends="alsa-lib-dev faad2-dev flac-dev libmad-dev opusfile-dev
libogg-dev libvorbis-dev ncurses-dev wavpack-dev ffmpeg-dev
linux-headers"
install=""
subpackages="
$pkgname-doc
$pkgname-zsh-completion:zshcomp:noarch
subpackages="$pkgname-doc $pkgname-zsh-completion:zshcomp:noarch
$pkgname-bash-completion:bashcomp:noarch"
source="$pkgname-$_ver.tar.gz::https://github.com/cmus/cmus/archive/v${_ver}.tar.gz"
source="$pkgname-$_pkgver.tar.gz::https://github.com/cmus/cmus/archive/v$_pkgver.tar.gz"
builddir="$srcdir"/$pkgname-$_pkgver
builddir="$srcdir"/$pkgname-$_ver
build() {
cd "$builddir"
./configure prefix=/usr || return 1
make || return 1
./configure prefix=/usr
make
}
package() {
cd "$builddir"
make DESTDIR="$pkgdir" install || return 1
make DESTDIR="$pkgdir" install
for file in AUTHORS README.md; do
install -Dm644 "${file}" "$pkgdir"/usr/share/doc/$pkgname/ || return 1
install -Dm644 "${file}" "$pkgdir"/usr/share/doc/$pkgname/
done
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment