summaryrefslogtreecommitdiff
path: root/community/amsn
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
committerroot <root@rshg054.dnsready.net>2013-08-13 01:33:19 -0700
commit7a65a910b77ad191d69881098c47f9b0c852d92e (patch)
tree9564e611af1442f8952a8cbddb3b0ad25ed71aab /community/amsn
parent60da6abff6c9577a783d72865f11de7a585e912e (diff)
Tue Aug 13 01:31:08 PDT 2013
Diffstat (limited to 'community/amsn')
-rw-r--r--community/amsn/PKGBUILD46
-rw-r--r--community/amsn/amsn-0.98.9-no-rebuild-on-install.patch14
-rw-r--r--community/amsn/amsn-0.98.9-v4l2.patch44
-rw-r--r--community/amsn/amsn.changelog11
4 files changed, 115 insertions, 0 deletions
diff --git a/community/amsn/PKGBUILD b/community/amsn/PKGBUILD
new file mode 100644
index 000000000..4cc2b5ef5
--- /dev/null
+++ b/community/amsn/PKGBUILD
@@ -0,0 +1,46 @@
+# $Id: PKGBUILD 90004 2013-05-06 19:36:15Z foutrelis $
+# Maintainer: Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+# Contributor: Giovanni Scafora <giovanni@archlinux.org>
+# Contributor: Jeff Mickey <j@codemac.net>
+
+pkgname=amsn
+pkgver=0.98.9
+pkgrel=3
+pkgdesc="MSN client written in Tcl/Tk"
+arch=('i686' 'x86_64')
+url="http://amsn.sourceforge.net/"
+license=('GPL2')
+depends=('tk' 'tls')
+makedepends=('libjpeg' 'libpng' 'farstream' 'libv4l')
+# not compatible with farstream 0.2
+#optdepends=('farstream: for video conferencing')
+changelog=$pkgname.changelog
+source=(http://downloads.sourceforge.net/sourceforge/$pkgname/$pkgname-$pkgver-src.tar.bz2
+ $pkgname-$pkgver-v4l2.patch
+ $pkgname-$pkgver-no-rebuild-on-install.patch)
+sha256sums=('1fd2620489cc3627a841773a79cf28a7c9c438979c76d37f231a773a79e7f23e'
+ '5371339024548fad3b3c5330e3bc410360a383a75d1771fb656885acddfc44cf'
+ 'dd560bebcfa672ba0be56b70dbcaa069b0faba7206d9cb8ea5d61fbd50ad81a1')
+
+build() {
+ cd ${srcdir}/$pkgname-$pkgver
+
+ # patch for linux kernel header changes
+ patch -Np0 -i ${srcdir}/$pkgname-$pkgver-v4l2.patch
+ # build patch
+ patch -Np0 -i ${srcdir}/$pkgname-$pkgver-no-rebuild-on-install.patch
+
+ # python2 fix
+ for file in lang/missing.py plugins/music/infosongbird; do
+ sed -i 's_/usr/bin/env python_/usr/bin/env python2_' ${file}
+ done
+
+ ./configure --prefix=/usr
+ make
+}
+
+package() {
+ cd ${srcdir}/$pkgname-$pkgver
+
+ make DESTDIR=${pkgdir} install
+}
diff --git a/community/amsn/amsn-0.98.9-no-rebuild-on-install.patch b/community/amsn/amsn-0.98.9-no-rebuild-on-install.patch
new file mode 100644
index 000000000..d3b6e4c55
--- /dev/null
+++ b/community/amsn/amsn-0.98.9-no-rebuild-on-install.patch
@@ -0,0 +1,14 @@
+--- Makefile.in 2012-05-18 21:28:05.000000000 +0200
++++ Makefile.in 2012-06-02 12:26:35.585073960 +0200
+@@ -261,3 +261,5 @@
+
+-install_libs:: rebuild_libs do_install_libs
++install_libs:: clean_libs
++ $(MAKE) rebuild_libs
++ $(MAKE) do_install_libs
+
+@@ -278,3 +280,3 @@
+ rebuild_libs: LIBDIR=$(libdir)/$(PACKAGE)
+-rebuild_libs: clean_libs $(LIBS_WITH_RPATH)
++rebuild_libs: $(LIBS_WITH_RPATH)
+
diff --git a/community/amsn/amsn-0.98.9-v4l2.patch b/community/amsn/amsn-0.98.9-v4l2.patch
new file mode 100644
index 000000000..b636e61fd
--- /dev/null
+++ b/community/amsn/amsn-0.98.9-v4l2.patch
@@ -0,0 +1,44 @@
+--- configure.ac 2012-05-23 21:21:14.000000000 +0200
++++ configure.ac 2012-06-02 12:29:24.836921683 +0200
+@@ -378,6 +378,10 @@
+ AC_CHECK_HEADERS(sys/videodev2.h,FOUND_OS=solaris,FOUND_OS=linux)
+ fi
+
++if test "$FOUND_OS" = "linux"; then
++ AC_CHECK_HEADERS(linux/videodev2.h)
++fi
++
+ #---------------------------------------------------------------------------------------------
+
+ dnl ---------------------------------------------------------------------
+--- utils/linux/capture/capture.h 2011-04-12 02:20:59.000000000 +0200
++++ utils/linux/capture/capture.h 2012-06-02 12:29:24.836921683 +0200
+@@ -34,7 +34,11 @@
+ #ifdef HAVE_SYS_VIDEODEV2_H
+ # include <sys/videodev2.h>
+ #else
+-# include <linux/videodev.h>
++ #ifdef HAVE_LINUX_VIDEODEV2_H
++ #include <linux/videodev2.h>
++ #else
++ #include <linux/videodev.h>
++ #endif
+ #endif
+ */
+
+--- utils/linux/capture/libng/plugins/Rules.mk 2012-05-18 17:31:32.000000000 +0200
++++ utils/linux/capture/libng/plugins/Rules.mk 2012-06-02 12:51:59.523065502 +0200
+@@ -2,6 +2,13 @@
+ TARGETS-plugins := $(capture_dir)/libng/plugins/conv-mjpeg.so
+ TARGETS-plugins += $(patsubst %,$(capture_dir)/libng/plugins/%.so,${LIBNG_PLUGINS})
+
++plugin_link_so = $(CC) $(LDFLAGS) $^ $(LDLIBS) $(capture_dir)/capture.so $(SHARED) -o $@
++ifeq ($(verbose),no)
++ echo_plugin_link_so = echo " LDP " $@
++else
++ echo_plugin_link_so = echo $(plugin_link_so)
++endif
++
+ # global targets
+ all:: $(TARGETS-plugins)
+ \ No newline at end of file
diff --git a/community/amsn/amsn.changelog b/community/amsn/amsn.changelog
new file mode 100644
index 000000000..41d497576
--- /dev/null
+++ b/community/amsn/amsn.changelog
@@ -0,0 +1,11 @@
+2012-06-02 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * amsn 0.98.9-1
+
+2010-12-13 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * Update to major release 0.98.4
+
+2010-03-17 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * Update to major release 0.98.3
+
+2009-07-26 Jaroslav Lichtblau <dragonlord@aur.archlinux.org>
+ * FS#15542 fixed in 0.97.2-14