summarylogtreecommitdiffstats
path: root/PKGBUILD
blob: b8d3f96b4924c0e8b8f7f4601d93127e82759341 (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
36
37
# Maintainer: Jakob Gahde <j5lx@fmail.co.uk>
# Contributor: wenLiangcan <boxeed at gmail dot com>
# Contributor: Taylor Venable <taylor@metasyntax.net>

_pkgname='zed'
pkgname="ocaml-${_pkgname}"
pkgver=1.4
pkgrel=1
pkgdesc="An abstract engine for text editing"
arch=('i686' 'x86_64')
url='https://github.com/diml/zed'
license=('BSD')
depends=('ocaml' 'ocaml-camomile' 'ocaml-react')
makedepends=('ocaml-findlib')
options=('!strip')
source=("https://github.com/diml/zed/archive/${pkgver}.tar.gz")
md5sums=('47661250ed1b3e12c886d19c1a019675')

build() {
    cd "${srcdir}/${_pkgname}-${pkgver}"
    ./configure

    env DESTDIR="${pkgdir}" \
        OCAMLFIND_DESTDIR="${pkgdir}/$(ocamlfind printconf destdir)" \
        make
}


package() {
    mkdir -p "${pkgdir}/$(ocamlfind printconf destdir)"
    mkdir -p "${pkgdir}/$(ocamlfind printconf destdir)/stublibs"
    cd "${srcdir}/${_pkgname}-${pkgver}"
    env DESTDIR="${pkgdir}" \
        OCAMLFIND_DESTDIR="${pkgdir}/$(ocamlfind printconf destdir)" \
        make install
    install -Dm 644 LICENSE ${pkgdir}/usr/share/licenses/${pkgname}/LICENSE
}