summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
authorAurélien DESBRIÈRES <aurelien@hackers.camp>2014-10-08 19:51:44 +0200
committerAurélien DESBRIÈRES <aurelien@hackers.camp>2014-10-08 19:51:44 +0200
commit21ddfa1115aa87f61aef66cb1977ef675784e650 (patch)
treed5b661cd9fd7e3b8a6e9efaf326cbaf07fc6a9c2 /pcr
parent19767b96a2507bc812dbab9b217d2a738f387ca7 (diff)
downloadabslibre-21ddfa1115aa87f61aef66cb1977ef675784e650.tar.gz
abslibre-21ddfa1115aa87f61aef66cb1977ef675784e650.tar.bz2
abslibre-21ddfa1115aa87f61aef66cb1977ef675784e650.zip
Signal processing tools
Diffstat (limited to 'pcr')
-rw-r--r--pcr/octave-general/PKGBUILD39
-rw-r--r--pcr/octave-general/octave-general.install20
-rw-r--r--pcr/octave-signal/PKGBUILD39
-rw-r--r--pcr/octave-signal/octave-signal.install20
4 files changed, 118 insertions, 0 deletions
diff --git a/pcr/octave-general/PKGBUILD b/pcr/octave-general/PKGBUILD
new file mode 100644
index 000000000..9a4790fea
--- /dev/null
+++ b/pcr/octave-general/PKGBUILD
@@ -0,0 +1,39 @@
+#
+# Contributor : Clemens Buchacher <drizzd@aon.at>
+# Maintainer : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+#
+# You can use the newpkg script from
+# https://github.com/drizzd/octave-forge-archlinux to automatically generate
+# new octave-forge PKGBUILDs or update existing ones. Patches welcome.
+#
+
+_pack=general
+pkgname=octave-$_pack
+pkgver=1.3.4
+pkgrel=1
+pkgdesc="General tools for Octave."
+arch=(any)
+url="http://octave.sourceforge.net/$_pack/"
+license=('custom')
+groups=('octave-forge')
+depends=('octave>=3.8.0')
+makedepends=()
+optdepends=()
+backup=()
+options=()
+install=$pkgname.install
+_archive=$_pack-$pkgver.tar.gz
+source=("http://downloads.sourceforge.net/octave/$_archive")
+noextract=("$_archive")
+
+build() {
+ cd "$srcdir"
+ mkdir -p builddir
+ octave -q -f --eval "pkg build -verbose -nodeps builddir $_archive"
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/share/octave/packages"
+ mkdir -p "$pkgdir/usr/lib/octave/packages"
+ cp "$srcdir/builddir/$_archive" "$pkgdir/usr/share/octave/$_pack.tar.gz"
+}
diff --git a/pcr/octave-general/octave-general.install b/pcr/octave-general/octave-general.install
new file mode 100644
index 000000000..1a0a2df71
--- /dev/null
+++ b/pcr/octave-general/octave-general.install
@@ -0,0 +1,20 @@
+_pack=general
+_prefix=/usr/share/octave/packages
+_libdir=/usr/lib/octave/packages
+
+## arg 1: the new package version
+post_install() {
+ octave -q -f --eval "pkg prefix $prefix $libdir; pkg install -verbose -global /usr/share/octave/$_pack.tar.gz"
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ post_remove
+ post_install
+}
+
+## arg 1: the old package version
+post_remove() {
+ octave -q -f --eval "pkg prefix $prefix $libdir; pkg uninstall $_pack; pkg rebuild -global"
+}
diff --git a/pcr/octave-signal/PKGBUILD b/pcr/octave-signal/PKGBUILD
new file mode 100644
index 000000000..fe48bd102
--- /dev/null
+++ b/pcr/octave-signal/PKGBUILD
@@ -0,0 +1,39 @@
+#
+# Maintainer : Aurélien DESBRIÈRES <aurelien@hackers.camp>
+# Contributor : Clemens Buchacher <drizzd@aon.at>
+#
+# You can use the newpkg script from
+# https://github.com/drizzd/octave-forge-archlinux to automatically generate
+# new octave-forge PKGBUILDs or update existing ones. Patches welcome.
+#
+
+_pack=signal
+pkgname=octave-$_pack
+pkgver=1.3.0
+pkgrel=1
+pkgdesc="Signal processing tools, including filtering, windowing and display functions."
+arch=(any)
+url="http://octave.sourceforge.net/$_pack/"
+license=('custom')
+groups=('octave-forge')
+depends=('octave>=3.8.0' 'octave-control>=2.4.5' 'octave-general>=1.3.2')
+makedepends=()
+optdepends=()
+backup=()
+options=()
+install=$pkgname.install
+_archive=$_pack-$pkgver.tar.gz
+source=("http://downloads.sourceforge.net/octave/$_archive")
+noextract=("$_archive")
+
+build() {
+ cd "$srcdir"
+ mkdir -p builddir
+ octave -q -f --eval "pkg build -verbose -nodeps builddir $_archive"
+}
+
+package() {
+ mkdir -p "$pkgdir/usr/share/octave/packages"
+ mkdir -p "$pkgdir/usr/lib/octave/packages"
+ cp "$srcdir/builddir/$_archive" "$pkgdir/usr/share/octave/$_pack.tar.gz"
+}
diff --git a/pcr/octave-signal/octave-signal.install b/pcr/octave-signal/octave-signal.install
new file mode 100644
index 000000000..1d5a466a5
--- /dev/null
+++ b/pcr/octave-signal/octave-signal.install
@@ -0,0 +1,20 @@
+_pack=signal
+_prefix=/usr/share/octave/packages
+_libdir=/usr/lib/octave/packages
+
+## arg 1: the new package version
+post_install() {
+ octave -q -f --eval "pkg prefix $prefix $libdir; pkg install -verbose -global /usr/share/octave/$_pack.tar.gz"
+}
+
+## arg 1: the new package version
+## arg 2: the old package version
+post_upgrade() {
+ post_remove
+ post_install
+}
+
+## arg 1: the old package version
+post_remove() {
+ octave -q -f --eval "pkg prefix $prefix $libdir; pkg uninstall $_pack; pkg rebuild -global"
+}