summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorHans-Nikolai Viessmann2022-05-21 15:31:58 +0530
committerHans-Nikolai Viessmann2022-05-21 15:31:58 +0530
commit429e8132833df155de3ac17135e1b09046ed3684 (patch)
tree665fbc76c0ce1073a7ac0f43ad9b4986b74b8305
parent1beff7f454b3c625319cd36efd3a8b1f2e4b13ca (diff)
downloadaur-cppo.tar.gz
fix for dune 3.2.0 --libdir flag behaviour
For some reason (unclear from upstream docs), the flag now needs an absolute path even though iff --prefix is given, it should be fine with a relative path.... hmmmm
-rw-r--r--.SRCINFO2
-rw-r--r--PKGBUILD5
2 files changed, 4 insertions, 3 deletions
diff --git a/.SRCINFO b/.SRCINFO
index 25ff7c534f99..b1257ddc0cfb 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,7 +1,7 @@
pkgbase = cppo
pkgdesc = C-style preprocessor for OCaml
pkgver = 1.6.9
- pkgrel = 1
+ pkgrel = 2
url = https://github.com/ocaml-community/cppo
arch = x86_64
license = BSD
diff --git a/PKGBUILD b/PKGBUILD
index 49a165d97f08..69fcf504cf9d 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -4,7 +4,7 @@
pkgname=cppo
pkgver=1.6.9
-pkgrel=1
+pkgrel=2
pkgdesc="C-style preprocessor for OCaml"
arch=('x86_64')
url="https://github.com/ocaml-community/cppo"
@@ -29,7 +29,8 @@ check() {
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
- DESTDIR="${pkgdir}" dune install --prefix "/usr" --libdir "lib/ocaml"
+ # hmmm, --libdir behaviour changed in dune 3.2.0, it must now be an absolute path?!
+ DESTDIR="${pkgdir}" dune install --prefix "/usr" --libdir "/usr/lib/ocaml"
install -Dm644 LICENSE.md "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE.md"
mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"