summaryrefslogtreecommitdiff
path: root/pcr/cppo/PKGBUILD
diff options
context:
space:
mode:
authorAndreas Grapentin <andreas@grapentin.org>2018-01-25 08:31:37 +0100
committerAndreas Grapentin <andreas@grapentin.org>2018-01-25 08:33:25 +0100
commit2df85f5aceb771f341687dd922bc5471b6371053 (patch)
tree7adb2b23febfcda1e13efb80a4d2d9f6ed631d0a /pcr/cppo/PKGBUILD
parentf001f8cfec20f0485e9556141c194c7c73b5756f (diff)
downloadabslibre-2df85f5aceb771f341687dd922bc5471b6371053.tar.gz
abslibre-2df85f5aceb771f341687dd922bc5471b6371053.tar.bz2
abslibre-2df85f5aceb771f341687dd922bc5471b6371053.zip
pcr/cppo: updated to 1.6.0
Diffstat (limited to 'pcr/cppo/PKGBUILD')
-rw-r--r--pcr/cppo/PKGBUILD32
1 files changed, 22 insertions, 10 deletions
diff --git a/pcr/cppo/PKGBUILD b/pcr/cppo/PKGBUILD
index 4dfa9bb9e..d4a89ed27 100644
--- a/pcr/cppo/PKGBUILD
+++ b/pcr/cppo/PKGBUILD
@@ -1,19 +1,28 @@
-# Maintainer (Arch): Leonard de Ruijter <dev@systeemdenker.nl>
-# Contributor (Arch): Serge Zirukin <ftrvxmtrx@gmail.com>
-# Contributor (Arch): Justin Davis <jrcd 83 at gmail>
+# Maintainer (AUR): Leonard de Ruijter <dev@systeemdenker.nl>
+# Contributor (AUR): Serge Zirukin <ftrvxmtrx@gmail.com>
+# Contributor (AUR): Justin Davis <jrcd 83 at gmail>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>
+# parabola changes and rationale:
+# no changes.
+
pkgname=cppo
-pkgver=1.3.2
-pkgrel=1
+pkgver=1.6.0
+pkgrel=2
pkgdesc="The C preprocessor written in OCaml"
-arch=('i686' 'x86_64')
+arch=('i686' 'x86_64' 'armv7h')
license=('BSD')
depends=('glibc')
-makedepends=('ocaml-findlib')
-url='http://mjambon.com/cppo.html'
+makedepends=('jbuilder' 'ocaml-findlib' 'ocamlbuild' 'clingo' 'python2')
+url="https://github.com/mjambon/cppo"
source=("https://github.com/mjambon/${pkgname}/archive/v${pkgver}.tar.gz")
-sha256sums=('c49e3080b3326466c7ddd97100c63bd568301802b3e48cebea3406e1ca76ebc8')
+sha256sums=('29cb0223adc1f0c4c5238d6c7bf8931b909505aed349fde398fbf1a39eaa1819')
+
+prepare() {
+ export OPAMROOT="${srcdir}/.opam"
+ opam init -n
+}
+
build() {
cd $srcdir/$pkgname-$pkgver
make
@@ -21,7 +30,10 @@ build() {
package() {
cd $srcdir/$pkgname-$pkgver
+ export OPAMROOT="${srcdir}/.opam"
mkdir -p "${pkgdir}/usr/bin" "$pkgdir$(ocamlfind printconf destdir)"
export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)"
- make install BINDIR="${pkgdir}/usr/bin"
+ make install
+ cd _build/install/default/bin
+ install -m755 -t ${pkgdir}/usr/bin cppo
}