diff options
author | TBK <tbk@jjtc.dk> | 2018-05-03 17:30:31 +0200 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2018-05-08 06:31:06 +0000 |
commit | 3016b313c633246c5c7d968eb7bcb045edfe75c8 (patch) | |
tree | a8b68956cf0986455715c1bb79c44b38cd324034 /community/cmus/APKBUILD | |
parent | 85d71b61728667166ea1ab7efd0231b8de7eae0e (diff) | |
download | aports-3016b313c633246c5c7d968eb7bcb045edfe75c8.tar.bz2 aports-3016b313c633246c5c7d968eb7bcb045edfe75c8.tar.xz |
community/cmus: improve aport
Diffstat (limited to 'community/cmus/APKBUILD')
-rw-r--r-- | community/cmus/APKBUILD | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/community/cmus/APKBUILD b/community/cmus/APKBUILD index 2c1a7e96fa..cabba2627c 100644 --- a/community/cmus/APKBUILD +++ b/community/cmus/APKBUILD @@ -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 } |