summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorhaawda2020-10-06 00:50:21 +0200
committerhaawda2020-10-06 00:50:21 +0200
commitd3c1e2289849e931e1ae56e09817271590ac4177 (patch)
tree3b8eb4164ed21dcfb72a95d040134ff3fe092ce1
parent23c39e9af819c30c8ff82d9143986d9002439478 (diff)
downloadaur-d3c1e2289849e931e1ae56e09817271590ac4177.tar.gz
add patch to link aganst libbz2
-rw-r--r--.SRCINFO9
-rw-r--r--PKGBUILD15
-rw-r--r--bzip2.patch14
3 files changed, 31 insertions, 7 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 3df7da8224e..fc8b395862d 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,6 @@
pkgbase = vokoscreen-git
pkgdesc = An easy to use screencast creator. Development version.
- pkgver = 3.0.5.r4.g2b49a60b
+ pkgver = 3.0.7.r5.gf877a1d0
pkgrel = 1
epoch = 1
url = http://linuxecke.volkoh.de/vokoscreen/vokoscreen.html
@@ -10,6 +10,7 @@ pkgbase = vokoscreen-git
makedepends = git
makedepends = qt5-tools
makedepends = libxrandr
+ makedepends = bzip2
depends = qt5-x11extras
depends = qt5-multimedia
depends = qt-gstreamer
@@ -17,10 +18,12 @@ pkgbase = vokoscreen-git
depends = gst-plugins-bad
depends = pulseaudio
optdepends = gst-plugins-ugly: for x264 video codec
- provides = vokoscreen=3.0.5.r4.g2b49a60b
+ provides = vokoscreen=3.0.7.r5.gf877a1d0
conflicts = vokoscreen
source = git+https://github.com/vkohaupt/vokoscreenNG.git
- sha512sums = SKIP
+ source = bzip2.patch
+ sha256sums = SKIP
+ sha256sums = eafc44d38e255851f221c86dd65e9651d520041b89bdb55eecbc49d7f303ac2e
pkgname = vokoscreen-git
diff --git a/PKGBUILD b/PKGBUILD
index 21445b6cd9d..9d062da4a4f 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@
_pkgname=vokoscreenNG
pkgname=vokoscreen-git
-pkgver=3.0.5.r4.g2b49a60b
+pkgver=3.0.7.r5.gf877a1d0
pkgrel=1
epoch=1
pkgdesc='An easy to use screencast creator. Development version.'
@@ -14,24 +14,31 @@ url='http://linuxecke.volkoh.de/vokoscreen/vokoscreen.html'
license=('GPL2')
depends=('qt5-x11extras' 'qt5-multimedia' 'qt-gstreamer'
'gst-plugins-good' 'gst-plugins-bad' 'pulseaudio')
-makedepends=('git' 'qt5-tools' 'libxrandr')
+makedepends=('git' 'qt5-tools' 'libxrandr' 'bzip2')
optdepends=('gst-plugins-ugly: for x264 video codec')
provides=("${_pkgname%NG}=${pkgver}")
conflicts=("${_pkgname%NG}")
-source=("git+https://github.com/vkohaupt/${_pkgname}.git")
-sha512sums=('SKIP')
+source=("git+https://github.com/vkohaupt/${_pkgname}.git" bzip2.patch)
+sha256sums=('SKIP'
+ 'eafc44d38e255851f221c86dd65e9651d520041b89bdb55eecbc49d7f303ac2e')
pkgver() {
cd ${_pkgname}
git describe --long --tags 2>/dev/null | sed -r 's/-/.r/' | tr - .
}
+prepare() {
+ cd ${_pkgname}
+ git apply "$srcdir"/bzip2.patch
+}
+
build() {
[[ -d "${srcdir}"/build ]] || mkdir -p "${srcdir}"/build
cd build
qmake-qt5 ../${_pkgname}/src/ \
QMAKE_CFLAGS="${CFLAGS}" \
QMAKE_CXXFLAGS="${CXXFLAGS}" \
+ QMAKE_LDFLAGS="${LDFLAGS} -lbz2" \
CONFIG+=release \
CONFIG+=c++14
make
diff --git a/bzip2.patch b/bzip2.patch
new file mode 100644
index 00000000000..a0db75c9df9
--- /dev/null
+++ b/bzip2.patch
@@ -0,0 +1,14 @@
+diff --git a/src/vokoscreenNG.pro b/src/vokoscreenNG.pro
+index 09158dec..180ab9f5 100644
+--- a/src/vokoscreenNG.pro
++++ b/src/vokoscreenNG.pro
+@@ -73,8 +73,7 @@ QMAKE_LFLAGS += -Wl,--as-needed
+
+ unix:CONFIG += link_pkgconfig
+ unix:PKGCONFIG += gstreamer-1.0 libpulse
+-unix:LIBS += -lpulse-simple
+-unix:PKGCONFIG += bzip2
++unix:LIBS += -lpulse-simple -lbz2
+
+ win32:RC_ICONS = vokoscreenNG.ico
+