blob: 94461865a34541a82126bcfefbf17261734afb2d (
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
38
|
# Maintainer: Christopher Price <pricechrispy at gmail dot com>
pkgname=tiny_httpd
pkgver=0.16
pkgrel=2
pkgdesc='Minimal HTTP server'
arch=('x86_64')
url='https://c-cube.github.io/tiny_httpd'
license=('MIT')
depends=(
'ocaml>=4.08.0'
)
makedepends=(
'dune'
'ocaml-seq'
'ocaml-findlib'
'ocaml-result'
)
options=('!strip' 'staticlibs')
source=("$pkgname-$pkgver.tar.gz::https://github.com/c-cube/$pkgname/archive/v$pkgver.tar.gz")
sha256sums=('4077eb1e964671d51fb939687bd28320bff73198078e9ad497f0670240fd19bf')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
export OCAMLPATH="$(ocamlfind printconf destdir)"
dune build -p "$pkgname"
}
package() {
cd "${srcdir}/${pkgname}-${pkgver}"
dune install "$pkgname" --destdir="${pkgdir}" --prefix="/usr" --libdir="$(ocamlfind printconf destdir)"
install -dm755 "${pkgdir}/usr/share/"
mv "${pkgdir}/usr/doc" "${pkgdir}/usr/share/"
}
|