Browse Source

initial transfer

master
artoo 6 months ago
parent
commit
6b097cc66a
2 changed files with 66 additions and 0 deletions
  1. 33
    0
      ocaml-ctypes/repos/extra-x86_64/PKGBUILD
  2. 33
    0
      ocaml-ctypes/trunk/PKGBUILD

+ 33
- 0
ocaml-ctypes/repos/extra-x86_64/PKGBUILD View File

@@ -0,0 +1,33 @@
1
+# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2
+# Contributor: Armin K. <krejzi at email dot com>
3
+
4
+pkgname=ocaml-ctypes
5
+pkgver=0.14.0
6
+pkgrel=2
7
+pkgdesc="Library for binding to C libraries using pure OCaml"
8
+arch=('x86_64')
9
+url="https://github.com/ocamllabs/ocaml-ctypes"
10
+license=('MIT')
11
+depends=('ocaml>=4.07.0' 'libffi' 'ocaml-integers')
12
+makedepends=('ocaml-findlib' 'ocaml-compiler-libs')
13
+options=('!strip' '!makeflags')
14
+source=($pkgname-$pkgver.tar.gz::https://github.com/ocamllabs/ocaml-ctypes/archive/$pkgver.tar.gz)
15
+sha256sums=('e97aea533b3ce254747dcec39c92f0ca74859b9fe29533d2f391598105693a7f')
16
+
17
+build() {
18
+  cd "$srcdir/$pkgname-$pkgver"
19
+  make
20
+}
21
+
22
+package() {
23
+  cd "$srcdir/$pkgname-$pkgver"
24
+
25
+  local _destdir="$pkgdir$(ocamlfind printconf destdir)"
26
+  install -d "$_destdir/stublibs"
27
+
28
+  make OCAMLFIND_DESTDIR="$_destdir" install
29
+
30
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
31
+}
32
+
33
+# vim:set ts=2 sw=2 et:

+ 33
- 0
ocaml-ctypes/trunk/PKGBUILD View File

@@ -0,0 +1,33 @@
1
+# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
2
+# Contributor: Armin K. <krejzi at email dot com>
3
+
4
+pkgname=ocaml-ctypes
5
+pkgver=0.14.0
6
+pkgrel=2
7
+pkgdesc="Library for binding to C libraries using pure OCaml"
8
+arch=('x86_64')
9
+url="https://github.com/ocamllabs/ocaml-ctypes"
10
+license=('MIT')
11
+depends=('ocaml>=4.07.0' 'libffi' 'ocaml-integers')
12
+makedepends=('ocaml-findlib' 'ocaml-compiler-libs')
13
+options=('!strip' '!makeflags')
14
+source=($pkgname-$pkgver.tar.gz::https://github.com/ocamllabs/ocaml-ctypes/archive/$pkgver.tar.gz)
15
+sha256sums=('e97aea533b3ce254747dcec39c92f0ca74859b9fe29533d2f391598105693a7f')
16
+
17
+build() {
18
+  cd "$srcdir/$pkgname-$pkgver"
19
+  make
20
+}
21
+
22
+package() {
23
+  cd "$srcdir/$pkgname-$pkgver"
24
+
25
+  local _destdir="$pkgdir$(ocamlfind printconf destdir)"
26
+  install -d "$_destdir/stublibs"
27
+
28
+  make OCAMLFIND_DESTDIR="$_destdir" install
29
+
30
+  install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
31
+}
32
+
33
+# vim:set ts=2 sw=2 et:

Loading…
Cancel
Save