summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authordoragasu2015-06-21 18:51:16 +0200
committerdoragasu2015-06-21 18:51:16 +0200
commit9289f47f702bcb492b4ac4e582b6a2678ccf4d19 (patch)
treeca8b635af8001e379c521625e62338831dd1fb05
downloadaur-9289f47f702bcb492b4ac4e582b6a2678ccf4d19.tar.gz
Initial import
-rw-r--r--.SRCINFO19
-rw-r--r--PKGBUILD32
-rw-r--r--segfault-and-install.patch38
-rw-r--r--siggen.install5
4 files changed, 94 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..d4ef52b0255
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,19 @@
+pkgbase = siggen
+ pkgdesc = Curses based signal generator
+ pkgver = 2.3.10
+ pkgrel = 1
+ url = http://www.comp.leeds.ac.uk/jj/linux/siggen.html
+ install = siggen.install
+ arch = i686
+ arch = x86_64
+ license = GPL2
+ depends = ncurses
+ provides = siggen
+ conflicts = siggen
+ source = http://www.comp.leeds.ac.uk/jj/linux/siggen.tgz
+ source = segfault-and-install.patch
+ sha256sums = 10f2749d144675c0faf37bffa276b49cbb2d44388a087928808acf5d0b0914fc
+ sha256sums = 1b316cba9663b90d1a8bfbe70d79a79c7304ad4f3b950b9a069ba43ec4fe64df
+
+pkgname = siggen
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..01b1ac64db0
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,32 @@
+# Maintainer: doragasu: doragasu <yawn> hotmail <roll> com
+
+pkgname=siggen
+pkgver=2.3.10
+pkgrel=1
+pkgdesc="Curses based signal generator"
+arch=('i686' 'x86_64')
+url="http://www.comp.leeds.ac.uk/jj/linux/siggen.html"
+license=('GPL2')
+depends=('ncurses')
+conflicts=('siggen')
+provides=('siggen')
+install=("${pkgname}.install")
+
+source=("http://www.comp.leeds.ac.uk/jj/linux/${pkgname}.tgz"
+ "segfault-and-install.patch")
+sha256sums=('10f2749d144675c0faf37bffa276b49cbb2d44388a087928808acf5d0b0914fc'
+ '1b316cba9663b90d1a8bfbe70d79a79c7304ad4f3b950b9a069ba43ec4fe64df')
+
+build() {
+ # Apply patch to fix installation path and some segfaults
+ patch -p0 < segfault-and-install.patch
+ # Make everything
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ make
+}
+
+package() {
+ cd "${srcdir}/${pkgname}-${pkgver}"
+ INSDIR=${pkgdir}/usr/bin MANDIR=${pkgdir}/usr/share/man make sysinstall
+}
+
diff --git a/segfault-and-install.patch b/segfault-and-install.patch
new file mode 100644
index 00000000000..680aee07df6
--- /dev/null
+++ b/segfault-and-install.patch
@@ -0,0 +1,38 @@
+siggen 2.3.10 patch by doragasu (2015). This patch fixes two things:
+1.- Allows to install siggen anywhere, overriding INSDIR and MANDIR.
+2.- Fixes some segfaults due to misc.c missing string.h include.
+diff -ruN siggen-2.3.10/Makefile siggen-2.3.10.work/Makefile
+--- siggen-2.3.10/Makefile 2008-05-11 21:47:57.000000000 +0200
++++ siggen-2.3.10.work/Makefile 2015-06-19 21:59:07.081129612 +0200
+@@ -28,8 +28,8 @@
+ #
+ srcdir = .
+ includedir = /usr/include/ncurses
+-INSDIR = /usr/local/bin
+-MANDIR = /usr/local/man
++INSDIR ?= /usr/local/bin
++MANDIR ?= /usr/local/man
+ LOCALINS = $(HOME)/bin
+ LOCALMAN = $(HOME)/man
+
+@@ -96,6 +96,9 @@
+ sysinstall: $(PROGS)
+ @strip $(PROGS)
+ @chmod 755 $(PROGS)
++ @mkdir -p $(INSDIR)
++ @mkdir -p $(MANDIR)/man1
++ @mkdir -p $(MANDIR)/man5
+ @echo "Copying $(PROGS) to $(INSDIR)"
+ @cp -p $(PROGS) $(INSDIR)
+ @for n in $(PROGS) ; do \
+diff -ruN siggen-2.3.10/misc.c siggen-2.3.10.work/misc.c
+--- siggen-2.3.10/misc.c 2008-05-11 22:55:16.000000000 +0200
++++ siggen-2.3.10.work/misc.c 2015-06-21 18:09:07.299554288 +0200
+@@ -27,6 +27,7 @@
+ #include <sys/types.h>
+ #include <unistd.h>
+ #include <limits.h>
++#include <string.h>
+ #include "config.h"
+ /*
+ * delay(us) wait us microsecs using select. Effectively
diff --git a/siggen.install b/siggen.install
new file mode 100644
index 00000000000..393bc8a27ab
--- /dev/null
+++ b/siggen.install
@@ -0,0 +1,5 @@
+post_install() {
+ echo 'Warning: if binaries in this package fail, complaining they cannot find /dev/dsp, you can try loading snd-pcm-oss module as follows (with root privileges):
+
+# modprobe snd-pcm-oss'
+}