blob: d8f57fb32527d48e93512ac7da30cdb3c1bb2408 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# Maintainer: u8sand <u8sand@gmail.com>
# Contributor: Alfredo Ramos <alfredo dot ramos at yandex dot com>
_pkgname=baka-mplayer
pkgname=${_pkgname}-git
pkgver=2.0.4
pkgrel=1
pkgdesc='A free and open source, cross-platform, libmpv based multimedia player. Qt5 build. Development version.'
arch=('i686' 'x86_64')
url='https://u8sand.github.io/Baka-MPlayer/'
license=('GPL')
depends=('mpv' 'qt5-declarative' 'qt5-svg' 'qt5-x11extras')
optdepends=(
'mpv-git: for bleeding-edge mpv features'
'qt5-translations: for Qt5 dialog translations'
'youtube-dl: for remote video streaming'
'noto-fonts: for proper font support'
)
makedepends=('git' 'qt5-tools')
provides=("${_pkgname}=${pkgver}")
conflicts=("${_pkgname}")
replaces=("${_pkgname}")
source=(
"${_pkgname}::git+https://github.com/u8sand/Baka-MPlayer.git"
)
sha512sums=(
"SKIP"
)
pkgver() {
# Updating package version
cd ${srcdir}/${_pkgname}
(
set -o pipefail
git describe --long --tags | sed -r 's/^v//;s/([^-]*-g)/r\1/;s/-/./g' ||
printf "r%s.%s" "$(git rev-list --count HEAD)" "$(git rev-parse --short HEAD)"
)
}
prepare() {
# Make build directory
mkdir ${srcdir}/build
}
build() {
# Building package
cd ${srcdir}/build
qmake-qt5 ../${_pkgname}/src \
CONFIG+=release \
CONFIG+=install_translations \
-spec linux-g++
make -j $(grep -c ^processor /proc/cpuinfo)
}
package() {
# Installing package
cd ${srcdir}/build
make INSTALL_ROOT=${pkgdir} install
}
|