[arch-commits] Commit in shotcut/trunk (PKGBUILD)
Leonidas Spyropoulos
artafinde at gemini.archlinux.org
Fri May 27 22:17:23 UTC 2022
Date: Friday, May 27, 2022 @ 22:17:23
Author: artafinde
Revision: 1210885
shotcut: new build system (cmake) in preparation for next release
Modified:
shotcut/trunk/PKGBUILD
----------+
PKGBUILD | 33 +++++++++++++++++----------------
1 file changed, 17 insertions(+), 16 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2022-05-27 18:44:48 UTC (rev 1210884)
+++ PKGBUILD 2022-05-27 22:17:23 UTC (rev 1210885)
@@ -3,7 +3,7 @@
pkgname=shotcut
pkgdesc='Cross-platform Qt based Video Editor'
-pkgver=22.04.25
+pkgver=22.05.23
pkgrel=1
arch=('x86_64')
url='https://www.shotcut.org'
@@ -12,30 +12,31 @@
'qt5-quickcontrols' 'qt5-quickcontrols2' 'qt5-websockets' 'qt5-x11extras'
'mlt' 'movit' 'ffmpeg' 'libx264' 'libvpx' 'lame' 'frei0r-plugins' 'ladspa')
optdepends=('swh-plugins: Several audio filters')
-makedepends=('qt5-tools')
+makedepends=('qt5-tools' 'cmake' 'ninja')
options=('debug')
source=("$pkgname-$pkgver.tar.gz::https://github.com/mltframework/shotcut/archive/v$pkgver.tar.gz")
-sha512sums=('e5c51868a7f6e2ead3993d8577b5439408e9c54ee20274658c822666e2ca5fceb7d2360d02b8808b464c69005d83b6742a3a750ec244ffe69f82f2abd5ad39fc')
+sha512sums=('0d1540f1c01cd956a25313eedaa9593cb8ad3a1b4707c54090aab326428d5b66087ef239963155f8d749c32a5a2a9aa62b988c1ad85d1bba14a3850b8c245b2f')
build() {
- mkdir $pkgname-$pkgver/build
- cd $pkgname-$pkgver/build
+ cd "${pkgname}-${pkgver}"
- qmake .. \
- PREFIX='/usr' \
- QMAKE_CFLAGS_RELEASE="$CFLAGS" \
- QMAKE_CXXFLAGS_RELEASE="$CXXFLAGS" \
- SHOTCUT_VERSION=ARCH-$pkgver \
- DEFINES+=SHOTCUT_NOUPGRADE
+ # https://github.com/mltframework/shotcut/issues/1275
+ export CXXFLAGS+=" -DSHOTCUT_NOUPGRADE"
- make
+ cmake \
+ -Bbuild \
+ -GNinja \
+ -DCMAKE_BUILD_TYPE=Release \
+ -DCMAKE_INSTALL_PREFIX=/usr \
+ -DSHOTCUT_VERSION=${pkgver}
+ cmake --build build --verbose
- lrelease ../translations/*.ts
+ ninja -C build translations
}
package() {
- cd $pkgname-$pkgver/build
-
- make INSTALL_ROOT="$pkgdir" install
+ cd "${pkgname}-${pkgver}"
+ DESTDIR="${pkgdir}" cmake --install build
}
+# vim:set ft=sh sw=2 sts=2 et:
\ No newline at end of file
More information about the arch-commits
mailing list