blob: c0014909a991d445cd7459c9ab8471bd6a15f424 (
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
|
# Maintainer: John Machado <john at delinuxco dot com>
_pkgname=kdenlive
pkgname=kdenlive-appimage
pkgver=24.08.3
pkgrel=1
pkgdesc="A non-linear video editor for Linux using the MLT video framework"
arch=('x86_64')
#url="https://www.kdenlive.org"
license=('GPL')
provides=('kdenlive')
conflicts=('kdenlive')
depends=('breeze' 'breeze-icons')
makedepends=('breeze' 'breeze-icons')
_filename="${_pkgname}-${pkgver}-${arch}.AppImage"
source_x86_64=("${_filename}::https://download.kde.org/stable/kdenlive/24.08/linux/${_pkgname}-${pkgver}-x86_64.AppImage")
sha256sums_x86_64=('e7139eaedf07f7ead3bd37817c8dcb68055688419b788e4c55b137f3ef68ed5b')
options=(!strip)
prepare()
{
cd "${srcdir}"
chmod +x ${_filename}
eval ./${_filename} --appimage-extract "*/*/*/*/*x*/apps/*.png"
eval ./${_filename} --appimage-extract "*/*/applications/*.desktop"
}
package()
{
# Install AppImage
install -Dm755 "${srcdir}/${_filename}" "${pkgdir}/opt/appimages/${_filename}"
# Install Exec Script
ExecScript="#!/bin/sh\nexec /opt/appimages/${_filename} \"\$@\""
install -dm755 "${pkgdir}/usr/bin"
echo -e $ExecScript > "${pkgdir}/usr/bin/${_pkgname}"
chmod +x "${pkgdir}/usr/bin/${_pkgname}"
# Install global Desktop-Integration
_sizes=('256x256' '128x128' '64x64' '48x48' '32x32' '22x22' '16x16')
for _size in ${_sizes[@]}; do
install -Dm644 "${srcdir}/squashfs-root/usr/share/icons/hicolor/${_size}/apps/kdenlive.png" "${pkgdir}/usr/share/icons/hicolor/${_size}/apps/kdenlive.png"
done
install -Dm644 "${srcdir}/squashfs-root/usr/share/applications/org.kde.kdenlive.desktop" "${pkgdir}/usr/share/applications/org.kde.kdenlive.desktop"
#Append Window Class to prevent duplicate launcher icons, since at least version 22.04, StartUpClass entry is included in the desktop file. Removing entry for now.
#echo "StartupWMClass=kdenlive" >> "${pkgdir}/usr/share/applications/org.kde.kdenlive.desktop"
}
|