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

pkgname=ocaml-process-git
pkgver=20160901
pkgrel=2
pkgdesc="Easy process control in OCaml"
arch=('x86_64')
url='https://github.com/dsheets/ocaml-process'
license=('ISC')
provides=('ocaml-process')
makedepends=('ocamlbuild' 'ocaml-findlib')
source=("${pkgname}::git://github.com/dsheets/ocaml-process.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 "$destdir/process" || return 1
  make DESTDIR="$destdir/" OCAMLFIND_DESTDIR="$destdir/" install || return 1
}