diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2016-07-01 19:54:40 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2016-07-01 19:54:40 +0200 |
commit | a155a435f20833389af0336531ac0452ab940738 (patch) | |
tree | 2986f1b01565687ba867288dea169d9ab43ce1f8 /community/mpv/APKBUILD | |
parent | 4af6f6e97ce99797f79e359eff021ffa521c3fa3 (diff) | |
download | aports-a155a435f20833389af0336531ac0452ab940738.tar.bz2 aports-a155a435f20833389af0336531ac0452ab940738.tar.xz |
community/mpv: improve abuild and rebuild
Diffstat (limited to 'community/mpv/APKBUILD')
-rw-r--r-- | community/mpv/APKBUILD | 24 |
1 files changed, 9 insertions, 15 deletions
diff --git a/community/mpv/APKBUILD b/community/mpv/APKBUILD index d5f06b8e71..3dd31ce5b7 100644 --- a/community/mpv/APKBUILD +++ b/community/mpv/APKBUILD @@ -4,7 +4,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=mpv pkgver=0.17.0 -pkgrel=0 +pkgrel=1 pkgdesc="Video player based on MPlayer/mplayer2" url="http://mpv.io/" arch="all" @@ -15,28 +15,22 @@ makedepends="libxxf86dga-dev libxv-dev libmad-dev lame-dev libao-dev x264-dev faac-dev ttf-dejavu libxvmc-dev alsa-lib-dev libva-dev mesa-dev ffmpeg-dev libass-dev perl lua5.2-dev libvdpau-dev python libxext-dev libxscrnsaver-dev py-docutils rsound-dev libxrandr-dev" -install="" subpackages=" $pkgname-doc $pkgname-libs $pkgname-zsh-completion:zshcomp" -source="$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/mpv/archive/v$pkgver.tar.gz - " +source="$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/mpv/archive/v$pkgver.tar.gz" +builddir="$srcdir/$pkgname-$pkgver" -_builddir="$srcdir"/mpv-$pkgver prepare() { - cd "$_builddir" - for i in $source; do - case $i in - *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare || return 1 - ./bootstrap.py || return 1 + cd "$builddir" + ./bootstrap.py } build() { - cd "$_builddir" + cd "$builddir" ./waf configure --prefix=/usr \ --mandir=/usr/share/man \ --confdir=/etc/mpv \ @@ -52,12 +46,12 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" ./waf install --destdir="$pkgdir" || return 1 local file= mkdir -p "$pkgdir"/usr/share/doc/$pkgname - for file in "$_builddir"/DOCS/*.rst "$_builddir"/DOCS/*.md; do + for file in "$builddir"/DOCS/*.rst "$builddir"/DOCS/*.md; do install -Dm644 "$file" \ "$pkgdir"/usr/share/doc/$pkgname || return 1 done |