desktop/bomi/PKGBUILD

55 lines
1.7 KiB
Bash
Raw Normal View History

2015-02-09 16:28:38 +08:00
pkgname=bomi
2018-01-07 20:21:46 +08:00
pkgver=0.9.11.r25.g90f18ff5
2018-01-07 20:54:06 +08:00
pkgrel=2
2015-02-09 16:28:38 +08:00
pkgdesc="Powerful and easy-to-use multimedia player"
arch=('x86_64')
url="http://bomi-player.github.io"
license=('GPL2')
screenshot='http://i.imgur.com/j76hzyd.png'
install=$pkgname.install
2015-03-31 07:39:36 +08:00
depends=('qt5-base' 'qt5-declarative' 'qt5-x11extras' 'qt5-quickcontrols' 'qt5-svg'
'libdvdread' 'libdvdnav' 'libcdio-paranoia' 'libcdio' 'smbclient'
2015-02-09 16:28:38 +08:00
'alsa-lib' 'libpulse' 'jack' 'libchardet' 'libbluray'
2015-04-21 23:58:50 +08:00
'libva' 'libgl' 'fribidi' 'libass' 'ffmpeg')
makedepends=('mesa' 'gcc' 'pkg-config' 'python3' 'qt5-tools')
2015-02-09 16:28:38 +08:00
optdepends=('libaacs: AACS decryption for Blu-ray support'
'libbdplus: BD+ decryption for Blu-ray support'
'youtube-dl: streaming website support including YouTube'
2015-02-15 21:27:09 +08:00
'yle-dl: rtmpdump frontend for Yle servers'
'mesa-vdpau: hardware acceleration for nvidia')
2015-02-09 16:28:38 +08:00
provides=('cmplayer')
replace=('cmplayer')
conflicts=('cmplayer' 'bomi-git')
2017-03-13 01:21:20 +08:00
source=(git+https://github.com/xylosper/${pkgname}.git
'ffmpeg3.patch'
'qt5.6.patch')
md5sums=('SKIP'
'2c005f32510aa504d1eb65f8c83323b3'
'44b2f48f40bffe6aa8070642031e5d35')
2017-01-25 05:42:36 +08:00
2017-03-13 01:21:20 +08:00
pkgver() {
cd "$srcdir/$pkgname"
echo $(git describe --tags | sed -E 's/([^-]*-g)/r\1/;s/-/./g' | cut -c2-)
}
2017-01-25 05:42:36 +08:00
prepare() {
2017-03-13 01:21:20 +08:00
cd "$srcdir/$pkgname"
2017-01-25 05:42:36 +08:00
2017-03-13 01:21:20 +08:00
# https://github.com/d-s-x/bomi/commit/944c3e196229f144e97f285f69355ddfc3f7b579
patch -Np1 -i "$srcdir/ffmpeg3.patch"
# https://github.com/d-s-x/bomi/commit/39ee4c372ffb98a4485b61a11726d39060bb2994
patch -Np1 -i "$srcdir/qt5.6.patch"
2017-01-25 05:42:36 +08:00
}
2015-02-09 16:28:38 +08:00
build() {
2017-03-13 01:21:20 +08:00
cd "$srcdir/$pkgname"
./configure --prefix=/usr \
--defaultskin=Breeze
2015-02-09 16:28:38 +08:00
make
}
package() {
2017-03-13 01:21:20 +08:00
cd "$srcdir/$pkgname"
2015-02-09 16:28:38 +08:00
make DEST_DIR=$pkgdir install
}