Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

PR934 + PR1035 #1036

Closed
wants to merge 4 commits into from
Closed

PR934 + PR1035 #1036

wants to merge 4 commits into from

Conversation

Havunen
Copy link

@Havunen Havunen commented Jun 26, 2024

No description provided.

@Havunen
Copy link
Author

Havunen commented Jun 26, 2024

UPDATED AUR FILE:

# Maintainer: Kyle Keen <keenerd@gmail.com>
# Contributor: Maarten Baert

pkgname=simplescreenrecorder
pkgver=0.4.4
pkgrel=2
pkgdesc="A feature-rich screen recorder that supports X11 and OpenGL."
arch=("x86_64")
url="https://www.maartenbaert.be/simplescreenrecorder/"
license=("GPL3")
depends=("qt5-base" "qt5-x11extras"
    "ffmpeg" "alsa-lib" "libpulse" "jack" "libgl" "glu"
    "libx11" "libxext" "libxfixes" "libxi" "libxinerama"
    "desktop-file-utils" "gtk-update-icon-cache")
optdepends=("lib32-simplescreenrecorder: OpenGL recording of 32-bit applications")
makedepends=("git" "cmake" "qt5-tools")
source=("git+https://github.com/MaartenBaert/ssr.git#tag=$pkgver"
         ffmpeg7.patch::https://patch-diff.githubusercontent.com/raw/MaartenBaert/ssr/pull/1036.patch)
sha256sums=('SKIP'
            'a1d4a2c1d5cfcf6a327cc98e47e6cd76dd2fd03b33ca9e7fcaba971570fae914')

install=simplescreenrecorder.install

prepare() {
  cd ssr
  mkdir -p build

  patch -p1 -i ../ffmpeg7.patch # Fix build with ffmpeg 5
}

build() {
  cd ssr/build
  # fPIC is only required for qt5 + gcc5
  #CXXFLAGS="$CXXFLAGS -fPIC"
  #./configure --prefix=/usr --disable-assert --with-qt5
  #./configure --prefix=/usr --disable-assert
  #  -DLRELEASE='/usr/bin/lrelease-qt4' \
  cmake -DCMAKE_INSTALL_PREFIX="/usr" -DCMAKE_BUILD_TYPE=Release \
    -DWITH_QT5=on \
    -DCMAKE_INSTALL_LIBDIR='lib' ../
  make
}
package() {
  cd ssr/build
  make DESTDIR="$pkgdir" install
}

@Havunen Havunen marked this pull request as ready for review June 26, 2024 07:50
@erikdubois
Copy link

thanks for your fix @Havunen
we are back in business
https://youtu.be/KWe2-yFEUeM

@MaartenBaert
Copy link
Owner

I ended up merging #1031 instead because it was backward compatible with older FFmpeg versions (this one is not). It was enough to get things working again, though this one seems more complete. If this can be made backward compatible (with #if/#else is fine) I will merge it.

@MaartenBaert
Copy link
Owner

At this point I've applied the necessary changes manually, so I will close this now.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants