summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorNicolas F2015-10-26 19:12:23 +0100
committerNicolas F2015-10-26 19:12:23 +0100
commit9646351e4bc8c6f04fed5b62ed0577925100f259 (patch)
tree25dce1e125a91a000c70227b430b5e6ff0bdd254
downloadaur-9646351e4bc8c6f04fed5b62ed0577925100f259.tar.gz
Initial Commit
-rw-r--r--.SRCINFO34
-rw-r--r--PKGBUILD52
-rw-r--r--fix-ini-data.patch16
-rw-r--r--fix-tcldir.patch15
-rw-r--r--snowmix.sh1
5 files changed, 118 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..b9a4fd79c6c
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,34 @@
+pkgbase = snowmix
+ pkgdesc = Dynamic audio and video feed mixer
+ pkgver = 0.5.0
+ pkgrel = 1
+ url = http://snowmix.sourceforge.net
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = autoconf
+ makedepends = automake
+ makedepends = libtool
+ makedepends = pkg-config
+ makedepends = awk
+ depends = openbsd-netcat
+ depends = cairo
+ depends = pango
+ depends = gst-libav
+ depends = sdl
+ depends = freeglut
+ depends = libpng
+ depends = tcl
+ depends = bwidget
+ depends = glu
+ source = http://sourceforge.net/projects/snowmix/files/Snowmix-0.5.0.tar.gz
+ source = snowmix.sh
+ source = fix-tcldir.patch
+ source = fix-ini-data.patch
+ md5sums = 2e474171e84dda413f3587dfa1cf61f9
+ md5sums = 89a14ff28c05f5261910ac7b06d4055b
+ md5sums = 9cb3b2a30c6b2084536636340b1da92a
+ md5sums = 84e31e0ab2b298ddfd4ffaca3d57e3a0
+
+pkgname = snowmix
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..cdca886f18d
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,52 @@
+# Maintainer: Nicolas F. <aur@fratti.ch>
+pkgname=snowmix
+pkgver=0.5.0
+pkgrel=1
+pkgdesc="Dynamic audio and video feed mixer"
+arch=('i686' 'x86_64')
+url="http://snowmix.sourceforge.net"
+license=('GPL')
+groups=()
+makedepends=('autoconf' 'automake' 'libtool' 'pkg-config' 'awk')
+depends=('openbsd-netcat' 'cairo' 'pango' 'gst-libav' 'sdl' 'freeglut' 'libpng'
+ 'tcl' 'bwidget' 'glu')
+source=("http://sourceforge.net/projects/snowmix/files/Snowmix-$pkgver.tar.gz"
+ "snowmix.sh"
+ "fix-tcldir.patch"
+ "fix-ini-data.patch")
+md5sums=('2e474171e84dda413f3587dfa1cf61f9'
+ '89a14ff28c05f5261910ac7b06d4055b'
+ '9cb3b2a30c6b2084536636340b1da92a'
+ '84e31e0ab2b298ddfd4ffaca3d57e3a0')
+
+prepare() {
+ cd "Snowmix-$pkgver"
+ patch -p0 -i "$srcdir"/fix-tcldir.patch
+ patch -p0 -i "$srcdir"/fix-ini-data.patch
+}
+
+build() {
+ cd "Snowmix-$pkgver"
+
+ mkdir m4
+ aclocal
+ autoconf
+ libtoolize --force
+ automake --add-missing
+
+ ./configure --prefix=/usr --enable-snowmixosmesa --enable-snowmixx11 \
+ --enable-snowmixglu --enable-snowmixgui
+ export SNOWMIX="/usr/lib/Snowmix-$pkgver"
+ make
+}
+
+package() {
+ cd "Snowmix-$pkgver"
+ export SNOWMIX="/usr/lib/Snowmix-$pkgver"
+
+ make DESTDIR="$pkgdir" install
+ install -Dm755 "$srcdir"/snowmix.sh \
+ "${pkgdir}"/etc/profile.d/snowmix.sh
+
+ rm -r "$pkgdir/usr/lib/Snowmix-$pkgver/test"
+}
diff --git a/fix-ini-data.patch b/fix-ini-data.patch
new file mode 100644
index 00000000000..f67472d3098
--- /dev/null
+++ b/fix-ini-data.patch
@@ -0,0 +1,16 @@
+--- ini/Makefile.am 2015-10-26 18:28:47.631165505 +0100
++++ ini/Makefile_new.am 2015-10-26 18:53:43.926985177 +0100
+@@ -1,2 +1,12 @@
+-ini_DATA = *
++ini_DATA = audio basic_feeds.ini basis.ini camrelay-stream-ts Clock \
++demo-scenes DigitalClock DigitalCounter DigitalMeter example-3vfeed \
++gl_test2.ini intercom logotest logotest2 minimal minimal-1feed \
++minimal-1feed.ini minimal.ini mosaic-basis ninefeeds.ini saphire-audio \
++saphire-basis.ini saphire-DigitalCounter saphire-DigitalMeter saphire-Radar \
++saphire-shape sapphire-audio sapphire-basis.ini sapphire-clocks sapphire-feeds \
++sapphire-radar sapphire-scenes sapphire-texts shape-test.ini text_tutorial.ini \
++tm65-audio tm65-basis-720p.ini tm65-basis.ini tm65-shape \
++tm65-virtual_feeds-720p.ini tm65-virtual_feeds.ini udprelay videomixer.ini \
++virtual_feeds_2.ini virtual_feeds.ini
++
+ inidir = $(libdir)/Snowmix-@SNOWMIX_VERSION@/ini
diff --git a/fix-tcldir.patch b/fix-tcldir.patch
new file mode 100644
index 00000000000..e7ab35db99c
--- /dev/null
+++ b/fix-tcldir.patch
@@ -0,0 +1,15 @@
+--- tcl/Makefile.am 2015-02-04 02:49:24.000000000 +0100
++++ tcl/Makefile_new.am 2015-10-26 17:53:44.914291480 +0100
+@@ -1,9 +1,9 @@
+ tcl_SCRIPTS = *.tcl
+-tcldir = $(DESTDIR)$(libdir)/Snowmix-@SNOWMIX_VERSION@/tcl
++tcldir = $(libdir)/Snowmix-@SNOWMIX_VERSION@/tcl
+
+ install-exec-hook:
+- $(MKDIR_P) $(tcldir) && \
+- cd $(tcldir) && \
++ $(MKDIR_P) $(DESTDIR)$(tcldir) && \
++ cd $(DESTDIR)$(tcldir) && \
+ $(LN_S) -f ../images/tcl_images images && \
+ cd $(DESTDIR)$(bindir) && \
+ $(LN_S) -f ../lib/Snowmix-$(VERSION)/tcl/snowcub.tcl
diff --git a/snowmix.sh b/snowmix.sh
new file mode 100644
index 00000000000..502203106f0
--- /dev/null
+++ b/snowmix.sh
@@ -0,0 +1 @@
+test -f /usr/bin/snowmix && export SNOWMIX=/usr/lib/Snowmix-0.5.0