blob: 0d7eac5ddd8b87a12fcd19cc1317345414766619 (
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
|
# Maintainer: envolution
# Contributor: Filipe LaĆns (FFY00) <lains@archlinux.org>
# Contributor: Caleb Maclennan <caleb@alerque.com>
# Contributor: nfnty <arch@nfnty.se>
pkgname=shotcut-git
pkgdesc='Cross-platform Qt based Video Editor - Git latest'
pkgver=24.11.17+r6400+g7e2b13eaf
pkgrel=1
arch=('x86_64')
url='https://www.shotcut.org'
license=('GPL3')
depends=('qt6-base' 'qt6-declarative' 'qt6-imageformats' 'qt6-multimedia' 'qt6-translations'
'mlt' 'movit' 'ffmpeg' 'libx264' 'libvpx' 'lame' 'frei0r-plugins' 'ladspa' 'qt6-charts')
optdepends=('swh-plugins: Several audio filters')
makedepends=('qt6-tools' 'git' 'cmake' 'ninja' 'clang')
source=("git+https://github.com/mltframework/shotcut.git")
sha512sums=('SKIP')
prepare() {
cd shotcut
sed -e 's|${Qt6_LUPDATE_EXECUTABLE}|/usr/lib/qt6/bin/lupdate|' -i translations/CMakeLists.txt
}
pkgver(){
cd "$srcdir/shotcut"
_version=$(git tag --sort=-v:refname --list | head -n1 | cut -c2-)
_commits=$(git rev-list --count HEAD)
_short_commit_hash=$(git rev-parse --short=9 HEAD)
echo "${_version#'v'}+r${_commits}+g${_short_commit_hash}"
}
build() {
cd shotcut
compile_version=${pkgver/#v/} # First remove optional leading 'v'
compile_version=${compile_version%%+*} # Then remove everything after first '+'
# https://github.com/mltframework/shotcut/issues/1275
export CXXFLAGS+=" -DSHOTCUT_NOUPGRADE"
cmake \
-Bbuild \
-GNinja \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_INSTALL_PREFIX=/usr \
-DSHOTCUT_VERSION=$compile_version
cmake --build build --verbose
}
package() {
cd shotcut
DESTDIR="${pkgdir}" cmake --install build
}
# vim: ts=2 sw=2 et:
|