summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorMort Yao2018-10-13 14:59:29 +0200
committerMort Yao2018-10-13 14:59:29 +0200
commitf870e15444d7645733baaee020c576f9b03cd742 (patch)
tree7bab91fa7f7964d2e6678e8ea90f111240271341 /PKGBUILD
parent459d1d9adc05d9f9946cbaf5943367d10cbbb719 (diff)
downloadaur-f870e15444d7645733baaee020c576f9b03cd742.tar.gz
ocaml-ppx_derivers-git 20180224-2
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD10
1 files changed, 7 insertions, 3 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 4b122123c22..8acc7613727 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
pkgname=ocaml-ppx_derivers-git
pkgver=20180224
-pkgrel=1
+pkgrel=2
pkgdesc="deriving plugin registry"
arch=('x86_64')
url='https://github.com/ocaml-ppx/ppx_derivers'
@@ -24,10 +24,14 @@ build() {
}
package() {
+ set -e
destdir="$pkgdir/$(ocamlfind printconf destdir)"
cd "$pkgname"
- mkdir -p "$destdir/ppx_derivers" || return 1
- make DESTDIR="$destdir/" OCAMLFIND_DESTDIR="$destdir/" install || return 1
+ mkdir -p "$destdir/ppx_derivers"
+ export DESTDIR="$destdir/"
+ export OCAMLFIND_DESTDIR="$destdir/"
+ jbuilder build @install
+ jbuilder install -p ppx_derivers --prefix="${destdir}"
}