summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: 9973f27d9dbaf7d59613233ac40dd9ebf2c3dff3 (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
# Author: Bruno Pagani <archange@archlinux.org>
# Maintainer: Zhiwei Chen <condy0919@gmail.com>

_pkgname=easy-format
pkgname=ocaml-${_pkgname}
pkgver=1.3.4
pkgrel=4
pkgdesc="Pretty-printing library for OCaml"
arch=('x86_64')
url="https://github.com/ocaml-community/${_pkgname}"
license=('BSD')
options=('!strip' 'staticlibs')
depends=('glibc')
makedepends=('dune' 'ocaml')
source=(${url}/releases/download/${pkgver}/${_pkgname}-${pkgver}.tbz )
sha256sums=('1dbf051e9f68574dde6e2e254a66b9c524ca425e80b36e99af96ed964ab610c3')

build() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    dune build -p easy-format
}

package() {
    cd ${_pkgname}-${pkgver}
    DESTDIR="${pkgdir}" dune install --prefix="/usr" --libdir="/usr/lib/ocaml"

    install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}/
    rm -rf "${pkgdir}"/usr/doc
}