diff options
author | wangjiezhe | 2015-10-27 09:54:04 +0800 |
---|---|---|
committer | wangjiezhe | 2015-10-27 10:09:10 +0800 |
commit | 5318b3de390497cdfef3c284af29614b3841ca99 (patch) | |
tree | ebf0ff366dfcff0e429be6e1d6da81aac722f88d /PKGBUILD | |
download | aur-5318b3de390497cdfef3c284af29614b3841ca99.tar.gz |
Initial commit
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..31ad3eee41d7 --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,55 @@ +# +# Maintainer: Clemens Buchacher <drizzd@aon.at> +# Contributor: wangjiezhe <wangjiezhe AT yandex DOT com> +# +# 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=doctest +pkgname=octave-$_pack +pkgver=0.4.0 +pkgrel=1 +pkgdesc="The Octave-Forge Doctest package finds specially-formatted blocks of example code within documentation files. It then executes the code and confirms the output is correct. This can be useful as part of a testing framework or simply to ensure that [...]" +arch=(any) +url="http://octave.sourceforge.net/$_pack/" +license=('custom') +groups=('octave-forge') +depends=() +makedepends=() +optdepends=() +backup=() +options=() +install=$pkgname.install +_archive=$_pack-$pkgver.tar.gz +source=("http://downloads.sourceforge.net/octave/$_archive") +noextract=("$_archive") +md5sums=('3c9252381e46745bc760f53960710d87') + +_install_dir() { + src=$1 + dst=$2 + mkdir -p "$(dirname "$dst")" + cp -rT "$src" "$dst" +} + +build() { + _prefix="$srcdir"/install_prefix + _archprefix="$srcdir"/install_archprefix + mkdir -p "$_prefix" "$_archprefix" + cd "$srcdir" + octave-cli -q -f --eval "$(cat <<-EOF + pkg local_list octave_packages; + pkg prefix $_prefix $_archprefix; + pkg install -verbose -nodeps $_archive; + EOF + )" +} + +package() { + prefix=$pkgdir/usr/share/octave/packages + archprefix=$pkgdir/usr/lib/octave/packages + _install_dir "$srcdir"/install_prefix "$prefix" + _install_dir "$srcdir"/install_archprefix "$archprefix" +} |