Browse Source

initial transfer

master
artoo 9 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 @@
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Armin K. <krejzi at email dot com>

pkgname=ocaml-ctypes
pkgver=0.14.0
pkgrel=2
pkgdesc="Library for binding to C libraries using pure OCaml"
arch=('x86_64')
url="https://github.com/ocamllabs/ocaml-ctypes"
license=('MIT')
depends=('ocaml>=4.07.0' 'libffi' 'ocaml-integers')
makedepends=('ocaml-findlib' 'ocaml-compiler-libs')
options=('!strip' '!makeflags')
source=($pkgname-$pkgver.tar.gz::https://github.com/ocamllabs/ocaml-ctypes/archive/$pkgver.tar.gz)
sha256sums=('e97aea533b3ce254747dcec39c92f0ca74859b9fe29533d2f391598105693a7f')

build() {
cd "$srcdir/$pkgname-$pkgver"
make
}

package() {
cd "$srcdir/$pkgname-$pkgver"

local _destdir="$pkgdir$(ocamlfind printconf destdir)"
install -d "$_destdir/stublibs"

make OCAMLFIND_DESTDIR="$_destdir" install

install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et:

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

@@ -0,0 +1,33 @@
# Maintainer: Evangelos Foutras <evangelos@foutrelis.com>
# Contributor: Armin K. <krejzi at email dot com>

pkgname=ocaml-ctypes
pkgver=0.14.0
pkgrel=2
pkgdesc="Library for binding to C libraries using pure OCaml"
arch=('x86_64')
url="https://github.com/ocamllabs/ocaml-ctypes"
license=('MIT')
depends=('ocaml>=4.07.0' 'libffi' 'ocaml-integers')
makedepends=('ocaml-findlib' 'ocaml-compiler-libs')
options=('!strip' '!makeflags')
source=($pkgname-$pkgver.tar.gz::https://github.com/ocamllabs/ocaml-ctypes/archive/$pkgver.tar.gz)
sha256sums=('e97aea533b3ce254747dcec39c92f0ca74859b9fe29533d2f391598105693a7f')

build() {
cd "$srcdir/$pkgname-$pkgver"
make
}

package() {
cd "$srcdir/$pkgname-$pkgver"

local _destdir="$pkgdir$(ocamlfind printconf destdir)"
install -d "$_destdir/stublibs"

make OCAMLFIND_DESTDIR="$_destdir" install

install -Dm644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
}

# vim:set ts=2 sw=2 et:

Loading…
Cancel
Save