summaryrefslogtreecommitdiff
path: root/pcr/cadabra/PKGBUILD
blob: ad3a98b48c7dbab3ea600974cf59d9c9ff9f4b4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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
}