summaryrefslogtreecommitdiff
path: root/pcr/octave-communications
diff options
context:
space:
mode:
authorEsteban Carnevale <alfplayer@mailoo.org>2014-10-11 21:32:27 -0300
committerEsteban Carnevale <alfplayer@mailoo.org>2014-10-11 21:32:27 -0300
commit73878e9f6a2b86ebf66cf87ec145dc309c8520c4 (patch)
treeadd2354a374b3acde8a673f9250c3ff8d72d86dd /pcr/octave-communications
parentd2556ce4d528b6a62d31b9f28cd37678f565f956 (diff)
parent4e75bcf04fa2ee23cbdc320bdf04af821616a6ee (diff)
Merge branch 'master' of git://projects.parabola.nu/abslibre
Diffstat (limited to 'pcr/octave-communications')
-rw-r--r--pcr/octave-communications/PKGBUILD39
-rw-r--r--pcr/octave-communications/octave-communications.install20
2 files changed, 59 insertions, 0 deletions
diff --git a/pcr/octave-communications/PKGBUILD b/pcr/octave-communications/PKGBUILD
new file mode 100644
index 000000000..31f11bb8c
--- /dev/null
+++ b/pcr/octave-communications/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=communications
+pkgname=octave-$_pack
+pkgver=1.2.0
+pkgrel=1
+pkgdesc="Digital Communications, Error Correcting Codes (Channel Code), Source Code functions, Modulation and Galois Fields"
+arch=(any)
+url="http://octave.sourceforge.net/$_pack/"
+license=('GPL3')
+groups=('octave-forge')
+depends=('octave>=3.4' 'octave-signal>=1.1.3')
+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-communications/octave-communications.install b/pcr/octave-communications/octave-communications.install
new file mode 100644
index 000000000..77b123c4e
--- /dev/null
+++ b/pcr/octave-communications/octave-communications.install
@@ -0,0 +1,20 @@
+_pack=communications
+_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"
+}