summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 6cd89f77022f72a61c03fb758b4900ae58ee52ab (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
# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>

pkgname=ocaml-lwt_log
pkgver=1.1.1
pkgrel=1
pkgdesc="Lwt-friendly logger"
arch=('x86_64')
url='https://github.com/aantron/lwt_log'
license=('custom:LGPL2.1 with linking exception')
depends=('ocaml' 'ocaml-lwt')
makedepends=('dune')
options=('!strip')
source=("https://github.com/aantron/lwt_log/archive/${pkgver}.tar.gz")
sha512sums=('df3d171a7c72f37e96b756d252ab586767df9c13e01500faf13d4b2cee936b0602fd7c725c03db488d3737d8d92300af103d395a926dc654a2c44a5d6068f24a')

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

  dune build --profile release
}


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

  dune install --destdir "${pkgdir}"
  install -Dm644 "COPYING" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING"
  mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
}