diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-06-02 15:40:48 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2015-06-02 16:35:28 -0300 |
commit | 4a6bca6696a50363ce3407cc97472802907b7b5b (patch) | |
tree | 551e95a826b8191925607c8dcc7d5213991965cc /pcr/cadabra | |
parent | 314ca5ef60d9d64ed8a66f4e7315434bc7dc0288 (diff) |
cadabra: add new package to [pcr]
Diffstat (limited to 'pcr/cadabra')
-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 $* |