Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 9 additions & 22 deletions shotcut/mlt-git/PKGBUILD
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
# shellcheck disable=SC2034,SC2154,SC2164
pkgname=('mlt-git')
_srcname='mlt'
pkgdesc='Multimedia Framework'
pkgver='r1'
pkgrel='1'
pkgver=6.26.1.r148.g941c6ca7
pkgrel=1
arch=('i686' 'x86_64')
url="https://github.com/mltframework/${_srcname}"
license=('GPL2')
Expand All @@ -22,6 +21,7 @@ optdepends=(
'movit: opengl plugin'
)
makedepends=(
'cmake'
'ladspa'
'frei0r-plugins'
'libdv'
Expand All @@ -46,29 +46,16 @@ sha512sums=('SKIP')

pkgver() {
cd "${srcdir}/${_srcname}"

printf 'r%s.%s.%s\n' \
"$( git rev-list --count 'HEAD' )" \
"$( git log --max-count='1' --pretty='format:%ct' )" \
"$( git rev-parse --short 'HEAD' )"
git describe --tags --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g'
}

build() {
cd "${srcdir}/${_srcname}"

./configure \
--prefix='/usr' \
--avformat-swscale \
--enable-gpl \
--enable-gpl3 \
--qt-libdir='/usr/lib' \
--qt-includedir='/usr/include/qt'

make
cmake -S "${srcdir}/${_srcname}" -B build \
-DCMAKE_INSTALL_PREFIX=/usr \
-DCMAKE_BUILD_TYPE=Release
make -C build
}

package() {
cd "${srcdir}/${_srcname}"

make DESTDIR="${pkgdir}" install
make -C build DESTDIR="${pkgdir}" install
}