diff options
-rw-r--r-- | pcr/cadabra/PKGBUILD | 49 | ||||
-rw-r--r-- | pcr/cadabra/cadabra.install | 35 |
2 files changed, 84 insertions, 0 deletions
diff --git a/pcr/cadabra/PKGBUILD b/pcr/cadabra/PKGBUILD new file mode 100644 index 000000000..ad3a98b48 --- /dev/null +++ b/pcr/cadabra/PKGBUILD @@ -0,0 +1,49 @@ +# Contributor (Arch): Dariusz 'quasi' Panchyrz <quasi@aur.archlinux.org> +# Maintainer: André Silva <emulatorman@parabola.nu> + +pkgbase=cadabra +pkgname=(cadabra-cli cadabra-gui) +pkgver=1.33 +pkgrel=1 +pkgdesc="${pkgbase^} is a computer algebra system (CAS)" +arch=('i686' 'x86_64' 'mips64el') +url="http://$pkgbase.phi-sci.com/" +license=('GPL') +groups=$pkgbase +makedepends=('lie' 'modglue' 'gmp' 'pcre' 'gtkmm' 'texlive-core') +install=$pkgbase.install +source=(http://$pkgbase.phi-sci.com/$pkgbase-$pkgver.tar.gz) +noextract=("$pkgbase-$pkgver.tar.gz") +md5sums=('cee8ae23c169958aba09b64e4ea479ce') + +prepare() { + mkdir -p {cli,gui} + bsdtar --strip-components 1 -zxf $pkgbase-$pkgver.tar.gz -C cli + bsdtar --strip-components 1 -zxf $pkgbase-$pkgver.tar.gz -C gui +} + +build() { + cd $srcdir/cli + ./configure --prefix=/usr + make + + cd $srcdir/gui + ./configure --prefix=/usr --enable-gui + make +} + +package_cadabra-cli() { + pkgdesc+=" - CLI version" + depends=('lie' 'modglue' 'gmp' 'pcre') + + cd $srcdir/cli + make DESTDIR="${pkgdir}" install +} + +package_cadabra-gui() { + pkgdesc+=" - GUI version" + depends=('lie' 'modglue' 'gmp' 'pcre' 'gtkmm' 'texlive-core') + + cd $srcdir/gui + make DESTDIR="${pkgdir}" install +} diff --git a/pcr/cadabra/cadabra.install b/pcr/cadabra/cadabra.install new file mode 100644 index 000000000..843f01a31 --- /dev/null +++ b/pcr/cadabra/cadabra.install @@ -0,0 +1,35 @@ +# arg 1: the new package version +pre_install() { + /bin/true +} + +# arg 1: the new package version +post_install() { + /bin/true +} + +# arg 1: the new package version +# arg 2: the old package version +pre_upgrade() { + /bin/true +} + +# arg 1: the new package version +# arg 2: the old package version +post_upgrade() { + post_install +} + +# arg 1: the old package version +pre_remove() { + /bin/true +} + +# arg 1: the old package version +post_remove() { + /bin/true +} + +op=$1 +shift +$op $* |