summaryrefslogtreecommitdiff
path: root/pcr/ocaml-ppx_tools/PKGBUILD
blob: 162f4ee7140de7abf978d88482a15a41ca3c2648 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Maintainer (Arch): Jakob Gahde <j5lx@fmail.co.uk>
# Maintainer: Omar Vega Ramos <ovruni@gnu.org.pe>

_pkgname=ppx_tools
pkgname=ocaml-${_pkgname}
pkgver=4.02.3
pkgrel=1
pkgdesc="Tools for authors of ppx rewriters and other syntactic tools"
arch=('i686' 'x86_64')
url="https://github.com/alainfrisch/ppx_tools"
license=('MIT')
depends=('ocaml')
makedepends=('ocaml-findlib')
source=("https://github.com/alainfrisch/${_pkgname}/archive/v${pkgver}.tar.gz")
md5sums=('47b1fb5681b2bcfa9cdaee45a899dfe9')

build() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  make
}

package() {
  cd "${srcdir}/${_pkgname}-${pkgver}"

  export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)"
  mkdir -p "${OCAMLFIND_DESTDIR}"

  make install
  install -Dm644 "LICENSE" "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}