iglunix/pkgs/mpv/build.sh

27 lines
446 B
Bash
Raw Normal View History

2021-04-07 12:07:58 +00:00
pkgname=mpv
pkgver=0.33.1
fetch() {
curl -L "https://github.com/mpv-player/mpv/archive/refs/tags/v0.33.1.tar.gz" -o $pkgname-$pkgver.tar.xz
tar -xf $pkgname-$pkgver.tar.xz
}
build() {
cd $pkgname-$pkgver
./bootstrap.py
./waf configure --prefix=/usr --confdir=/etc/mpv --enable-libmpv-shared
./waf build
}
package() {
cd $pkgname-$pkgver
./waf install --destdir=$pkgdir
}
license() {
cd $pkgname-$pkgver
cat LICENSE
# cat COPYING
}