diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-09-28 18:34:04 +0200 |
---|---|---|
committer | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-09-28 18:34:04 +0200 |
commit | 86dc9e45f1f95a2eb17abe7d6e7823ec1a21d537 (patch) | |
tree | dc3831de63c6b7ae3dd41f425719d52f65a47c93 /testing/cmus/APKBUILD | |
parent | fa90b5c5fd5815d785ed551828464a3734422aa9 (diff) | |
download | aports-86dc9e45f1f95a2eb17abe7d6e7823ec1a21d537.tar.bz2 aports-86dc9e45f1f95a2eb17abe7d6e7823ec1a21d537.tar.xz |
testing/cmus: upgrade to 2.7.1
Diffstat (limited to 'testing/cmus/APKBUILD')
-rw-r--r-- | testing/cmus/APKBUILD | 51 |
1 files changed, 42 insertions, 9 deletions
diff --git a/testing/cmus/APKBUILD b/testing/cmus/APKBUILD index 533ba74f3a..fccfcedbb7 100644 --- a/testing/cmus/APKBUILD +++ b/testing/cmus/APKBUILD @@ -1,27 +1,60 @@ +# Contributor: Sören Tempel <soeren+alpine@soeren-tempel.net> +# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> # Maintainer: Bartłomiej Piotrowski <nospam@bpiotrowski.pl> -# Maintainer: pkgname=cmus -pkgver=2.5.0 +pkgver=2.7.1 pkgrel=0 pkgdesc="A very feature-rich ncurses-based music player" url="http://cmus.sourceforge.net/" -license="GPL2+" arch="all" +license="GPL2+" +depends="" +depends_dev="" makedepends="alsa-lib-dev faad2-dev flac-dev libmad-dev - libogg-dev libvorbis-dev ncurses-dev wavpack-dev linux-headers" -subpackages="$pkgname-doc" -source="http://downloads.sourceforge.net/$pkgname/$pkgname-v$pkgver.tar.bz2" + libogg-dev libvorbis-dev ncurses-dev wavpack-dev linux-headers" +install="" +subpackages=" + $pkgname-doc + $pkgname-zsh-completion:zshcomp + $pkgname-bash-completion:bashcomp" +source="$pkgname-$pkgver.tar.gz::https://github.com/cmus/cmus/archive/v${pkgver}.tar.gz" -_builddir="$srcdir"/$pkgname-v$pkgver +_builddir="$srcdir"/$pkgname-$pkgver build() { cd "$_builddir" - CC=gcc ./configure prefix=/usr || return 1 + ./configure prefix=/usr || return 1 make || return 1 } package() { cd "$_builddir" make DESTDIR="$pkgdir" install || return 1 + + for file in AUTHORS README.md; do + install -Dm644 "${file}" "$pkgdir"/usr/share/doc/$pkgname/ || return 1 + done +} + +bashcomp() { + depends="" + pkgdesc="Bash completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel bash" + arch="noarch" + + install -Dm644 "$_builddir"/contrib/$pkgname.bash-completion \ + "$subpkgdir"/usr/share/bash-completion/completions/$pkgname +} + +zshcomp() { + depends="" + pkgdesc="Zsh completions for $pkgname" + install_if="$pkgname=$pkgver-r$pkgrel zsh" + arch="noarch" + + install -Dm644 "$_builddir"/contrib/_$pkgname \ + "$subpkgdir"/usr/share/zsh/site-functions/_$pkgname } -md5sums="9af16d324060447996ed25e1a9c1c7d8 cmus-v2.5.0.tar.bz2" +md5sums="0588ab955db44a8e9deb03446d73b5df cmus-2.7.1.tar.gz" +sha256sums="8179a7a843d257ddb585f4c65599844bc0e516fe85e97f6f87a7ceade4eb5165 cmus-2.7.1.tar.gz" +sha512sums="b29ce10bbb61eb41c33c4912be320718fcf005a5797320145b124f048f6be5f5b0cebb67471ef7b062bd6f854849b6aae0e82e9adbf289a44237787932ea1576 cmus-2.7.1.tar.gz" |