blob: 2ac7d3749eb336b395d660ebd64c957b9bd4b744 (
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
|
# Maintainer: willemw <willemw12@gmail.com>
# Contributor: rtfreedman <rob<d0t>til<d0t>freedman< T>googlemail<d0t>com>
_pkgname=exmplayer
pkgname=$_pkgname-git
pkgver=5.0.1.r2.g1ccb1ac
pkgrel=1
pkgdesc="MPlayer GUI front-end with 3D/2D video playback support and with audio converter, media cutter and audio extractor tools"
arch=('i686' 'x86_64')
url='http://exmplayer.sourceforge.net/'
license=('GPL')
depends=('desktop-file-utils' 'ffmpeg' 'mplayer' 'qt4')
optdepends=('youtube-dl: download video/audio')
makedepends=('git')
provides=($_pkgname)
conflicts=($_pkgname)
install=$pkgname.install
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-qt4
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"
}
|