summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis Kasak2015-06-08 22:43:15 +0200
committerDenis Kasak2015-06-08 22:43:15 +0200
commit4c239c6dae8e0cf244aaebdd237b78c116daf1fa (patch)
tree57e7ce701519b0bfabf0e5892fcf55f0322662ec
downloadaur-4c239c6dae8e0cf244aaebdd237b78c116daf1fa.tar.gz
Initial import
-rw-r--r--.SRCINFO17
-rw-r--r--PKGBUILD34
-rw-r--r--octave-nnet.install17
3 files changed, 68 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..a0661cf20fc
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,17 @@
+pkgbase = octave-nnet
+ pkgdesc = The Octave-forge Nnet package for working with Neural Networks.
+ pkgver = 0.1.13
+ pkgrel = 3
+ url = http://octave.sourceforge.net/nnet/index.html
+ install = octave-nnet.install
+ arch = i686
+ arch = x86_64
+ groups = octave-forge
+ license = GPL
+ depends = octave
+ noextract = nnet-0.1.13.tar.gz
+ source = http://downloads.sourceforge.net/octave/nnet-0.1.13.tar.gz
+ md5sums = 836ca48df2236eb0cb7e1e27780a1659
+
+pkgname = octave-nnet
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..77e9e8678fb
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,34 @@
+# Submitter: Damir Jelic <poljarinho@gmail.com>
+# Maintainer: Denis Kasak <reversed(ku.gro.animret@kasakd)>
+_pack=nnet
+pkgname=octave-$_pack
+pkgver=0.1.13
+pkgrel=3
+pkgdesc="The Octave-forge Nnet package for working with Neural Networks."
+arch=('i686' 'x86_64')
+url="http://octave.sourceforge.net/$_pack/index.html"
+license=('GPL')
+groups=('octave-forge')
+depends=('octave')
+makedepends=()
+optdepends=()
+backup=()
+options=()
+install=$pkgname.install
+_archive=$_pack-$pkgver.tar.gz
+source=("http://downloads.sourceforge.net/octave/$_pack-$pkgver.tar.gz")
+noextract=("$_archive")
+md5sums=('836ca48df2236eb0cb7e1e27780a1659')
+
+
+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/octave-nnet.install b/octave-nnet.install
new file mode 100644
index 00000000000..22324bf0d31
--- /dev/null
+++ b/octave-nnet.install
@@ -0,0 +1,17 @@
+pkg=nnet
+## arg 1: the new package version
+post_install() {
+ echo "pkg prefix /usr/share/octave/packages /usr/lib/octave/packages; pkg install -global /usr/share/octave/$pkg.tar.gz" | octave --silent
+}
+
+## 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() {
+ echo "pkg prefix /usr/share/octave/packages /usr/lib/octave/packages; pkg uninstall $pkg" | octave --silent
+}