summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorjose17112019-01-16 09:29:02 +0100
committerjose17112019-01-16 09:29:02 +0100
commit8558137c5ce4fed5d6a45b4f677833e1bd4f9fdf (patch)
treef3c4bd49df9f908b782c146f9182b64ce2e9f5ac
parentcf78df497fa25ef5ed1dc1e14db8f3f0a63d1246 (diff)
downloadaur-8558137c5ce4fed5d6a45b4f677833e1bd4f9fdf.tar.gz
Adopted and fixed invocation
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD24
-rw-r--r--webcamstudio.sh2
3 files changed, 26 insertions, 4 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 8e7539c23b4..40a4fe734d7 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,6 +1,8 @@
+# Generated by mksrcinfo v8
+# Wed Jan 16 08:27:22 UTC 2019
pkgbase = webcamstudio-git
pkgdesc = Webcam desktop recording suite for producing professional looking broadcasts
- pkgver = 20150307
+ pkgver = 20170108
pkgrel = 2
url = https://github.com/WebcamStudio/webcamstudio
install = webcamstudio.install
diff --git a/PKGBUILD b/PKGBUILD
index 244a929caf0..0a9c0399b86 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,8 +1,9 @@
-# Maintainer: Andy Weidenbaum <archbaum@gmail.com>
+# Maintainer: Jose Riha <jose1711 gmail com>
+# Contributor: Andy Weidenbaum <archbaum@gmail.com>
# Contributor: Cyberpunk <apocalipsisfull-2011@outlook.com>
pkgname=webcamstudio-git
-pkgver=20150307
+pkgver=20170108
pkgrel=2
pkgdesc="Webcam desktop recording suite for producing professional looking broadcasts"
arch=('i686' 'x86_64')
@@ -61,6 +62,25 @@ build() {
ant clean jar
}
+prepare() {
+ cd ${pkgname%-git}
+ # copied from Gentoo ebuild
+ sed -i -e "s?=/usr/share/java/jna.jar?=libraries/jna.jar?" \
+ -e "s?=libraries/jna-3.0...jar?=libraries/jna.jar?" \
+ -e "s?absolutelayout.classpath=libraries/jna.jar?absolutelayout.classpath=libraries/jna.jar:libraries/absolutelayout.jar?" nbproject/project.properties
+ sed -i -e "s?#video=gst-launch-0.10?video=gst-launch-0.10?"
+ -e "s?#audio=gst-launch-0.10?audio=gst-launch-0.10?" \
+ -e "s?video=avconv?#video=avconv?" \
+ -e "s?audio=avconv?#audio=avconv?" src/webcamstudio/externals/linux/sources/webcam.properties
+
+ sed -i -e "s?=gst-launch-0.10?=/usr/bin/gst-launch-0.10?" \
+ -e "s?=avconv?=/usr/bin/ffmpeg?" \
+ -e "s?=ffmpeg?=/usr/bin/ffmpeg?" \
+ src/webcamstudio/externals/linux/*.properties \
+ src/webcamstudio/externals/linux/*/*.properties
+}
+
+
package() {
cd ${pkgname%-git}
diff --git a/webcamstudio.sh b/webcamstudio.sh
index 254421b5187..2cfd0c74bef 100644
--- a/webcamstudio.sh
+++ b/webcamstudio.sh
@@ -1,4 +1,4 @@
#!/bin/bash
pushd /usr/share/webcamstudio > /dev/null \
- && java -jar WebcamStudio.jar "$@" \
+ && java -cp 'WebcamStudio.jar:lib/*' webcamstudio.WebcamStudio "$@" \
&& popd > /dev/null