diff options
author | éclairevoyant | 2022-12-04 07:08:22 -0500 |
---|---|---|
committer | éclairevoyant | 2022-12-04 07:09:31 -0500 |
commit | 79eab42ccf0714d4316f71df0c73c0f63881438c (patch) | |
tree | 684672babf44221ca8ef4d64447d682784397b3e /PKGBUILD | |
parent | dfd32d733b0cb2f252569d02d61b86de449b7481 (diff) | |
download | aur-ocaml-ocamlformat.tar.gz |
ocaml-ocamlformat: split packages
Signed-off-by: éclairevoyant <848000+eclairevoyant@users.noreply.github.com>
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 34 |
1 files changed, 30 insertions, 4 deletions
@@ -1,14 +1,31 @@ # Maintainer: éclairevoyant _pkgname=ocamlformat -pkgname="ocaml-$_pkgname" +pkgbase="ocaml-$_pkgname" +pkgname=("$pkgbase" "$pkgbase-rpc-lib") pkgver=0.24.1 -pkgrel=2 +pkgrel=3 license=('MIT' 'custom:LGPL-2.1-OCaml') arch=('x86_64') pkgdesc="Auto-formatter for OCaml code" url="https://github.com/ocaml-ppx/$_pkgname" -depends=('ocaml>=4.08' 'ocaml-menhir>=20201216' 'ocaml-csexp>=1.4.0' 'ocaml-cmdliner>=1.1.0' 'ocaml-uutf>=1.0.1' 'ocaml-stdio' 'ocaml-uuseg>=10.0.0' 'ocaml-re>=1.7.2' 'ocaml-fpath' 'ocaml-odoc-parser>=2.0.0' 'ocaml-odoc-parser<3.0.0' 'ocaml-ocp-indent' 'ocaml-fix' 'ocaml-either' 'ocaml-ocaml-version>=3.3.0') +depends=( + 'ocaml>=4.08' + 'ocaml-cmdliner>=1.1.0' + 'ocaml-csexp>=1.4.0' + 'ocaml-either' + 'ocaml-fix' + 'ocaml-fpath' + 'ocaml-menhir>=20201216' + 'ocaml-ocaml-version>=3.3.0' + 'ocaml-ocp-indent' + 'ocaml-odoc-parser>=2.0.0' + 'ocaml-odoc-parser<3.0.0' + 'ocaml-re>=1.7.2' + 'ocaml-stdio' + 'ocaml-uuseg>=10.0.0' + 'ocaml-uutf>=1.0.1' +) makedepends=('dune>=2.8') source=("$url/releases/download/$pkgver/$_pkgname-$pkgver.tbz") options=('!strip') @@ -20,7 +37,16 @@ build() { dune build -p ocamlformat-rpc-lib,$_pkgname } -package() { +package_ocaml-ocamlformat-rpc-lib() { + depends=('ocaml>=4.08' 'ocaml-csexp>=1.4.0') + cd $_pkgname-$pkgver + DESTDIR="$pkgdir" dune install ocamlformat-rpc-lib --prefix "/usr" --libdir "/usr/lib/ocaml" --docdir "/usr/share/doc" + install -dm755 "$pkgdir/usr/share/licenses/$pkgname/" + ln -s /usr/share/doc/$_pkgname/LICENSE.md -t "$pkgdir/usr/share/licenses/$pkgname/" +} + +package_ocaml-ocamlformat() { + depends+=("$pkgbase-rpc-lib=$pkgver") cd $_pkgname-$pkgver DESTDIR="$pkgdir" dune install $_pkgname --prefix "/usr" --libdir "/usr/lib/ocaml" --docdir "/usr/share/doc" install -dm755 "$pkgdir/usr/share/licenses/$pkgname/" |