summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: e8daf553bfe8c3a984ef38be1f1363027c16aec8 (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
32
33
34
35
# Maintainer: Mort Yao <soi@mort.ninja>

pkgname=ocaml-ppxfind-git
pkgver=20190513
pkgrel=3
pkgdesc="ocamlfind ppx tool"
arch=('x86_64')
url='https://github.com/diml/ppxfind'
license=('BSD')
provides=('ocaml-ppxfind')
conflicts=('ocaml-ppxfind')
depends=('ocaml')
makedepends=('dune' 'ocamlbuild' 'ocaml-findlib' 'ocaml-migrate-parsetree')
source=("${pkgname}::git://github.com/diml/ppxfind.git")
md5sums=('SKIP')

pkgver() {
  cd "$pkgname"
  git log -1 --pretty=format:%cd --date=short | sed 's/-//g'
}

build() {
  cd "$pkgname"

  make
}

package() {
  destdir="$pkgdir/$(ocamlfind printconf destdir)"

  cd "$pkgname"

  mkdir -p "${pkgdir}"/usr/bin/
  cp _build/install/default/bin/ppxfind "${pkgdir}"/usr/bin/
}