summaryrefslogtreecommitdiff
path: root/pcr
diff options
context:
space:
mode:
Diffstat (limited to 'pcr')
-rw-r--r--pcr/modglue/PKGBUILD28
-rw-r--r--pcr/modglue/modglue.install35
2 files changed, 63 insertions, 0 deletions
diff --git a/pcr/modglue/PKGBUILD b/pcr/modglue/PKGBUILD
new file mode 100644
index 000000000..1fd5b3e35
--- /dev/null
+++ b/pcr/modglue/PKGBUILD
@@ -0,0 +1,28 @@
+# Contributor (Arch): Dariusz 'quasi' Panchyrz <quasi@aur.archlinux.org>
+# Maintainer: André Silva <emulatorman@parabola.nu>
+
+pkgname=modglue
+pkgver=1.19
+pkgrel=1
+pkgdesc="Modglue library for Cadabra computer algebra system (CAS)"
+arch=('i686' 'x86_64')
+url="http://cadabra.phi-sci.com/"
+license=('GPL')
+depends=('libsigc++')
+install=$pkgname.install
+source=(http://cadabra.phi-sci.com/$pkgname-$pkgver.tar.gz)
+md5sums=('0d3d764c93f8c1464852f78d8493476b')
+
+
+build() {
+ cd $srcdir/$pkgname-$pkgver
+
+ ./configure --prefix=/usr
+ make -j1
+}
+
+package() {
+ cd $srcdir/$pkgname-$pkgver
+
+ make -j1 DESTDIR=$pkgdir install
+}
diff --git a/pcr/modglue/modglue.install b/pcr/modglue/modglue.install
new file mode 100644
index 000000000..55b1b3e9c
--- /dev/null
+++ b/pcr/modglue/modglue.install
@@ -0,0 +1,35 @@
+# arg 1: the new package version
+pre_install() {
+ /bin/true
+}
+
+# arg 1: the new package version
+post_install() {
+ ldconfig
+}
+
+# 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 $*