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

pkgname=ocaml-stdint-git
pkgver=20200208
pkgrel=3
pkgdesc="Various signed and unsigned integers for OCaml"
arch=('i686' 'x86_64')
url='https://github.com/andrenth/ocaml-stdint'
license=('MIT')
provides=('ocaml-stdint')
makedepends=('dune')
source=("${pkgname}::git://github.com/andrenth/ocaml-stdint.git")
md5sums=('SKIP')

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

build() {
  cd "$pkgname"

  dune build -p stdint
}

package() {
  cd "$pkgname"

  mkdir -p "${pkgdir}"/usr/lib/ocaml/

  dune install -p stdint --libdir="${pkgdir}"/usr/lib/ocaml/ --prefix="${pkgdir}"
}