diff options
-rw-r--r-- | .SRCINFO | 19 | ||||
-rw-r--r-- | .editorconfig | 8 | ||||
-rw-r--r-- | .gitignore | 14 | ||||
-rw-r--r-- | PKGBUILD | 47 |
4 files changed, 60 insertions, 28 deletions
@@ -1,16 +1,21 @@ pkgbase = ocaml-ocplib-endian pkgdesc = Optimised functions to read and write int16/32/64 from strings, bytes and bigarrays pkgver = 1.0 - pkgrel = 1 - url = https://www.typerex.org/ocplib-endian.html + pkgrel = 2 + url = https://github.com/OCamlPro/ocplib-endian arch = x86_64 + arch = i686 + arch = arm + arch = armv6h + arch = armv7h + arch = aarch64 license = custom:LGPL2.1 with linking exception - makedepends = ocaml-findlib - makedepends = ocamlbuild makedepends = cppo + makedepends = ocamlbuild + makedepends = ocaml-findlib depends = ocaml - source = https://github.com/OCamlPro/ocplib-endian/archive/1.0.tar.gz - sha512sums = a08fd58ec5e72510c40e8b75e0ee8327ee658f479e45dd4632bc04e3907d04aaa3684df3b993ab63fc2a6c1f1a4fb32784e9b5258730d3b89a716300522d8d7f + options = !strip + source = ocaml-ocplib-endian-1.0-2.tar.gz::https://github.com/OCamlPro/ocplib-endian/archive/1.0.tar.gz + sha256sums = 76f268e1aff8dbac8b6a0ca9473f90255da35f15b0fcaf26a840cb6f73029243 pkgname = ocaml-ocplib-endian - diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 000000000000..a467ee9a97a6 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,8 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = tab +tab_width = 4 diff --git a/.gitignore b/.gitignore new file mode 100644 index 000000000000..82b3c183d5d4 --- /dev/null +++ b/.gitignore @@ -0,0 +1,14 @@ +# from https://github.com/github/gitignore/blob/master/ArchLinuxPackages.gitignore +*.tar +*.tar.* +*.rpm +*.jar +*.exe +*.msi +*.zip +*.tgz +*.log +*.log.* +*.sig + +*/ @@ -1,30 +1,35 @@ -# Maintainer: Jakob Gahde <j5lx@fmail.co.uk> - -pkgname=ocaml-ocplib-endian -pkgver=1.0 -pkgrel=1 -pkgdesc="Optimised functions to read and write int16/32/64 from strings, bytes and bigarrays" -arch=('x86_64') -url="https://www.typerex.org/ocplib-endian.html" +# Maintainer: Daniel Peukert <dan.peukert@gmail.com> +# Contributor: Jakob Gahde <j5lx@fmail.co.uk> +_projectname='ocplib-endian' +pkgname="ocaml-$_projectname" +pkgver='1.0' +pkgrel='2' +pkgdesc='Optimised functions to read and write int16/32/64 from strings, bytes and bigarrays' +arch=('x86_64' 'i686' 'arm' 'armv6h' 'armv7h' 'aarch64') +url="https://github.com/OCamlPro/$_projectname" license=('custom:LGPL2.1 with linking exception') depends=('ocaml') -makedepends=('ocaml-findlib' 'ocamlbuild' 'cppo') -source=("https://github.com/OCamlPro/ocplib-endian/archive/${pkgver}.tar.gz") -sha512sums=('a08fd58ec5e72510c40e8b75e0ee8327ee658f479e45dd4632bc04e3907d04aaa3684df3b993ab63fc2a6c1f1a4fb32784e9b5258730d3b89a716300522d8d7f') +makedepends=('cppo' 'ocamlbuild' 'ocaml-findlib') +options=('!strip') +source=("$pkgname-$pkgver-$pkgrel.tar.gz::$url/archive/$pkgver.tar.gz") +sha256sums=('76f268e1aff8dbac8b6a0ca9473f90255da35f15b0fcaf26a840cb6f73029243') -build() { - cd "${srcdir}/ocplib-endian-${pkgver}" +_sourcedirectory="$_projectname-$pkgver" - ./configure --disable-debug - make build +build() { + cd "$srcdir/$_sourcedirectory/" + ./configure --disable-debug + make build } - package() { - cd "${srcdir}/ocplib-endian-${pkgver}" + cd "$srcdir/$_sourcedirectory/" + + export OCAMLFIND_DESTDIR="$pkgdir$(ocamlfind printconf destdir)" + install -dm755 "$OCAMLFIND_DESTDIR" + + make install - export OCAMLFIND_DESTDIR="${pkgdir}$(ocamlfind printconf destdir)" - install -dm755 "${OCAMLFIND_DESTDIR}" - make install - install -Dm644 "COPYING.txt" "${pkgdir}/usr/share/licenses/${pkgname}/COPYING.txt" + install -Dm644 'README.md' "$pkgdir/usr/share/doc/$pkgname/README.md" + install -Dm644 'COPYING.txt' "$pkgdir/usr/share/licenses/$pkgname/COPYING.txt" } |