blob: 14cfa3e19c809b497d42f68407b0b00e9b690d85 (
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: Pieter Goetschalckx <3.14.e.ter at gmail dot com>
# Contributors: Det, goetzc, Ner0, Lari Tikkanen, oke3, Flamelab, WAntilles
pkgname=smplayer-git
pkgver=24.5.0.10283.r3.gc817337
pkgrel=1
pkgdesc='Media player with built-in codecs that can play virtually all video and audio formats'
arch=(x86_64)
url=https://www.smplayer.info
license=(GPL-2.0-or-later)
depends=('glibc' 'qt5-base' 'qt5-declarative' 'mpv' 'libx11' 'zlib' 'gcc-libs' 'hicolor-icon-theme')
makedepends=(git qt5-tools)
optdepends=('smplayer-themes: icon themes collection'
'smplayer-skins: skin themes collection'
# 'smtube: browse and play youtube videos'
'youtube-dl: youtube videos and streaming'
'yt-dlp: youtube videos and streaming'
'mplayer: alternative multimedia engine')
provides=("${pkgname%-git}")
conflicts=("${pkgname%-git}")
source=("$pkgname::git+https://github.com/smplayer-dev/smplayer.git")
sha256sums=('SKIP')
pkgver() {
git -C $pkgname describe --long --tags --abbrev=7 | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}
prepare() {
# make build reproducible, we compress ourselves
sed '/gzip -9/d' -i $pkgname/Makefile
}
build() {
export CXXFLAGS="${CXXFLAGS} ${CPPFLAGS}"
make -C $pkgname \
PREFIX=/usr \
DOC_PATH="\\\"/usr/share/doc/smplayer\\\"" \
QMAKE_OPTS=DEFINES+=NO_DEBUG_ON_CONSOLE \
CFLAGS_EXTRA="${CFLAGS} ${CPPFLAGS} ${LDFLAGS}" \
all
}
package() {
make -C $pkgname \
PREFIX=/usr \
DOC_PATH=/usr/share/doc/smplayer \
DESTDIR="${pkgdir}" \
install
}
|