diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-31 18:59:06 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-12-31 20:27:13 +0100 |
commit | 4718ece0724ea2525ccd100fe5568faa65585b75 (patch) | |
tree | 959ae3c8e3b8e90ac240eb7d65e98d8527e55d2b /community/mpv | |
parent | 8ee2542534d42373b66a29ca320c3ff24bb92d27 (diff) | |
download | aports-4718ece0724ea2525ccd100fe5568faa65585b75.tar.bz2 aports-4718ece0724ea2525ccd100fe5568faa65585b75.tar.xz |
community/mpv: modernize abuild
Diffstat (limited to 'community/mpv')
-rw-r--r-- | community/mpv/APKBUILD | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/community/mpv/APKBUILD b/community/mpv/APKBUILD index 765b09cf3e..1301ec5a7a 100644 --- a/community/mpv/APKBUILD +++ b/community/mpv/APKBUILD @@ -10,7 +10,6 @@ pkgdesc="Video player based on MPlayer/mplayer2" url="https://mpv.io/" arch="all" license="GPL-2.0-or-later LGPL-2.0-or-later" -depends="" makedepends="libxxf86dga-dev libxv-dev libmad-dev lame-dev libao-dev libtheora-dev xvidcore-dev zlib-dev sdl-dev freetype-dev x264-dev faac-dev ttf-dejavu libxvmc-dev alsa-lib-dev libva-dev @@ -25,13 +24,15 @@ source="$pkgname-$pkgver.tar.gz::https://github.com/mpv-player/$pkgname/archive/ builddir="$srcdir/$pkgname-$pkgver" prepare() { - default_prepare || return 1 + default_prepare + cd "$builddir" ./bootstrap.py } build() { cd "$builddir" + ./waf configure --prefix=/usr \ --mandir=/usr/share/man \ --confdir=/etc/mpv \ @@ -39,33 +40,32 @@ build() { --enable-libass \ --enable-libmpv-shared \ --enable-rsound \ - --enable-zsh-comp \ - || return 1 - ./waf build || return 1 + --enable-zsh-comp + ./waf build } package() { cd "$builddir" - ./waf install --destdir="$pkgdir" || return 1 + + ./waf install --destdir="$pkgdir" mkdir -p "$pkgdir"/usr/share/doc/$pkgname install -m644 "$builddir"/DOCS/*.rst "$builddir"/DOCS/*.md \ - "$pkgdir"/usr/share/doc/$pkgname/ || return 1 + "$pkgdir"/usr/share/doc/$pkgname/ # Move example configuration files to subdirectory mkdir -p "$pkgdir"/usr/share/doc/mpv/examples mv "$pkgdir"/usr/share/doc/mpv/*.conf \ - "$pkgdir"/usr/share/doc/mpv/examples/ || return 1 + "$pkgdir"/usr/share/doc/mpv/examples/ } zshcomp() { - depends="" pkgdesc="Zsh completions for $pkgname" install_if="$pkgname=$pkgver-r$pkgrel zsh" mkdir -p "$subpkgdir/usr/share/zsh/site-functions" mv "$pkgdir/usr/share/zsh/site-functions"/* \ - "$subpkgdir/usr/share/zsh/site-functions" || return 1 + "$subpkgdir/usr/share/zsh/site-functions" } sha512sums="22738f907d84d362095773972f685e3b03ab4c8172a22ddede290fc221a83ab9135b96f8b18191dabe842b2963f68983929cf065097287fc1a054a7d5f1d0ae4 mpv-0.27.0.tar.gz |