From fa5921422d1d79e82c414ca9ba908d87340af8f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20DESBRI=C3=88RES?= Date: Wed, 8 Oct 2014 20:46:26 +0200 Subject: The Octave-forge Image package provides functions for processing images. --- pcr/octave-image/PKGBUILD | 41 +++++++++++++++++++++++++++++++++++ pcr/octave-image/octave-image.install | 20 +++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 pcr/octave-image/PKGBUILD create mode 100644 pcr/octave-image/octave-image.install (limited to 'pcr/octave-image') diff --git a/pcr/octave-image/PKGBUILD b/pcr/octave-image/PKGBUILD new file mode 100644 index 000000000..1fd17c752 --- /dev/null +++ b/pcr/octave-image/PKGBUILD @@ -0,0 +1,41 @@ +# +# Contributor : Philipp Brüschweiler +# Contributor : Ng Oon-Ee +# Contriburor : Clemens Buchacher +# Maintainer : Aurélien DESBRIÈRES +# +# 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=image +pkgname=octave-$_pack +pkgver=2.2.1 +pkgrel=1 +pkgdesc="The Octave-forge Image package provides functions for processing images. The package also provides functions for feature extraction, image statistics, spatial and geometric transformations, morphological operations, linear filtering, and much more." +arch=(any) +url="http://octave.sourceforge.net/$_pack/" +license=('custom') +groups=('octave-forge') +depends=('octave>=3.8.0' 'octave-signal>=1.2.0' 'octave-general>=1.3.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-image/octave-image.install b/pcr/octave-image/octave-image.install new file mode 100644 index 000000000..5e4edf2da --- /dev/null +++ b/pcr/octave-image/octave-image.install @@ -0,0 +1,20 @@ +_pack=image +_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" +} -- cgit v1.2.2