diff options
author | Poroing | 2017-11-20 21:48:50 +0100 |
---|---|---|
committer | Poroing | 2017-11-20 21:48:50 +0100 |
commit | b3b919c73ad6d954816121ec05ab8a43a25397d7 (patch) | |
tree | c1f0d4c7c58ccbceaf5c8fafba5ca05a134c8230 | |
parent | 6877a212bca5cc3ea356e0ee7e32774c83dfea97 (diff) | |
download | aur-b3b919c73ad6d954816121ec05ab8a43a25397d7.tar.gz |
Executable header where pointing to the wrong direction, it is fixed now
-rw-r--r-- | .SRCINFO | 2 | ||||
-rw-r--r-- | PKGBUILD | 35 |
2 files changed, 18 insertions, 19 deletions
@@ -1,7 +1,7 @@ pkgbase = camllight pkgdesc = Compiler for caml light source code pkgver = 0.75 - pkgrel = 1 + pkgrel = 2 url = http://caml.inria.fr/ arch = i686 arch = x86_64 @@ -1,7 +1,7 @@ # Maintainer: Jean Jouve <jean-18-09@hotmail.fr> pkgname=camllight pkgver=0.75 -pkgrel=1 +pkgrel=2 pkgdesc="Compiler for caml light source code" arch=('i686' 'x86_64') url='http://caml.inria.fr/' @@ -12,27 +12,23 @@ source=('http://caml.inria.fr/pub/distrib/caml-light-0.75//cl75unix.tar.gz') md5sums=('6c236074e4487949ec22001c7a498057') validpgpkeys=() +prepare() { + cd 'cl75/src' + sed -i 's/CPP=\/lib\/cpp/CPP=\/usr\/bin\/cpp -P -traditional -Dunix/' Makefile + sed -i 's/BINDIR=\/usr\/local\/bin/BINDIR=\/usr\/bin/' Makefile + sed -i 's/LIBDIR=\/usr\/local\/lib/LIBDIR=\/usr\/lib/' Makefile + sed -i 's/MANDIR=\/usr\/local\/man/MANDIR=\/usr\/share\/man/' Makefile +} + build() { cd 'cl75/src' - make BINDIR="/usr/bin/"\ - LIBDIR="/usr/lib/caml-light"\ - MANDIR="/usr/share/man/man1"\ - CPP="/usr/bin/cpp -P -traditional -Dunix"\ - configure - make BINDIR="/usr/bin/"\ - LIBDIR="/usr/lib/caml-light"\ - MANDIR="/usr/share/man/man1"\ - CPP="/usr/bin/cpp -P -traditional -Dunix"\ - world + make configure + make world } check() { cd 'cl75/src' - make BINDIR="/usr/bin/"\ - LIBDIR="/usr/lib/caml-light"\ - MANDIR="/usr/share/man/man1"\ - CPP="/usr/bin/cpp -P -traditional -Dunix"\ - bootstrap + make bootstrap } package() { @@ -47,9 +43,12 @@ package() { #Install camllight cd 'src' - make BINDIR="$pkgdir/usr/bin/"\ + make BINDIR="$pkgdir/usr/bin"\ LIBDIR="$pkgdir/usr/lib/caml-light"\ MANDIR="$pkgdir/usr/share/man/man1"\ - CPP="/usr/bin/cpp -P -traditional -Dunix"\ install + + #Patch built executables' header + sed -i "s/${pkgdir//\//\\/}//" $pkgdir/usr/lib/caml-light/header + } |