blob: 43e50d615b6fa52172650d3b7144ad39d8c19182 (
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: Michał Wojdyła < micwoj9292 at gmail dot com >
# Contributor: oliver <at> first . in - berlin . de
pkgname=ocaml-xml-light
pkgver=2.5
pkgrel=4
license=('LGPL-2.1-or-later')
arch=('i686' 'x86_64')
pkgdesc="Objective Caml lightweight xml parser"
url="https://github.com/ncannasse/xml-light"
depends=('glibc' 'ocaml')
makedepends=('dune')
options=('!strip' '!makeflags' 'staticlibs')
source=("https://github.com/ncannasse/xml-light/releases/download/${pkgver}/xml-light-${pkgver}.tbz"
"META")
md5sums=('b15b3ddfc73159052e9cd734290d10bd'
'ad22cde4d3a944673d3b0a25a1e835dc')
build() {
cd ${srcdir}/xml-light-${pkgver}
OCAMLPATH=/usr/lib/ocaml dune build --release
}
package() {
cd ${srcdir}/xml-light-${pkgver}
DESTDIR="$pkgdir" dune install --prefix '/usr' --libdir '/usr/lib/ocaml' --release
install -dm755 "$pkgdir/usr/share/doc/$pkgname"
mv "$pkgdir/usr/doc/xml-light/"* "$pkgdir/usr/share/doc/$pkgname/"
rm -r "$pkgdir/usr/doc/"
install -dm755 "$pkgdir/usr/share/licenses/$pkgname"
ln -sf "/usr/share/doc/$pkgname/LICENSE" "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}
|