summaryrefslogtreecommitdiff
path: root/community/camlp5/PKGBUILD
diff options
context:
space:
mode:
Diffstat (limited to 'community/camlp5/PKGBUILD')
-rw-r--r--community/camlp5/PKGBUILD60
1 files changed, 38 insertions, 22 deletions
diff --git a/community/camlp5/PKGBUILD b/community/camlp5/PKGBUILD
index 6c2216d1a..348a197d0 100644
--- a/community/camlp5/PKGBUILD
+++ b/community/camlp5/PKGBUILD
@@ -1,46 +1,62 @@
# Maintainer: Thomas Dziedzic < gostrc at gmail >
# Contributor: Nathan Owe <ndowens.aur at gmail dot com>
+# Contributor: George Giorgidze <giorgidze@gmail.com>
+# Contributor: Massimiliano Brocchini <brocchini@netseven.it>
-pkgname=camlp5
-pkgver=6.02.2
+pkgname=('camlp5' 'camlp5-transitional')
+pkgver=6.02.3
pkgrel=1
-pkgdesc='A preprocessor-pretty-printer of OCaml.'
arch=('i686' 'x86_64')
url='http://pauillac.inria.fr/~ddr/camlp5/'
license=('BSD')
depends=('sh')
makedepends=('ocaml')
-conflicts=('camlp5-transitional')
options=('!makeflags')
-source=("http://pauillac.inria.fr/~ddr/camlp5/distrib/src/${pkgname}-${pkgver}.tgz"
- 'http://pauillac.inria.fr/~ddr/camlp5/distrib/src/patch-6.02.2-1'
- 'http://pauillac.inria.fr/~ddr/camlp5/distrib/src/patch-6.02.2-2'
- 'http://pauillac.inria.fr/~ddr/camlp5/distrib/src/patch-6.02.2-3')
-md5sums=('b495bf26355451186c6725ee01add0da'
- '3acab547f3c0acb3c09d1d707e6c5ee3'
- '2e911c01e7da967bf68deee13e9712c8'
- '6fa59ec7c684919b6c8e2eb2bcabcf93')
+source=("http://pauillac.inria.fr/~ddr/camlp5/distrib/src/camlp5-${pkgver}.tgz")
+md5sums=('a4f5e0dc13c43d50eb655c8e929f556e')
build() {
- cd ${pkgname}-${pkgver}
+ cp -r camlp5-${pkgver} camlp5-transitional-${pkgver}
- patch -Np0 -i ${srcdir}/patch-6.02.2-1
- patch -Np0 -i ${srcdir}/patch-6.02.2-2
- patch -Np0 -i ${srcdir}/patch-6.02.2-3
+ cd ${srcdir}/camlp5-${pkgver}
./configure \
-prefix '/usr' \
-mandir '/usr/share/man' \
- -strict
+ -strict
- make world.opt
+ make world.opt
+
+ cd ${srcdir}/camlp5-transitional-${pkgver}
+
+ ./configure \
+ -prefix '/usr' \
+ -mandir '/usr/share/man' \
+ -transitional
+
+ make world.opt
}
-package() {
- cd ${pkgname}-${pkgver}
+package_camlp5() {
+ pkgdesc='A preprocessor-pretty-printer of OCaml.'
+ conflicts=('camlp5-transitional')
+
+ cd camlp5-${pkgver}
+
+ make DESTDIR=${pkgdir} install
+
+ install -D -m644 LICENSE \
+ ${pkgdir}/usr/share/licenses/camlp5/LICENSE
+}
+
+package_camlp5-transitional() {
+ pkgdesc='A preprocessor-pretty-printer of OCaml. (transitional)'
+ conflicts=('camlp5')
+
+ cd camlp5-transitional-${pkgver}
- make DESTDIR=${pkgdir} install
+ make DESTDIR=${pkgdir} install
install -D -m644 LICENSE \
- ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
+ ${pkgdir}/usr/share/licenses/camlp5-transitional/LICENSE
}