blob: f040f97f803eed5a13b6df14d9e09dbc17edc4e3 (
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
|
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: rtfreedman <rob<d0t>til<d0t>freedman< T>googlemail<d0t>com>
pkgname=exmplayer-git
pkgver=5.0.1.r17.gaecf78a
pkgrel=1
pkgdesc="MPlayer GUI front-end. Plays any media file. Video downloader, subtitle search, audio converter/extractor, media cutter, Gif animation generator"
arch=('x86_64')
url="http://exmplayer.sourceforge.net/"
license=('GPL')
depends=('ffmpeg' 'mplayer' 'qt5-base')
optdepends=('youtube-dl: download video/audio')
makedepends=('git')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=($pkgname::git+https://github.com/rupeshs/ExMplayer.git)
md5sums=('SKIP')
pkgver() {
cd $pkgname
git describe --long --tags | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
build() {
cd $pkgname/src
qmake-qt5
make
}
package() {
cd $pkgname
install -Dm644 debian/exmplayer.png "$pkgdir/usr/share/pixmaps/exmplayer.png"
install -Dm644 exmplayer.desktop "$pkgdir/usr/share/applications/exmplayer.desktop"
install -Dm644 exmplayer_enqueue.desktop "$pkgdir/usr/share/applications/exmplayer_enqueue.desktop"
install -Dm644 linux_build/fmts "$pkgdir/etc/exmplayer/fmts"
install -Dm644 linux_build/sc_default.xml "$pkgdir/etc/exmplayer/sc_default.xml"
install -Dm755 src/exmplayer "$pkgdir/usr/bin/exmplayer"
# Use installed ffmpeg
install -dm755 "$pkgdir/usr/share/exmplayer"
ln -s /usr/bin/ffmpeg "$pkgdir/usr/share/exmplayer/ffmpeg"
#
# Or use bundled ffmpeg
#install -Dm755 linux_build/ffmpeg "$pkgdir/usr/share/exmplayer"
}
|